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

Reference to Purchase order?

Former Member
0 Likes
2,514

I see that BSEG has a field 'EBELN'.. Will this field always be populated with associated Purchase order number?

I have a clearing document of type 'KZ', can I get the associated Purchase order by going to BSEG-EBELN for this document?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,462

Take a look at OSS Note 207436 and table T021S to see if this helps answer your question.

Regards,

James Gaddis

I see that BSEG has a field 'EBELN'.. Will this field always be populated with associated Purchase order number?

I have a clearing document of type 'KZ', can I get the associated Purchase order by going to BSEG-EBELN for this document?

6 REPLIES 6
Read only

former_member181966
Active Contributor
0 Likes
1,462

I havent tried but I am sure these fields populated in tables ..

BSAK Accounting: Secondary Index for Vendors (Cleared Items)

BSEG Accounting Document Segment

BSIK Accounting: Secondary Index for Vendors

Hope this`ll help you .

Thanks

Read only

Former Member
0 Likes
1,463

Take a look at OSS Note 207436 and table T021S to see if this helps answer your question.

Regards,

James Gaddis

Read only

0 Likes
1,462

Thanks James.. But not sure if that is the OSS note I am looking for..

My requirement is to get the associated Purchase order number for a cleared document.. I am starting from BSAS table.

For the cleared document, BSEG-EBELN seems to be empty though it is updated for the original document

Read only

0 Likes
1,462

If you have BELNR - acct doc no, then In table BSAS look-up the field ZUONR. Does it have the PO Number?

Read only

0 Likes
1,462

Not all items in BSEG are PO related, so they won't have an entry in EBELN.

Rob

Read only

0 Likes
1,462

Hi

The FIELD BSEG-EBELN and BSEG-EBELP are populated for account document generated by MIRO.

So from PO (EKKO, EKPO) it's created an incoming invoice (RBKP, RSEG) and so account document (BKPF, BSEG).

When the account document is cleared, the clearing document haven't the PO number, so you should find out the original document (Invoice).

Remember that the clearing date and clearing document are the posting date and number of clearing document.

Max