Application Development 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: 

Link b/w agreement and SD documents

Former Member
0 Kudos
84

Hi,

I have a "agreement number" and the VBELN(SD document number) and i need to know the accounting document number linked to them....is there some table/FM using which I can find that out.

also,do i need some thing more than a agreement number and VBELN to find the accounting number?

thnx in advance

chirantan

2 REPLIES 2

Former Member
0 Kudos
61

Hi,

You need not have agreement number to find out Document number.

what u do is go to VBAK table find out KUNNR based on Sales order, then with that kunnr go to BSID table, give Kunnr value & find Document number (BELNR).

If helps pls reward points.

Former Member
0 Kudos
61

Hi,

You can Pass the Agreement No in XBLNR and VBELN fields to BSID table and get the BELNR Accounting Number.

Regards,

Anji