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: 

Trigger Workflow when IDOC_INPUT_ORDERS FM

Former Member
0 Kudos

Hi,

When there is an error in IDOC excution using FM "IDOC_INPUT_ORDERS', I have to send a mail to idoc Partner. Please let me know how to do it.

Thanks and Regards

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ravi,

Pick the status of the idoc from the DDIC table when the sy-subrc is <> 0. Create a business object under SCDO and generate the update program which will generate the Function Module for the same. Once the Function Module is generated, call the same Function Module after the IDOC_INPUT_ORDERS depending on the sy-subrc and using the Return code from the same generated Function Module setup a workflow which triggers an email using the distribution list.

Hope this is clear.

Regards,

-Syed.

1 REPLY 1

Former Member
0 Kudos

Hi Ravi,

Pick the status of the idoc from the DDIC table when the sy-subrc is <> 0. Create a business object under SCDO and generate the update program which will generate the Function Module for the same. Once the Function Module is generated, call the same Function Module after the IDOC_INPUT_ORDERS depending on the sy-subrc and using the Return code from the same generated Function Module setup a workflow which triggers an email using the distribution list.

Hope this is clear.

Regards,

-Syed.