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

Issue with MB_DOCUMENT_BADI

shishupalreddy
Active Contributor
0 Likes
462

Hi ,

we implemeted MB_DOCUMENT_BEFORE_UPDATE method of the above to reestrict the receiving materials not to get posted into Unrestrcited stock type provind Error (TYPE E) .

It has to trigger the error message whenever the required conditions met in the method ,

But the problem is When the type of message is E it will change the sy-subrc value from 0 to 4 internally by the the corresponding standard program .

and hence MIGO transaction is giving dumps if any document is meeting the conditions provided in the BADI method.

Would you please provide me any suggestion or solution on the same .

It is very urgent to fix .

Thanks

Iwould be greatfull the earliest responce for the above problem asap

Message was edited by: shishupal reddy

shishupalreddy ramreddy

Hi ,

we implemeted MB_DOCUMENT_BEFORE_UPDATE method of the above to reestrict the receiving materials not to get posted into Unrestrcited stock type provind Error (TYPE E) .

It has to trigger the error message whenever the required conditions met in the method ,

But the problem is When the type of message is E it will change the sy-subrc value from 0 to 4 internally by the the corresponding standard program .

and hence MIGO transaction is giving dumps if any document is meeting the conditions provided in the BADI method.

Would you please provide me any suggestion or solution on the same .

It is very urgent to fix .

Thanks

Iwould be greatfull the earliest responce for the above problem asap

Message was edited by: shishupal reddy

shishupalreddy ramreddy

2 REPLIES 2
Read only

Former Member
0 Likes
439

Hi

that BADI is triggered while the process of posting is running so you should use to save some data in your table only.

Try to use the exit EXIT_SAPMM07M_001 in order to do some controls.

Max

Read only

shishupalreddy
Active Contributor
0 Likes
439

Hello ,

Thanks for the reply ..

But the exit provided by you is not available in the corresponding program of MIGO 'SAPLMIGO'.

THANKS