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: 

Warning msg in MIGO

Former Member
0 Kudos

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

6 REPLIES 6

former_member404244
Active Contributor
0 Kudos

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

0 Kudos

Hi,

could you provide a coding example for the MB_DOCUMENT_BADI ?

0 Kudos

Hi,

In the method You write the below code



check st-tcode eq 'MIGO'.

Write your validation code.
message '<>' type 'I'.

Regards,

Nagaraj

0 Kudos

Hi,

Thanks,

But what method of MB_DOCUMENT_BADI ? Is MB_DOCUMENT_BEFORE_UPDATE the right one?

0 Kudos

Hi,

Yes the method you have mentioned is the correct ont..Please try and let us know.

Regards,

Nagaraj

Former Member
0 Kudos

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.