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

Link Between Material Document and Accounting Document Tables

Former Member
29,357

Hi Abapers,

Can u pls tell me, How can i link Material Document Tables (MSEG and MKPF) and FI tables (BSEG and BKPF)?

The actual scenerio is when we confirm order in Production Planning. I want to pickup value from FI tables.

Thanx in advance.

Regards,

S.GUNA

1 ACCEPTED SOLUTION
Read only

Former Member
9,771

hi

good

There is a link between BKPF and MKPF

BKPF-AWTYP = 'MKPF'

BKPF-AWKEY = MKPF-MBKLR + MKPF-MJAHR

Then you have to match lines of BSEG and MSEG on other criteria (quantity, MATNR, amount, etc.)

thanks

mrutyun^

5 REPLIES 5
Read only

Former Member
0 Likes
9,771

Hi

BSEG and MSEG will have PO no and Item no EBELN and EBELP fields in common

but I suggest not to use BSEG and BKPF

better to use the BSIK and BSAK tables

Take LIFNR,EBELN and EBELP fields and enter in BSIK and BSAK table and take the BELNR field which is nothing but the acc doc and you can use it further to fetch from other tables

Regards

Anji

Read only

Former Member
9,772

hi

good

There is a link between BKPF and MKPF

BKPF-AWTYP = 'MKPF'

BKPF-AWKEY = MKPF-MBKLR + MKPF-MJAHR

Then you have to match lines of BSEG and MSEG on other criteria (quantity, MATNR, amount, etc.)

thanks

mrutyun^

Read only

Former Member
0 Likes
9,771

Hi Guna,

you can always use "Environmental Analysis" of the tcode where you are confirming the order., for finding the underying tables.

1. Get the main program of the Tcode (order), by system status menu facility.

2. Goto se38 and give the main program name and click the

Environmental Analysis button, the icon adjacent to where-used three pegged icon.

this will list the tables . narrow down to FI segment and find out.

Wishes,

Rajagopalan

Read only

Former Member
0 Likes
9,771

Thank u to all

Read only

Former Member
0 Likes
9,771

Thank u to all