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: 

IDOC status

Former Member
0 Kudos

Hi, in an inbound funtion module, I want to change the IDOC status, and send the error message, I use this:

move '51' to idoc_status-status.

move 'E' to idoc_status-msgty.IDOC_STATUS-MSGTY.

move 'Error message' to idoc_status-msgv2.

But in WE05, I didn't see the error message with the status 53,I don't why.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

please check the export parameter:

in error case set: WORKFLOW_RESULT ='99999'.

and tables: RETURN_VARIABLES

RETURN_VARIABLES-WF_PARAM = 'Error_IDOCs'.

RETURN_VARIABLES-DOC_NUMBER = IDOC_CONTRL-DOCNUM.

append these two fields to table RETURN_VARIABLES.

Message was edited by:

Jörn Peter

1 REPLY 1

Former Member
0 Kudos

Hello,

please check the export parameter:

in error case set: WORKFLOW_RESULT ='99999'.

and tables: RETURN_VARIABLES

RETURN_VARIABLES-WF_PARAM = 'Error_IDOCs'.

RETURN_VARIABLES-DOC_NUMBER = IDOC_CONTRL-DOCNUM.

append these two fields to table RETURN_VARIABLES.

Message was edited by:

Jörn Peter