Skip to Content
0
Feb 05, 2014 at 03:27 PM

Update preceding Business transaction in BADI

68 Views

Hi SDNites,

I have a requirement where I need to update the status of all the preceding transactions of the bcurrent business transaction when the status of the vurrent transaction is set to "COMPLETED". I have implemented BADI CRM_ORDER_STATUS but when I am trying to update the status of previosu BADI I am not able to. It gets saved only in buffer and as I try to edit the preceding business transaction status is again set to the current one. Following are the things I have tried,

1. CRM_ORDER_MAINTAIN - Goes to dump as it is recursive call.

2. CRM_ORDER_SAVE - Goes to dump as it is recursive call.

3. BAPI_TRANSACTION_COMMIT - No effect (Also it not a good practise).

4. Trying to register the transaction for future save using method register_for_save of class cl_action_execute - Dump again.

Request you to please guide me how the same can be achieved. Any pointers will be of great help.

Regards,

Abhi