Академический Документы
Профессиональный Документы
Культура Документы
http://forums.sdn.sap.com/thread.jspa?threadID=157947
Log In
Register
About Us
How to Contribute
Store
BPX Community
Articles eLearning
Business Analytics
Downloads
University Alliances
Career Center
SAP EcoHub
InnoCentive Idea Place SAP Help Portal
Code Exchange
Events
SAP Community Network Forums ABAP Development ABAP, General Thread: How to do changes in Z"ME2M" (Copied report of ME2M)
Replies: 4 - Pages: 1 - Last Post: Jun 6, 2006 2:28 PM Last Post By: Nishanth Bhandar
Kripa Rangachari
Posts: 186 Registered: 6/16/05
Reply
Forum Points: 22
Hi Friends, The standard transaction ME2M gives the PO documents with the details of GRN & GRIR quantities to be delivered and quanities to be invoiced and the report output is based on the document date My Requirement is: I have to add a "Posting date" select-options so that the user can take the report output based on the Posting date of the document. Scenario: In Standard: >>> I have a document with document date 15.05.2006 and >>> its posting date is 06.06.2006 (today). >*** I want the report between the dates 01.05.2006 to >*** 31.05.2006 .and iam running the report today.. As >*** the document is posted today it is not getting >*** reflected in the report output. The "Z"ME2M should pick this docuemnet also in the output, as the document is a Pending document when on 31.05.2006 How can i do that ??? any inputs ???? Expecting your answers .... Hope my requiremet and question is clear Thanks in advance ;-) Cheers ;-) R.Kripa.
Nishanth Bhandar
Posts: 303 Registered: 6/7/05
Reply
Try by putting the posting date according to server date.It should get selected if it's posted today.Is this what u wanted .. ?
Kripa Rangachari
Posts: 186 Registered: 6/16/05
Reply
Forum Points: 22
Hey no ..... I have a docuemnt "A" My Document date is 15.05.06 My Posting date is 06.06.2006 Iam running between dates 01.05.2006 - 31.05.2006
1 of 2
2/16/2012 12:35 PM
http://forums.sdn.sap.com/thread.jspa?threadID=157947
So as per the requirement.... As on date 31.05.2006 My document "A" is still pending ( i.e) not posted still So "A" should come in the reports output.... How can i modify the report... From my initial analysis ... i found ... Table EKPO holds the PO header details Table EKBE holds the GRN and GRIR details with Movement type (BWART --> 101,105,103 and Quantity --> MENGE) Any inputs ??/ Cheers ;-) R.Kripa.
Kripa Rangachari
Posts: 186 Registered: 6/16/05
Reply
Forum Points: 22
Nishanth Bhandar
Posts: 303 Registered: 6/7/05
Reply
Kripa, For a purchase order the header details are in EKKO and the item details are in EKPO.In your case you need the table which contains the Posting date for a Purchase order.The table is EKBE and the field is BUDAT.Now that you know where the related data is stored let us proceed to changing the program for ME2M. 1. I Guess you have already added the Posting date as a select option field in your ZME2M program. 2. Let us consider ur case where u need all the documents between 01.05.2006 - 31.05.2006 whether it is posted or whether it is still open.Your logic should be to select the documents between the specified period by checking whether the document created date(EKKO-AEDAT) is between 01.05.2006 - 31.05.2006 and that the posting date field is populated(EKBE-BUDAT).But this will miss out the documents which are open as is happening in ur case. so in ur select-options for posting date include a blank entry which will check for those purchasing documents which do not have a posting date selected. *Include Blank Row. r_posting_date_range-option = 'EQ'. r_posting_date_range-sign = 'I'. append r_posting_date_range. To be more precise your select will be like this. Select ekko~ebeln from ekko as ekko inner join ekbe as ekbe on ekko~ebeln eq ekbe~ebeln where aedat in r_created_date_range and budat in r_posting_date_range. This should give u the required output. I Hope what i am telling is clear.
Pages: 1
Powered by Jive Software Contact Us Site Index Marketing Opportunities Powered by SAP NetWeaver Legal Terms Privacy Impressum
2 of 2
2/16/2012 12:35 PM