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

Error Message on MIGO before material document is created

Former Member
0 Likes
420

Hello,

I have an assignment to show an Z error message on MIGO before the material document is created, but I couldn't find an BADI ou exit to do that. Does anyone know which BADI ou Exit can I use to stop processing and get the last message, in these case a Z message? I need to use command MESSAGE to get the last message, because I'm creating material document through tcode CO54 and I need the last message because the log.

Thank you all!

Hello,

I have an assignment to show an Z error message on MIGO before the material document is created, but I couldn't find an BADI ou exit to do that. Does anyone know which BADI ou Exit can I use to stop processing and get the last message, in these case a Z message? I need to use command MESSAGE to get the last message, because I'm creating material document through tcode CO54 and I need the last message because the log.

Thank you all!

1 REPLY 1
Read only

mvoros
Active Contributor
0 Likes
355

Hi,

you can use BADI MB_MIGO_BADI for this purpose. Check methods CHECK_HEADER and CHECK_ITEM. There are also heaps of posts regarding this BADI on this forum.