Application Development and Automation 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: 
Read only

regarding errpr idoc reprocess

Former Member
0 Likes
468

Hi Experts,

Currently iam working on inbound idoc 'ORDERS04'.

For background process we have the sap standard program 'RBDAPP01'.

how can i achive the following requirement.i have created one custom table for this req with idoc number,PO number and Status.

 Check on the table to see idoc program is running

 If idoc program is running, exit

 Else set the table and call the idoc program to process new and re-process error idocs

 When the idoc program is done and control is back to the control program, clear the status in the table and exit

Rgds,

Krishna.

2 REPLIES 2
Read only

Former Member
0 Likes
422

Hi Balakrishna,

All the inbound Idocs will be updated in the tables EDIDC,EDID4,EDIDS at first.

So, create internal table for any of the above tables and dont forget to select the fields time and date.

Capture all the Idocs created at that time. Now, for these Idocs you need to check whether the

background job has processed them or not. Is that correct?

So, to check whether the background job which runs RBDAPP01 program is running or not you can do manipulations on the table TBTCO. This table will have the status whether the job is running or not.

If not, you can schedule a job by inserting an entry in the table TBTCS or you can also call the job by using JOB_OPEN FM

Hope you got the clue how to do that. I think you can avoid the custom table to achieve this.

Thanks,

Babu Kilari

Read only

Former Member
0 Likes
422

EDID4 table contains data records.

Create an internal table itab which will contain idoc number, segment and status.

what you can do is fetch all entries from the table EDID4 passing your segment name as ORDERS04 and into itab for field idoc number and segment.

Now you get all the idoc number for this specific segment type.

EDIDS table contains the status of idocs.

Fetch the status of each idoc from EDIDS table for all entries in itab.

Now you have idoc number with status .

You can check for a status and take action on your idoc accordingly.

Regards,

Lalit Mohan Gupta.