How to set an IDOC status using ABAP Routine?

Question: Hi everyone,

I have an ABAP program that read several IDOC's with status 3 (port OK) and after process them I must to change the status to 6 (translation OK).

I'd like to know if I have a function or routine in ABAP to do that or I can modify directly in table EDIDC.

Thanks in advance,

Frank, OR

Answer:
Hi,

You can the following function modules to change an IDoc status:

1. EDI_DOCUMENT_STATUS_SET
2. IDOC_STATUS_WRITE_TO_DATABASE

Regards,
Sumant.
Copyright ?2007 - 2008 www.jt77.com