Skip to Content
0
May 13, 2010 at 07:32 AM

MB1A User Exit at document save

298 Views

Hi everyone,

I have a requirement related to MB1A for materials distribution to personnel defined in HR. This can happen at line <Enter> press or at 'Document Save' time (either one is good, but could not get any to work). The requirements are:

- get all material quantities in all the lines of the document

- match the materials against a custom price table and get the total amount of the document

- compair the total amount with some value related to the person HR that receives the materials

- send a message to the user if the total amount is greater than the value

For this I tried MBCF0002 but here only get access to the current line item, not to all of them so I cannot get the total amount, only the line amount. I am aware about some other user exits but in none of them I could get a hold of all line items in the document before the document would be saved.

Do you know if there is a user exit where as parameters there are available all line items, or where can I find them, if I use MBCF0002?