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
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).
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,.
Reprocess the IDOC
It’s that simple, now we reprocess the IDOC by executing BD87 as though it was a new one.
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.
Advanced Solutions is a leading provider of third party SAP support, our experts provide Application Management services , post implementation support and are considered experts in their respective practice areas of SAP. To learn more contact us today!