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

IDOC status

Former Member
0 Likes
386

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
Read only

Former Member
0 Likes
360

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

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
Read only

Former Member
0 Likes
361

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