Skip to Content
0
Former Member
Oct 31, 2013 at 09:26 AM

The BADI : MB_DOCUMENT_BADI during MIGO execution is getting triggered twice. Request inputs.

1784 Views

Dear Members,

I have implemented the BADI MB_DOCUMENT_BADI for MIGO.

And in the method: MB_DOCUMENT_BEFORE_UPDATE, I am retrieving all the GR posting and reversal related information from EKBE. Based on either the first GR posting scenario or the last reversal scenario, I need to trigger a proxy for sending the GR information to a PI system in the method MB_DOCUMENT_UPDATE. The challenge which I am facing when I am implementing the entire logic of data retrieval and proxy triggering in the first method MB_DOCUMENT_BEFORE_UPDATE is, the BADI is getting triggered twice. As a result, I am finding two records of outbound data per MIGO execution in SXMB_MONI.

And when I am incorporating the data retrieval logic in MB_DOCUMENT_BEFORE_UPDATE and proxy triggering logic in MB_DOCUMENT_UPDATE, I am encountering challenges in transferring the GR related data from MB_DOCUMENT_BEFORE_UPDATE to MB_DOCUMENT_UPDATE. I have tried using ABAP memory for the same but in vain.

Please suggest further. Is there any OSS for fixing the repeated execution of the method MB_DOCUMENT_BEFORE_UPDATE during MIGO execution.

Will appreciate your inputs.

Warm Regards,

Ram.