‎2008 May 12 2:19 PM
Hi
1. Is there any BAPI / Function Module to get PO details based on Plant and PO date?
2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
Thanks
Narendra
‎2008 May 12 2:23 PM
‎2008 May 12 2:31 PM
Hi,
If you do not find a FM, in the MSEG you have the field EBELN and EBELP.
Regards,
Fernando
Edited by: Fernando Pinto on May 12, 2008 3:31 PM
‎2008 May 12 8:14 PM
if you have a specific PO, it is sometimes quicker to go to table EKBE, the purchase order history. In standard, there is not an index on MSEG over EBELN and EBELP, plus you have the date issue to deal with (dates are in MKPF). in EKBE, you can use the PO and Item to get the material documents directly.
if you needed additional MSEG info, you would then have the document key information to get the document direclt from MSEG
just a thought
Edited by: David Knittle on May 12, 2008 3:18 PM
‎2008 Aug 12 5:01 PM
You can use the function module ME_READ_HISTORY to get the PO history details.
Regards,
KP