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

BADI/EXIT for MIGO Tcode..

Former Member
0 Likes
459

Hi all,

When am creating GR for a PO, i want to raise a pop up when the batch is REJECTED.

any one help me in solving this issue..?

thanks

Hi all,

When am creating GR for a PO, i want to raise a pop up when the batch is REJECTED.

any one help me in solving this issue..?

thanks

2 REPLIES 2
Read only

Former Member
0 Likes
424

Try exit : MBCF0005 or badi mb_migo_badi ..

Regards,

Ramesh

Read only

0 Likes
424

am using the method POST_DOCUMENT,

am writing the code like..

sample code..

DATA: wa_mseg type mseg,

wa_mch1 type mch1,

wa_ausp type ausp.

loop at it_mseg into wa_mseg.

*select single * from mch1 into wa_mch1 where matnr = wa_mseg-matnr*

and charg = wa_mseg-charg.

if sy-subrc is initial.

*select * from ausp into wa_ausp where objek = wa_mch1-cuonj_bm*

and klart = '023'.

if sy-subrc is initial.

if wa_ausp-atwrt EQ 'ACCEPTED'.

continue.

else.

if wa_ausp-atwrt EQ 'REJECTED'.

call function 'popup_to_display_text'.

endif.

endif.

endif.

endif.

endloop.

when i debug ,i find no data in the mch1 table ..

any help..

thanx