09-17-2008 11:07 AM
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
09-17-2008 11:25 AM
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
09-17-2008 11:28 AM
>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.
09-17-2008 11:35 AM
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.
09-17-2008 11:48 AM
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