05-31-2011 10:11 AM
Hi all,
In MIGO I need to output a warning msg that is being build in an user exits. The problem is that the warning msg is not showing up in the display log. Only if I change the msg to an error it will show up.
Anyone had a similar problem?
Could MB_MIGO_BADI with method CHECK_ITEM be used for this ? Even in an user exit?
I'll appreciate your feedback on this.
Thanks.
Svein O
05-31-2011 10:20 AM
Hi,
Try this BADI "MB_DOCUMENT_BADI" and use the first method before save. Instead of warning message also try information message.
However this badi is also called if you are using any program with bapi "BAPI_GOODSMVMT_CREATE".. To avoid this use SY-TCODE check in the method of the badi.
Regards,
Nagaraj
05-31-2011 10:43 AM
Hi,
could you provide a coding example for the MB_DOCUMENT_BADI ?
05-31-2011 11:34 AM
Hi,
In the method You write the below code
check st-tcode eq 'MIGO'.
Write your validation code.
message '<>' type 'I'.
Regards,
Nagaraj
05-31-2011 11:39 AM
Hi,
Thanks,
But what method of MB_DOCUMENT_BADI ? Is MB_DOCUMENT_BEFORE_UPDATE the right one?
05-31-2011 11:46 AM
Hi,
Yes the method you have mentioned is the correct ont..Please try and let us know.
Regards,
Nagaraj
06-01-2011 11:48 AM
Hi,
Problem solved - by use of fm MICK_MESSAGE_ADD
call function 'MICK_MESSAGE_ADD'
exporting
i_msgty = 'W'
i_msgid = 'nn'
i_msgno = 'nnn'
i_msgv1 = i_mseg-nnnn
i_msgv2 = i_mseg-nnnn.