Line items to be clubbed and shown as single record in BEX output
Hi All
I needed help in BEX
The late days are calculated on basis of clearing date , due date which is not shown in output
Currently I have output as
Plant Customer Amount Late Days
A C1 100 20
A C1 200 30
B C2 100 15
B C2 150 10
Need output as
Plant Customer Amount Late Days
A C1 300 50
B C2 250 25
Regards
Ak
I have posting date which user enters on selection screen.
Now this posting date I need to compare with clearing date
and if clearing date is NULL or greater than posting date
it should display the records.
I have created 2 variables ZPOST_SO ( user entry) ZCLARDAT ( customer exit)
I have written exit but there is a bug in it.
Please advice what changes need to be done to the code or any other approach
Data: l_s_var_range3 Type RRS0_s_VAR_RANGE,
l_s_var_range2 type RRS0_s_VAR_RANGE,
postingdate Type /BI0/OIPSTNG_DATE,
clearingdate Type /BI0/OICLEAR_DATE.
CASE i_vnam.
WHEN 'postingdate'.
IF I_STEP = 2.
READ TABLE I_t_var_range INTO l_s_var_range3 WITH KEY VNAM = ZPOST_SO.
READ TABLE I_t_var_range INTO l_s_var_range2 WITH KEY VNAM = ZCLARDAT.
postingdate = l_s_var_range3-low.
clearingdate = l_s_var_range2-low.
If clearingdate >= postingdate or clearingdate is INITIAL.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = clearingdate.
ENDIF.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDCASE.
Regards
Amit
Similar Messages
-
Hi,
The requirement is to get PO line item details from BAPI_PO_GETDETAIL1 and save it in the internal table and append that internal table into the BAPI_PO_CHANGE.
But i am getting dump in this program.
TABLES: ekpo.
DATA: BEGIN OF po_details.
INCLUDE STRUCTURE BAPIMEPOITEM. "Include the structure of Dictionary Reference.
DATA: END OF po_details.
DATA: BEGIN OF po_details1.
INCLUDE STRUCTURE BAPIMEPOITEM. "Include the structure of Dictionary Reference.
data: END OF po_details1.
DATA: it_po_details LIKE STANDARD TABLE OF po_details,
wa_po_details like line of it_po_details.
data: it_po_details1 like standard table of po_details,
wa_po_details1 like line of it_po_details1.
PARAMETERS: p_ebeln LIKE ekpo-ebeln DEFAULT '4500000016'.
CALL FUNCTION 'BAPI_PO_GETDETAIL1'
EXPORTING
PURCHASEORDER = p_ebeln
TABLES
POITEM = it_po_details.
loop at it_po_details into po_details.
read table it_po_details into wa_po_details with key PO_item = p_ebeln.
move-corresponding po_details to po_details1.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
PURCHASEORDER = p_ebeln
TABLES
POITEM = it_po_details.
append po_details to it_po_details1.
LOOP AT it_po_details1 INTO wa_po_details1.
WRITE:/ wa_po_details1-PO_item,
wa_po_details1-MATERIAL,
wa_po_details1-SHORT_TEXT,
wa_po_details1-PLANT.
ENDLOOP.
endloop.HI,
1st you check for the following following authorization objects are checked:
M_BEST_BSA (document type in PO)
M_BEST_EKG (purchasing group in PO)
M_BEST_EKO (purchasing organization in PO)
M_BEST_WRK (plant in PO)
and to change the PO below is the eg for changing the short text:-
TABLES: ekpo.
DATA: BEGIN OF po_details.
INCLUDE STRUCTURE bapimepoitem. "Include the structure of Dictionary Reference.
DATA: END OF po_details.
DATA: BEGIN OF po_details1.
INCLUDE STRUCTURE bapimepoitem. "Include the structure of Dictionary Reference.
DATA: END OF po_details1.
DATA: it_po_details LIKE STANDARD TABLE OF po_details,
wa_po_details LIKE LINE OF it_po_details.
DATA: it_po_details1 LIKE STANDARD TABLE OF po_details,
wa_po_details1 LIKE LINE OF it_po_details1,
poheader LIKE bapimepoheader,
return LIKE STANDARD TABLE OF bapiret2 WITH HEADER LINE,
poitemx LIKE STANDARD TABLE OF bapimepoitemx WITH HEADER LINE.
PARAMETERS: p_ebeln LIKE ekpo-ebeln DEFAULT '5600010646'.
CALL FUNCTION 'BAPI_PO_GETDETAIL1'
EXPORTING
purchaseorder = p_ebeln
IMPORTING
poheader = poheader
TABLES
poitem = it_po_details.
LOOP AT it_po_details INTO po_details.
READ TABLE it_po_details INTO wa_po_details INDEX 1.
MOVE-CORRESPONDING po_details TO po_details1.
MOVE: po_details-po_item TO poitemx-po_item,
'X' TO poitemx-short_text.
APPEND poitemx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = p_ebeln
poheader = poheader
TABLES
return = return[]
poitem = it_po_details[]
poitemx =
poitemx[].
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
APPEND po_details TO it_po_details1.
LOOP AT it_po_details1 INTO wa_po_details1.
WRITE:/ wa_po_details1-po_item,
wa_po_details1-material,
wa_po_details1-short_text,
wa_po_details1-plant.
ENDLOOP.
ENDLOOP. -
Line item problem in FBL3n and FS10n
Dear ALL FI expert
In my one G/L account(WIP) I do not see any line item data using FBL3n, FS10n.
But the transaction is made in period jan ~ march/2009.
Can anybody tell me why the problem happend?
Note: Actually I can see last year data and it is okay.
Thanks & B.Rgds
Bishnu
23/04
Edited by: Bishnu Dey on Apr 23, 2009 11:08 AMHi Bishnu,
For the said GL, check in FS04, whether the line item mgmt tick was changed?
If changed do the following:
Activation of Line item management
For the same a GL had been created with no tick in 'Line item display'. Documents were posted.
Now the line item Display is to activated in the above GL.
For the same for the following process:
a)Tick the line item display in the GL master and save
b)The GL has to blocked for posting
In FS00, Click on the block button and tick the Block for posting button and save.
c)After the blocking of the GL, go to SE38 and enter RFSEPA01 as the program and press execute
d)Enter the Company code and the GL
e)Press Execute.
Now the line items were generated for the GL. Table BSIS was updated. Unblock the GL for further postings
Deactivation of line item management
Now for deactivating line item in a GL the following process should be followed.
a)Untick the line item display in the GL master and save
b)Block the GL for postings (as shown in 1.2.1)
c)Go to SE38 and enter RFSEPA04 as the program and press execute
d)Enter the Company code and the GL
e)Execute
After the execution of the program all the line items of that particular GL will be deleted from BSIS table. Unblock the GL for further postings
Regards,
Kiran -
Report GL Account Line Item with vendor name and VAT registration number
Hi,
Is there any standard SAP report/inquiry for GL Account Line Item like FBL3N, with information vendor name and VAT Registration Number (field STCEG) without using ABAP.
Thanks.Hi,
We can get purchase register through T.Code: 'J1I2' by specifying condition types and tax codes.
We can't get 100% report from this T.Code.
Check it once.
Regards,
Padmaja N. -
How to reverse a FI document with line item that is cleared and archived.
Hi all,
Appreciate your help on this.
I have a FI document, say 1000001 with 3 line items.
line 1 and 3 is open. line 2 is cleared by document 1000002.
1000002 is subsequently being archived.
Now, is there any way to reverse document 1000001?
I can no longer do a FBRA (reverse and reset) since 1000002 is already archived.
Please help!
Thank you,
Lai SanHi Lai San,
Dont know whether this helps.. but just a thought....
i came across a note regarding reversal of an SD document when the corresponding FI document was already archived.. reversal was not working due to a program error (SAP note 410590). does the FI doc reversal also work on lines with SD doc reversal? (iam a layman here ) maybe u can consult SAP?
Regards,
Naveen -
Balancing field "Profit Center" in line item 002 not filled and VF02
Dear All,
Below mentioned error we got in VF02 while releasing the billing to Accounting document.
In this case SO has created. Later with out delivery has been created Billing ( VF01) And Later Releasing through VF02 ( For only 1 specific Billing type )
But we have CRM Integration also from CRM 7.0 TO ECC 5.0 ( New GL Is there in ECC 5.0)
Here alternative solution is there i.e In OKKP T code if we deselect Profit center Button Issue will be resolved from SD side ( PC Issue )
Then problem will come to CRM with another message as ( Account-based PCA not active in year 2011 in controlling area 1001 (Notification I KM 029) Message no. CRM_ORDER_MISC 060)
Balancing field "Profit Center" in line item 002 not filled
Message no. GLT2201
Diagnosis
The field Profit Center marked as balancing is not filled with any value in line item 002, even after document splitting.
System response
The document cannot be posted.
Procedure
First check your entries.
Additional causes could be:
No value can be derived for this field from the current document data.
You have entered a document type that is not designed for this business purpose.
Please help on same.Hi
If i am selecting that indicator in 0KE5 Problem will be resolved in CRM.
But VF02 Is getting this Balancing field "Profit Center" in line item 002 not filled problem.
With out selecting that indicator please suggest. From Last 5 years we are using this Production System.
0KE5 indicator has not selected from 2005 to 2011 also.
CRM Is is process. we have selected in QA, But problm occurs to VF01 and CRM Process.
Simply if i select 0KE5 CRM problm will resolved.
Later SD Problem will come into the pictute.
Note: In PD1 System we hav not selected for 2011 also.
Pls put more inputs. -
Doubts on clearing line items in profit centre and deleting the profit cent
hello All
We are using ecc 5.0 and new g/l, document splitting is activated. We are not using classic profit centre accounting.
We have two accounts which has values for profit centre 1010219.
1. 228100 which is assigned in cross company code clearing account
2. 228200 which is assigned in cross business unit ( as a part of zero balance account) in documen splitting.
now i want to clear all he entries for this profit centre and transfer them to another profit centre 1010403.
I am unable to do so as everytime I try to pass cross profit centre entry, Account 228200 gets a balacing line item( as a part of zero balance). this way my profit centre trail balance will never become zero.
can some body help me with this,,,,
1. in classic profi centre we could use t-code ke90 just to pass a document entry in PCA, this is not possible in new g/l... is there alternative.....
please help....
thanks
sanjeevHi,
You can try Profit Center Distribution(both sender and receiver gets original account numbers) or Assessment(Assessment cost element shall be a bring in between) to transfer values from multi profit centers to one single profit center or multi profit centers. The cycle can be run on a periodical basis.
Trust this answers to your query! -
Merge several PR line into into 1 PO line item with ME57-Assign and process
Our process is run MRP to generate Purchase requisition, system generate 1 PR number for each materials. Happening that there are multiple PR for a same material number and same delivery date. When we convert PR to PO using tcode Me57 - Assign and Process PR, system always generate different line item for each PR even the materials and the requirement date is the same.
How to merge 2 or a few PR line items for a same material and same requirement date into 1 purchase order line item?Hi,
You should use the "shopping cart'' in the "Delivery Schedule" Tab page of the PO to achieve your requirement. Basically, in this case, you should use ME21N transaction with ''Document Overview" feature to select related PR line items and drag them into this shopping cart.
Cheers,
HT -
Line item interval for SCs and POs
Is it possible to change line item numbers to start from 10, 20, ,,,,etc instead of 1,2,3,.. etc. for shopping carts and POs ? Is there a BADI involved or somewhere in config ? Where is the line item interval defined ?
In R/3, you can define the line item interval in the doc type config.
Thanks
-BakuleshHi
Which SRM version are you using ? Why you want to do this ?
Any specific reasons/ requirments ?
We have similar requirment long time back, We tried a lots of things.. But no luck, I guess, it's not possible at all in SRM...
P.S. To confirm this, Please create a new OSS message with SAP asap, for faster processing of the query.
Do let me know.
Regards
- Atul -
Line item connection between MSEG and FAGLFLEXA
Hi all.
I have the following problem:
I have a material document in MM no 100. The FI document in FAGLFLEXA is document NO 1000.
For the material document type 101 (reception) i have 5 articles.
In FAGLFLEXA, in the FI document, i have besides the stock account for each material, the account for price differences. So, i have 10 lines for the FI document, each material in MM has 2 lines in FI.
Is there a way to link the material from MSEG to the corresponding lines in FAGLFLEXA ?
Ofcourse, there could be that one of the materials in the mm document has the right price, so i will not have the price difference acount in FI. That's why, i need to link at line item level the articles with the corresponding line items in FAGLFLEXA.
I use tabel FAGLFLEXA because the company that needs the information from our system can connect only connect to the database and bseg is cluster table.
Thank you,
Cristian.Dear Venu,
In Credit management configuration I configured everything but in that I have question related to XI.
For SAP FSCM Credit management do we need to activate XI ??? we have SAP FSCM credit management and FI- AR credit management in same system.
I activated the BAdI which is used to activate the SAP FSCM Credit management, After activating this BAdI i created sales order , after i input sold to party , i got the error message as above message.
Menu path for that BAdI is
SPRO -> Financial Supply Chain Management -> Credit Management -> Integration with Accounts Receivable Accounting and Sales and Distribution -> Integration with Sales and Distribution -> BAdI: Activation of SAP Credit Management
SPRO -> Financial Supply Chain Management -> Credit Management -> Integration with Accounts Receivable Accounting and Sales and Distribution -> Integration with Sales and Distribution -> Customer Enhancements -> BAdI: Connection of SD to SAP Credit Management
If you have any information related to this , please provide it to me .
Best Regards,
Jenny -
Line Item of table BSEG and table BSET
Table BSEG tax code (v7,d7) line item is 002,003,004 .But in table BSET
why line item not be 002,003,004. Please see as bellow:
Table : BSET
Document FisicalYear Line Item TaxCode Amount
4300003370 2007 004 V7 21.00
4300003370 2007 005 V7 21.00
4300003370 2007 006 D7 45.50
Table : BSEG
Document FisicalYear Line Item TaxCode Amount
4300003370 2007 001 1837.50
4300003370 2007 002 V7 21.00
4300003370 2007 003 V7 21.00
4300003370 2007 004 D7 45.50
4300003370 2007 005 1750.00
4300003370 2007 006 0.00Any one please.
-
CO Line item postings to WBS and apportionments, settlements
Hi all of you,
I am new to SAP PS and could any one give me some basic level stuff regarding WBS accounting and Cost apportionment like Overheads, and finally WBS Element settlements.
As per my knowledge, in FI postings will refer WBS elements directly, so what about the overheads been captured by cost centers in CO? Are we able to allocate cost from Cost centers to WBS elements to get accountancy of WBS Elements? In this situation how the WBS Elements will get settled if they belongs to Customer Projects?
Please give some light on this
Thanks & Regards
RamkiYou will get all informations here...http://help.sap.com/saphelp_erp60_sp/helpdata/en/04/926eae46f311d189470000e829fbbd/frameset.htm.. spend time in reading this...for overheads we use costing sheet...in costing sheet customization we give cost center....
-
Plant/Site field in Customer Line item in f-29 and f-22
Hi All
I have a requirement of adding the Plant / Site field while posting the Customer advances in f-29
I have make the field optional in the Posting key field status variant and in the General Ledger Field Status variant Group in OB41
But still i am not able to see the field of Plant / Site in the customer advances.
Kindly tell me where i am missing some thing or if it is to be added in some other way
Regards
BilalHi ,
For your requirement i tried in my system.The plant filed is appearing in the F-29,F-22.
For that you can do the setting as below
1.Posting Key 19 select Plant is required field in OB41
2.Check in FS00 for bank account filed status and reconciliation of advance from customer account.
3.Go to the Field status for G067,G005.G001 and change plant field as required in OBC4.
May be this information is useful to you
If you have any doubt feel free to ask
Regards
Surya -
Filter on 1 item in a column and the whole column is removed from output
If I open a report in Bex Analyzer. I have a column for customer. If I double click on 1 customer name in the column to filter, it does the filter but the customer column is no longer displayed in the report output. I want to do the filter but still have the column in the report. I know I can go back to the filter tab and add it back in but is there a way to tell it not to remove columns after filtering on one item in that column?
You must to execute the command "Fix Filter Value to Axis". Choose it if you only want to see data for one characteristic value and want the characteristic value to continue to appear in the drilldown.
-
13 line item dimension cube into BWA?
I have heard earlier that BWA does not support line item dimensions due to swap of data between blades. not sure this is still an issue.
My cube has 13 line item dimensions. For performane reasons, we created 13 line item dimensions as cube storing 240 million records and user want to analuse all this data.
I want to push this line item cube to BWA for better performance and like to know the impact.
thanks for advance replies.
Thankstexas_user wrote:
My assumption for BWA has no limitations. That's why we spent so much for BWA right?
Rewording Mark Victor Hansen: "Only in imagination, there's no limitation".
Best cases for BWA performance are documented; unfortunately the only link I have on hand is to BIExpert article [Tips and Techniques for Optimal Query Performance with SAP NetWeaver BI Accelerator|http://www.bw-biexpertonline.com/article.cfm?id=3665].
> It should support all navigation included single record reading to whole set of data.
> I have 300 million of records in cube. We don't know what kind of adhoc analysis user planning to do.
> We put all 14 fields from base cubes in query allowing user to do anything with data to make better decisions.
> My question is making 13 line item dimension in cube and putting 300 millions records in BWA improve performance or not?
> Space or cost is not concern here. Do we able to do it?
> Does Web intelligence query come back? Or die?
So far there is nothing worrisome in your description. 300M recs is not mind-blowing. The areas of watch-out:
1/ There used to be performance implications with line-item dimensions in the past, when number of records in dimension was higher than number of records in fact table. But it was 2-3 years ago...
2/ Once you put something on top of BW, like BO in your case - you need to check where time is spent, because in the past communication between BI tool and BW used to have impact as well. Make sure you have latest patches there.
Cheers,
-Vitaliy
Maybe you are looking for
-
How do I get the camera widget to re-appear on my I phone 4S
The Camera Widget on my I Phone 4S is no longer on the screen--everything else is working properly.--the cameras are working as I can use FaceTime. Have been unable to figure out how to get the widget to reappear so I can take photos.
-
How to create test database in system (have downloaded mxdb)
how to create test database in system (have downloaded mxdb)...Can someone pls help as I am new to SAP
-
i just downloaded the new update for itunes and the itunes store wont open up it is taking a long time it still hasnt loaded since 5pm, i also cant sighn in either it just keeps on saying accessing itunes....
-
What are the main advantages of using the IP Spoofing options in OLT?
We are currently re-thinking our deployment of OATS (currently only 2 agent machines) and I was wondering about the benefits of using IP spoofing. Has anyone got any experience of using this feature (examples of when it's required)? What sort of scen
-
How do I 'save as' on imovie 10 projects?
Hi I've created a movie in imovie but need to modify content and save as - how do I do this? Why has the file functionality been taken off - very frustrating! Cheers