Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI or Function Module to get MSEG table data based on PO Number (EBELN)

Former Member
0 Likes
2,649

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,287

1) BAPI_PO_GET_LIST

Regards,

Ravi

Read only

0 Likes
1,287

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

Read only

Former Member
0 Likes
1,287

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

Read only

0 Likes
1,287

You can use the function module ME_READ_HISTORY to get the PO history details.

Regards,

KP