Skip to Content

BADI or FM after Order_Save in CRM

Hi All

To maintain a relationship between 2 order types in CRM , we need to read the relationship from CRM_BENREL table. At present the details are filled in BENREL table after the order is saved. We implemented a method to get the details from BENREL and attached it to action on "To be distributed" of the first order, but unfortunately the action is not triggering as schedule condition its taking status as released. Can anyone help me how can i call this method or class after the Order is saved or at the time of to be distributed. Can we call our method from a standard FM or BADI which triggers after Order is saved.

Thanks,

Pranav

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 12, 2017 at 06:13 AM

    Hi,

    You may find information about action in

    https://wiki.scn.sap.com/wiki/x/xIXuDg

    Action can only be executed when action determination is triggered, specifically after an operation on WebUI in dialog mode, saving a document or by action report.

    //

    Your code can be called in order_save badi too, when saving the document in dialog or batch mode.

    //

    "

    after the Order is saved or at the time of to be distributed.

    "

    "after order is saved" means order is already saved? In this case, you may use action report. "at the time of to be distributed", this happens when saving the order and technically it is not possible to execute an action when I1054 is set to the order as it is done in batch and action determination is not triggered.

    Spencer

    Add comment
    10|10000 characters needed characters exceeded

    • Hi

      Thanks a lot for your response, you are right we couldn't trigger it on To be distributed status. I have called the action on system status released and it served the purpose.

      Thanks Again,

      Pranav