Application Development and Automation 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: 
Read only

Workflow not trigger when IDOC_INPUT_ORDERS FM gets any error

Former Member
0 Likes
467

Hi

When there is an error in IDOC in FM "IDOC_INPUT_ORDERS, then workflow should trigger and send a mail to SAP stating error messages.

Regards

Ravi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

Hello,

You can follow the below steps:

1. In the method, where you are calling this FM. Check the sy-subrc and if it is not zero, set the error message text and a flag like x_error and pass them to container.

2. Now In the workflow, check if the flag x_error is set or not.

3. If the flag x_error is set, you can send mail to SAP inbox of the concerned user.

Thanks,

Sowmya

1 REPLY 1
Read only

Former Member
0 Likes
400

Hello,

You can follow the below steps:

1. In the method, where you are calling this FM. Check the sy-subrc and if it is not zero, set the error message text and a flag like x_error and pass them to container.

2. Now In the workflow, check if the flag x_error is set or not.

3. If the flag x_error is set, you can send mail to SAP inbox of the concerned user.

Thanks,

Sowmya