cancel
Showing results for 
Search instead for 
Did you mean: 

Material document number and accounting document

Former Member
0 Kudos

Hi,

Which tables can you find the accouting number (BSEG-BELNR) from a given material document #? I know there is a transaction MB03 we can look up, but I'm coding an user exit, I need to loop up tables.

Thanks

Lily

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the table BKPF.

pass AWTYP = 'MKPF'

and AWKEY = 'Material document number' (MKPF-MBLNR) + 'Year'(MKPF-MJAHR).

basically concatenate 'Material document number' (MKPF-MBLNR) + 'Year'(MKPF-MJAHR) to get the awkey...and then use that value in the BKPF select.

Thanks

Naren

Former Member
0 Kudos

Great!! Thanks.

I'll mark this thread as "answered".

Answers (2)

Answers (2)

former_member188685
Active Contributor
0 Kudos

<ignore>

Edited by: Vijay Babu Dudla on Oct 8, 2008 2:56 PM

Former Member
0 Kudos

Hi,

Check table MSEG.

Regds,

Senthil