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: 

How to create an IDOC Status.

Former Member
0 Kudos

Hi All,

I have a requirement to create an IDOC Status, which should be a copy of existing status.

How to accomplish the same.

Regards,

Neha

4 REPLIES 4

Former Member
0 Kudos

Hi

IDOC status can be checked using transaction WE02.

If the IDOC status is u201903u2019, it implies that IDOC is passed to Port.

Regards,

Syf

former_member188685
Active Contributor
0 Kudos

>I have a requirement to create an IDOC Status

When you process the Idoc only it is possible to have the status. Status is not a separate one, which is a part of Idoc. So it is not possible to create the status sepaarately.

Former Member
0 Kudos

Status records generated by sap and stored in edids table. The key for this table is idoc number.

The complete documentation of status records can be viewed at we61.

Fields in status records table:

Docnum-idoc number

Logdat-date of status information

Logtim-time of status info

Countr-edi status number

Credit-status record create date

Status-status of idoc

hope this information helps...

regards,

Praveena.

Former Member
0 Kudos

Hi Neha,

You can create the Idoc status, if it is an Inbound Idoc. Copy the Existing process code & add it to u r Inbound Partner Profile. In the process code u can create the status..Check the below code.

if gv_error_status <> 0.

condense gt_msgv-msgv1 no-gaps.

translate gt_msgv-msgv1 to upper case. "#EC TRANSLANG

set extended check on.

read table idoc_contrl index 1.

idoc_status-status = '68'.

idoc_status-uname = sy-uname.

idoc_status-repid = sy-repid.

idoc_status-routid = gv_funcname.

idoc_status-docnum = idoc_contrl-docnum.

idoc_status-msgv1 = gt_msgv-msgv1.

idoc_status-msgv2 = gt_msgv-msgv2.

append idoc_status.

idoc_status-status = '51'.

idoc_status-uname = sy-uname.

idoc_status-repid = sy-repid.

idoc_status-routid = gv_funcname.

idoc_status-docnum = idoc_contrl-docnum.

append idoc_status.

endif.

I hope this help you.

Regards

Rajendra