2008 Sep 25 7:31 AM
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
2008 Sep 25 7:43 AM
Try exit : MBCF0005 or badi mb_migo_badi ..
Regards,
Ramesh
2008 Sep 25 8:03 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |