2009 Apr 15 12:52 PM
hello,
i have to built a report for purchase requisition i got stuck while finding the latest purchase order so how i can solve this problem
2009 Apr 15 1:04 PM
Hi,
Waht do you mean by latest purchese order.
U can get purchase order based on date created.
EKKO-ERDAT.
Can you please explain u r question clearly.
Thanks
2009 Apr 16 6:37 AM
hiiiiii,
i want the latest PO OF PARTICULAR ITEM.
IT MEANS IF AN ITEM HAVING THREE PO WITH BWART - 101 101 102(REVERSAL) OF SAME DATE 04.04.2009 SO MY CODING WILL OF THAT TYPE THROUGH THAT I SHOULD GET LATEST PO MEANS IF 102 IS LATEST THEN IT SHOULD BE DISPLAY WITH ITS QUANTITY RATE AND SUPPLIER NAME.BUT RIGHT NOW ACCORDING TO MY PROGRAM IT SHOWING 1ST BWART-101 VALUES IS IT NEED TO SORT IF SO THEN WHICH TABLE I HV TO SORT??
IAM USING TABLES - EBAN FOR PR, MSEG,EKBE, LFA1.
2009 Apr 16 7:05 AM
Hello
You have purchase requisition. So, EBAN-BANFN and EBAN-BNFPO.
1. Goto EKET with EBAN-BANFN and EBAN-BNFPO and get all EKET-EBELN and EKET-EBELP for particular position.
2. Select from EKBE into internal table all records with EBELN = EKET-EBELN and EBELP = EKET-EBELP and BWART between '101' and '102'.
3. Sort this internal table by EBELN and BELNR. Last record will have latest PO number.
2009 Apr 15 1:10 PM
go to cdhdr table sort internal table with date and time in decending order,
2009 Apr 15 1:11 PM