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: 

Get GR number via method BADI : MB_MIGO_BADI~POST_DOCUMENT

Former Member
0 Kudos

Hi Guru,

Method below of MB_MIGO_BADI:

method IF_EX_MB_MIGO_BADI~POST_DOCUMENT

data: GRNO like mseg-MBLNR.

" Here : I want get GR number

GRNO = GR Number after Posting GR from MIGO transaction. GRNO = '100' .

Update IT_MSEG-MBLNR = GRNO. It's mean I want update PR number = 100 in table MSEG through transaction MIGO.

How to code here?

endmethod.

Thanks alot.

Edited by: abaper1712 on Dec 15, 2011 4:40 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

We cannot update the MSEG table directly as it is a cluster table.

Try with the FM 'J_1IEXGM_BADI_POST_DOCUMENT'

Thanks,

Shailaja Ainala.

3 REPLIES 3

Former Member
0 Kudos

Hi,

We cannot update the MSEG table directly as it is a cluster table.

Try with the FM 'J_1IEXGM_BADI_POST_DOCUMENT'

Thanks,

Shailaja Ainala.

0 Kudos

Thank you so much.

I want update Material Document into IS_MKPF. How to do?

Thanks.

0 Kudos

You can achieve this by implementing ES_SAPLMBWL enhancmenet spot it is called in MB_CREATE_GOODS_MOVEMENT function module.

Hope it helps.

Nabheet