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: 

Capturing Goods Reciept Number

Former Member
0 Kudos
128

Hi Expert,

I am doing BDC program for transaction MFBF.

After call transaction MFBF, it is posting Goods reciept number.

I want to capture that Goods Reciept Number and display in output.

Can any one know how to capture or which table it will store?

Regds,

Udupi

1 ACCEPTED SOLUTION

Former Member
0 Kudos
98

While calling transaction, ad logic i.e.

Call transaction MB51messages into msgtab.

Now u had to set a debugging point to check in which msgtype posting number is captured.

Then write

if sy-subrc = 0.

read msgtab into wtab with key msgtype = .....

Edited by: Suruchi Razdan on Dec 5, 2011 7:21 AM

4 REPLIES 4

Former Member
0 Kudos
98

HI ,

you need to capture all messages using "call transaction MESSAGES INTO itab(type BDCMSGCOLL) " ...it will capture all the informations incl GR no.

Regards

Prabhu

Former Member
0 Kudos
99

While calling transaction, ad logic i.e.

Call transaction MB51messages into msgtab.

Now u had to set a debugging point to check in which msgtype posting number is captured.

Then write

if sy-subrc = 0.

read msgtab into wtab with key msgtype = .....

Edited by: Suruchi Razdan on Dec 5, 2011 7:21 AM

Former Member
0 Kudos
98

GR no is stored in MKPF and MSEG tables(i.e. Material document no).

Former Member
0 Kudos
98

Thanks. problem solved.