GL Line Items and PO Doc Number
Hi, I'm caught in a world unknown to me, i.e. R/3 world.
We are using 0FI_GL_4 and have a report called GL Detail.
I have been asked to enhance the reports functionality to include a PO doc Number.
I guess thats coming from MM side?
We also have 2LIS_02_ITM in BW.
My question, could I extend 0FI_GL_4 to include PO Doc Number? Or could I just have an InfoSet in BW to combine the Purhcasing Data ODS and GL ODS? I mean would it make functional and logical sense?
Any guidance would be appreciated.
Thanks,
Frank
Frank,
I understand from your post that you want to have both Fi_Gl and PO combined information ? Am i right.
I have recently implemented the same recently which is working fine.
1. Enhance the Fi_Gl for Purchase doc , item and required.Since they originate from BSEG just add the fields to CI_BSIS structure.you will get the PO data.
2. Now pull the purchase order item level data using 2lis_02_itm extractor.
3.Pull FI_Gl_4 into one ODS say Fi_Gl_4
4. Pull Purchasing data into PUR_t01
5.Now enhance the communication structure of FI_Gl_4 with the purchasing order fields. i.e /BIC/CS8FI_GL_4 in the below code.
6.Create an ODS with combined fields from purchasing and FI_Gl into another ODS.
7.Create an Update rule from Fi_Gl_4 to the new ODS and in the update rule lookup the activate table of purchase order ODS and read the values into new ODS.
8.For your reference i am attaching the start routine that i have written
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES: ...
TABLES : /BIC/APUR_T0200,
/BIC/AFI_GL_400.
DATA: ...
$$ end of global - insert your declaration only before this line -
The follow definition is new in the BW3.x
TYPES:
BEGIN OF DATA_PACKAGE_STRUCTURE.
INCLUDE STRUCTURE /BIC/CS8FI_GL_4.
TYPES:
RECNO LIKE sy-tabix,
END OF DATA_PACKAGE_STRUCTURE.
DATA:
DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
DATA_PACKAGE STRUCTURE DATA_PACKAGE
USING RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
DATA: BEGIN OF DATA_PACK OCCURS 0.
INCLUDE STRUCTURE /BIC/CS8FI_GL_4.
DATA: END OF DATA_PACK.
DATA:L_INDEX LIKE SY-TABIX,
S_INDEX LIKE SY-TABIX,
T_INDEX LIKE SY-TABIX,
WA_VENDOR LIKE /BIC/APUR_T0200-VENDOR.
DATA : BEGIN OF IT_PURCHASE OCCURS 0,
/BIC/ZPUR_DOC LIKE /BIC/APUR_T0200-DOC_NUM,
/BIC/ZPUR_ITM LIKE /BIC/APUR_T0200-/BIC/ZPUR_ITM,
VENDOR LIKE /BIC/APUR_T0200-VENDOR,
MATERIAL LIKE /BIC/APUR_T0200-MATERIAL,
MATL_GROUP LIKE /BIC/APUR_T0200-MATL_GROUP,
PURCH_ORG LIKE /BIC/APUR_T0200-PURCH_ORG,
PUR_GROUP LIKE /BIC/APUR_T0200-PUR_GROUP,
DOCTYPE LIKE /BIC/APUR_T0200-DOCTYPE,
DOC_CAT LIKE /BIC/APUR_T0200-DOC_CAT,
/BIC/ZKNTTP LIKE /BIC/APUR_T0200-/BIC/ZKNTTP,
END OF IT_PURCHASE.
RANGES: R_BLART FOR /BIC/CS8FI_GL_4-AC_DOC_TYP.
Fill in the Accounting Document Type
R_BLART-SIGN = 'I'.
R_BLART-OPTION = 'EQ'.
R_BLART-LOW = 'KG'.
APPEND R_BLART.
R_BLART-SIGN = 'I'.
R_BLART-OPTION = 'EQ'.
R_BLART-LOW = 'KR'.
APPEND R_BLART.
R_BLART-SIGN = 'I'.
R_BLART-OPTION = 'EQ'.
R_BLART-LOW = 'RE'.
APPEND R_BLART.
CLEAR L_INDEX.
REFRESH DATA_PACK.
DATA_PACK[] = DATA_PACKAGE[].
Consider only if acc doc type is RE KG and KR
LOOP AT DATA_PACK.
L_INDEX = SY-TABIX.
IF DATA_PACK-AC_DOC_TYP IN R_BLART.
CONTINUE.
ELSE.
DELETE DATA_PACK INDEX L_INDEX.
ENDIF.
ENDLOOP.
CLEAR S_INDEX.
Consider only if account type S
LOOP AT DATA_PACK.
S_INDEX = SY-TABIX.
IF DATA_PACK-ACCT_TYPE EQ 'S'.
CONTINUE.
ELSE.
DELETE DATA_PACK INDEX S_INDEX.
ENDIF.
ENDLOOP.
SELECT DOC_NUM /BIC/ZPUR_ITM VENDOR MATERIAL MATL_GROUP
PURCH_ORG PUR_GROUP DOCTYPE DOC_CAT
/BIC/ZKNTTP
FROM /BIC/APUR_T0200
INTO TABLE IT_PURCHASE
FOR ALL ENTRIES IN DATA_PACK
WHERE DOC_NUM = DATA_PACK-/BIC/ZPUR_DOC
AND /BIC/ZPUR_ITM = DATA_PACK-/BIC/ZPUR_ITM.
SORT IT_PURCHASE BY /BIC/ZPUR_DOC /BIC/ZPUR_ITM.
LOOP AT DATA_PACK.
T_INDEX = SY-TABIX.
IF DATA_PACK-VENDOR IS INITIAL.
SELECT SINGLE VENDOR INTO WA_VENDOR
FROM /BIC/AFI_GL_400
WHERE COMP_CODE = DATA_PACK-COMP_CODE
AND AC_DOC_NO = DATA_PACK-AC_DOC_NO
AND FISCPER = DATA_PACK-FISCPER
AND FISCVARNT = DATA_PACK-FISCVARNT
AND ACCT_TYPE EQ 'K'.
IF SY-SUBRC EQ 0.
MOVE WA_VENDOR TO DATA_PACK-VENDOR.
MODIFY DATA_PACK INDEX T_INDEX.
CLEAR WA_VENDOR.
ENDIF.
ENDIF.
IF DATA_PACK-/BIC/ZPUR_DOC IS INITIAL.
CONTINUE.
ELSE.
READ TABLE IT_PURCHASE WITH KEY /BIC/ZPUR_DOC = DATA_PACK-/BIC/ZPUR_DOC
/BIC/ZPUR_ITM = DATA_PACK-/BIC/ZPUR_ITM
BINARY SEARCH.
IF SY-SUBRC EQ 0.
MOVE: IT_PURCHASE-MATERIAL TO DATA_PACK-MATERIAL,
IT_PURCHASE-MATL_GROUP TO DATA_PACK-MATL_GROUP,
IT_PURCHASE-PURCH_ORG TO DATA_PACK-PURCH_ORG,
IT_PURCHASE-PUR_GROUP TO DATA_PACK-PUR_GROUP,
IT_PURCHASE-DOCTYPE TO DATA_PACK-DOCTYPE,
IT_PURCHASE-DOC_CAT TO DATA_PACK-DOC_CAT,
IT_PURCHASE-/BIC/ZKNTTP TO DATA_PACK-/BIC/ZKNTTP.
IF DATA_PACK-VENDOR IS INITIAL.
MOVE IT_PURCHASE-VENDOR TO DATA_PACK-VENDOR.
ENDIF.
MODIFY DATA_PACK TRANSPORTING VENDOR MATERIAL MATL_GROUP
PURCH_ORG PUR_GROUP DOCTYPE
DOC_CAT /BIC/ZKNTTP.
ENDIF.
ENDIF.
ENDLOOP.
REFRESH DATA_PACKAGE.
DATA_PACKAGE[] = DATA_PACK[].
FREE : DATA_PACK , IT_PURCHASE.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
if you have any other isues do let me know.
Regards
Sundaresan
Message was edited by: sundaresan chander
Message was edited by: sundaresan chander
Similar Messages
-
Relation between Billing line Item and Accounting doc entries
Hi all
when r line items in Accounting doc gets generated for a billing doc.
for ex. if there exists a Billing Doc with 2 lines
is there any relation to the item in the Billing Doc
to the Accounting doc line items.
thanksHi,
In some situation it is possible that there is a link but in the most situation you use summarization to minalize the number of line items created by invoice (like one line for VAT, general discounts). The total ammount from the customer is the same as on the billing document.
When you want to have details by line you can found them in CO-PA.
Paul -
Table to link FI document number, line item and pricing condition type
Hi,
I am looking for tables to link the FI document number, line item and PO pricing condition type.
Appreciate any help on this.
Thanks.For any PO in ME23n in which Goods receipt has happened, you can check in the itemdetails->Po history tab in ME23n.
Here you will find the material document number. Just click on the material document, it will take you to anpther screen here you will find a button for FI document.
Click that button for FI document. In PO history istelf you can see the Condition types.
Hope this helps. -
Comparing and picking the right value form one of the line item in a doc.
Hi Gurus,
I have requirement such that I have to show the tax jurisdiction code of only one item. That is if there are 5 line items with in a document and each one has diffeerent tax jurisdiction code, then we should be showing only one tax jurisdiction code for a document. Line items are not displayed in report. The condition to pick up tax jurisdiction code is the one which has least ending zeros.
Supppose
Doc1 Item Tax Jurisdiction code
1800000002 1 CNQC00000000000
1800000002 2 CNQC00000000000
1800000002 3 CN0000000000000
1800000002 4 CNQC00000000000
1800000002 5 TXJOHNCLEBUR000
I have to display the value of tax jurisdiction code corresponding to item 5 as its has least zeros in it.
So what I am trying to do is add another custom z object tax jurisdiction code and the value for this is populated using a routine in the update rules, such that comparing all the tax jurisdiction code for all the corresponding items in a document.
Now the question is if I am reading all values of document no. line item and tax jurisdiction code into an internal table form communication structure for a data package. And in the update rule I will be writing a routine comparing the values of tax jurisdiction code from internal table and populating the desired value. Now the big question for me is if there are two line items of a document in one data package and another 3 line items of the corresponding same document in data package 2 then how can we compare the values of Tax jurisdiction code of all the 5 line items of a document.
If this can be achieved using customer exit on the front end let me know and just inputs how the abap code would be or if not do I have to write abap in updates rules. I just want to know how to compare different values of Tax Jurisdiction code and select the one with has least ending zeros. For information the tax jurisdiction code is of type character and length 15.
Any help is really appreciated.
Thanks,
RajYes, it's possible. Just use a regular text item. Create an LOV using the LOV wizard. When you define the query for the LOV's record group, enter a statement that selects from the other database table. Set the return value of the appropriate LOV column to be the text item on the form. Finally, assign the LOV to that text item, so that the LOV pops up when the user presses the LOV key with the cursor in that text item. You can also set the LOV so that it automatically displays when the cursor enters the text item.
Just look up LOV in online help if you need more info. -
Line Item Text ( Accounting Doc ) From Billing
Hi Experts,
As i know in Standard process, the Line item text FI Doc ( Accounting Document ) from billing doesn't have any value ( please correct me if i am wrong ).
But in my case there is value in line item text ( billing doc no )
i already check and not found any substistution or userexit, i try to search in customizing but dont have any clue where this text from. please advice where do i have to look.
Thanks,
RickoHello Burak,
Thanks for reply, as i told in the message
right now, there is value in my line item text
it should be blank, but i couldnt find any customizing or anything that cause my line item text filled with billing document number. do you have any idea ?
Thanks,
RIcko
Edited by: Chapii on Mar 19, 2010 5:24 AM -
Relation between Invoice Line items and Accounting Line item
Dear All,
My requirement is to print all the invoice documents and it's tax values like cenvat, Ecess, BED and VAT.
I have to fetch these tax details from BSEG table .
I' am getting Invoice number ( RBKP-BELNR ) from BKPF-AWTKEY .
Can any one please tell me how to relate the Invoice line items and Accounting document line items..
Any BAPI or FM is there to retrieve these data.
Please do needful in this regard.Hi,
from table bseg - field Koart
K = Vendor
D = Customer
S = G/L account here tax lines identify with buzid = T
or take table bset for taxes
Andreas -
To get line item and confirmation details from CRM_ORDER_READ
Hi,
Please can anybody let me know which the field from which i can get line item details and material for the service order given?
I am using CRM_ORDER_READ to retrieve the values. In that i am exporting 4 fields - et_orderadm_h, et_orderadm_i, et_product_i, et_doc_flow. So from where to get line items and material id from these fields?
I will be very thankful if i get the answer of this question.Hi,
The attribute NUMBER_INT of ET_ORDERADM_I contains the Item Number.
Hope this helps!
Regards,
Rohit -
Line item and summary settlement in AUC
Hi
What is the difference between line item and summary settlement with reagrds to AUC,In what cases they are going to be used ,can any one provide me some examples.
Thanks
LilyHi,
In WBS, there would be n number of line items in the Investment Projects.
So while doing settlement for those, we can decide whether to do on WBS based or Line items based.
These settings will be done by CO people.
Regards,
Maheswaran. -
FBCJ LINE ITEM AND FI LINE ITEMS ARE DIFFERENT
Dear Expert
FBCJ LINE ITEM AND FI LINE ITEMS ARE DIFFERENTHi,
It seems from the screen shot you are seeing different documents as in the first screen shot it clearly shows you have booked the multiple expenses under one see the below screen shot we have circled it
whereas FB03 screen shows different.
You can do one thing click on circle item and check the expenses involved in it and accordingly go to FBL3N and display documents for that G/L for the date 05.04.2014.
Hope your issue has been resolved else revert.
Regards,
Tejas. -
Missing Line Items and '?' Symbols in some Reports
I have upgraded the patch level of my production server and patch level
list is given below
SAP_BASIS 640 0022 SAPKB64022
SAP_ABA 640 0022 SAPKA64022
ST-PI 003C_640 0001 SAPKITLPS1
PI_BASIS 2006_1_6400006 SAPKIPYL06
SAP_BW 350 0021 SAPKW35021
SAP_HR 500 0017 SAPKE50017
SAP_APPL 500 0019 SAPKH50019
PI 2004_1_5000004 SAPKIPZI64
problem is that whenever I run SAP FICO standard reports FL3N, FBL5N,
KB01, F.08 etc it generates the report correctly but when i am taking
print out of these reports it misses some line items and total value as
well screen shots are attached for information.
my second problem is that there are some garbage entries with
symbol '?' in SAP Menu and toolbars of some Reports. Screen shot is
also attached for your information.
i am facing lots of problem in executing my daily operations due to
these errors.
regards,
Majid KhanDear Subramanian,
I am facing the same problem in Development and Quality Assurance Server
Regards,
Majid Khan -
Current;y have to expand each major line item and check all the minor line items, I just want a list of SNs associated with the contract. Any way to get this mailed to me every month?
Hi
I am sorry to see you are having problems
I suggest you contact the forum mods they should be able to get this problem sorted for you this is a link to them http://bt.custhelp.com/app/contact_email/c/4951
They normally reply by email or phone directly to you within 3 working days they will take personal ownership of your problem until resolved and will keep you informed of progress
They are a UK based BT specialist team who have a good record at getting problems solved
This is a customer to customer self help forum the only BT presence here are the forum moderators
If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’ -
Error while editing PO - deleting service line item and creating material line item.
In SAP SRM Extended classic scenario, PO is in 'ordered' status and contains a service line item. While editing this PO, I delete the service line item and create a new material line item. This gives me the following error.
Back end error: Enter G/L account
Back end error: LIne item still contains faulty items.
This happens only with service- material comibination and no other combination(material-service, service-service, material-material).
I need to know the reason for this issue and how it can be solved?PO Values (Inc Tax):
Item 1: INR 228 L
Item 2: INR 27.83 L (Payment also done in 2008)
GR for Item 1: INR 207.46 L
Remaining Comm = INR 21.01 L
Item 1 having 73 sub line items.... fo some of the sub-line items GR for some qty already done in last fiscals.
User changing for remaining qty.
Budget Report values:
Previous Years: Budget, Actual & Assigned = 304.85 L
Available = 0 (Carry Forward done for Budget & Commitments)
2011: Budget = 75.15 L
Actual = 53.86 L
Comm = 21.01 L (Same as Remaining Commitment)
Avai = 0.28 L
Hope this will help. -
STO or PO for multiple line items and multiple destinations
I am working in retail enviornment and I have folloowing two questions:
1- we need to push articles( materials) to approx 1400store- we need to create STO with approx 10 line items and send materails to 1400 stores- this happens several times a year.
what is the easiest way to create this document without having to create either 1400 documents or create one document for all stores and enter 14000 lines? (Sames items/ and qty going to all stores)
2- We also have to send approx 600 items to one or two stores at a time ( when a new store is opened)- these items are same.
Is there a way to create this STO/ PO and keep reusing this document again and again withoiut entering 600 line items everytime this requirement comes up ( this requirements comes up anywhere from 10 times per year to 50 times/yr
Does anyone have any idea on how to simplyfy this process. Any help/ idea would be of great help.
Thanks
RajA PO once entered can be copied in ME21N, by drag-n-drop into the shopping cart. The problem might be changing delivery dates and delivery plants.
Another option is to use BOMs. -
In a archived saler Order user had deleted Line Item and completed overall sales order. Now this sales order is archived, but it is stll appearing in BW report as open order because of deleted item with rejection Status is maintained as “A” (Not yet Processed).
We want to change this status from "A" (Not yet Processed) to "C" as completed.
I have tried to reload Archive data but due to some limitation I was not able to do it. Also I feel this will like this s not the proper way to do it.
Could you please help me to correct way to do it???
Thanks in advance....Hi Vaibhav,
If you can get the list of Sales orders which has deleted line items and force completion status. You can manage them in BI via lookup or navigation attribute.
Just my views I am sharing .
Thanks,
KDJ -
Line Item and Transaction Figures
Hi experts,
What is the difference between line items and transaction figures ?
I have gone through a document which specifies for Line items GL AR AP, it picks data respectively frm tables BSEG/BKPF, BSAD/BSID, BSAK/BSIK and for transaction figures GLT0/GLFUNCT, KNC1/KNC3, LFC1/LFC3.
What data 0FI_XX_6 fetches into BI when compared with 0FI_XX_4 ?
Please clarify.
Regards,
Bhadri M.Hi,
What are Transaction Figures :
Transaction figures are the sums of line items on the debit or credit side. The balance is the
difference between the debit and the credit transaction figure.
What is line items :
Line items are document items that were posted to a specific account. In contrast to a document item a line item only contains the information from the document that is relevant from the account view.
You can display the following line items:
Open items Cleared items Noted items Parked items Items with special G/L transactions (in Accounts Receivable and Accounts Payable)
Items with customer or vendor items (in Accounts Receivable and Accounts Payable)
You can display the line items for the following account types:
Customer accounts
Vendor accounts
G/L accounts
Point No 1:
0FI_XX_6 : Transaction Figures:
http://help.sap.com/saphelp_nw04/helpdata/en/41/4b73415fb9157de10000000a155106/content.htm
0FI_XX_4: Line-Item
http://help.sap.com/saphelp_bw33/helpdata/en/af/16533bbb15b762e10000000a114084/content.htm
Regards
Ram.
Edited by: Ramakanth Deepak Gandepalli on Dec 22, 2009 10:46 AM
Maybe you are looking for
-
Where are files downloaded to on the mac when creating a pdf from web pages?
where on the mac HD are files downloaded to when creating a pdf from web pages? Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to
-
Why do i get a JBO-26080 Error
Hi all, My problem: I would appreciate it if someone out there could tell me why i'm getting the following error: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for Output (this is the name of my entity object) Some Background Infor
-
I have been told by NC Medicaid NC Tracks/Liberty that they only support Firefox 10. This is the program where all transactions and processes are conducted. How do I tell what version I have? I have also tried to log in to NC Track with Firefox, but
-
Migration Assistantdidn't include Airport passwords and I can't open them
I had a problem with my PowerBook and needed to use Migration Assistant to recover it. In doing so it seems to have not migrated my SYSTEM keychain which includes all of my encrypted Airport network information. Q: Does Migration Assistant not includ
-
Problem in Oracle EM (Database Limits - Current Open Cursors)
Hi everyone, I have a problem in Oracle Enterprise Manager in All Metrics. When I select in All Metrics e.g. Health Check > Maintenance it work's fine and I see a chart. If I select in All Metrics > Database Limits > Current Open Cursors Count I got