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: 

BADI or EXIT to block parking of document

Former Member
0 Kudos

Hi,

I have a requirement that after GR,i have to check in whether the quality chech has been done or not.For that i have to check whether the LMENGEZUB field in QALS table is empty or not. If it is empty then i should be able to park the document thru transaction MIRO.If the field is not empty then I have to block the user to park the document.Can anyone please provide me a solution as how to achieve this or please provide me an exit name or BADI name to do it. I have tried using the userexit LMR1M001,but was not successful.

Please help....

4 REPLIES 4

Former Member
0 Kudos

I also have the same requirement. Could anyone help me providing a solution.

I tried using the User Exit MRMH0002 (EXIT_SAPLMRMH_014 and EXIT_SAPLMRMH_015) where I can set the E_RBKPV-RBSTAT field.

Even after, it does not take this value while saving the document. It always posts the document.

Anyone has an idea about it?

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

You could try to use the BAdI INVOICE_UPDATE, specifically the method CHANGE_AT_SAVE. Here, if you check your QALS value and find that you need to prevent parking of the document, you can raise exception ERROR_WITH_MESSAGE.

Theoretically this should work... there are also some inactive implementations that you can take a peek at.

0 Kudos

Hi

My reqmnt is to PARK the Log Inv Doc. Setting E_RBKPV-RBSTAT to A does not park the document.

Plzzz suggest..............

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

That's a completely different question than what the OP asked.