It is very common when testing new IDOC related processes that you need the ability to reprocess an IDOC several times or depending the test maybe you need to change an IDOC status to allow some other form of processing.

Here are the easy steps to change the status and reprocess an IDOC that has previously been processed.

Note the important statuses to keep in mind.

  • Status 53 -Green means that the IDOC was successfully processed
  • Status 64 -Yellow means the IDOC is waiting to be processed
IDOC Status

Fig. 1 Processed IDOCS

In the example above, we have a IDOC #956458 that we want to post again as part of a unit test. Since this IDOC is related to a external bank statement, we do not want to keep asking the bank to send us a new statement to test. So for the purposes of this example well take a statement that was sent previously and post as often as necessary to verify the results of our work.

Reset the IDOC Status

Execute program RC1_IDOC_SET_STATUS to change the status from 53(success) to 64 (Awaiting processing).

Execution of RC1_IDOC_SET_STATUS

Fig.2 Execution of RC1_IDOC_SET_STATUS

Note once we are sure we want to perform the action we will remove the test indicator to perform the actual change. After executing the status will be set at 64,.

IDOC has been reset

Fig. 3 IDOC has been reset

Reprocess the IDOC

It’s that simple, now we reprocess the IDOC by executing BD87 as though it was a new one.

Successful execution of BD87 IDOC Processing

Fig. 4 Successful execution of BD87

Successfully processed IDOC

Fig. 5 Successfully processed IDOC

Alternatively a more popular method of reprocessing an IDOC is using the IDOC test tool WE19 that allows you to create and post a copy of an existing IDOC which is the typical way to reprocess an IDOC but this method comes in handy when you just want to use the same IDOCS.

 

Resources

Pin It on Pinterest

Shares
Share This