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

IDoc processing from a report

Former Member
0 Likes
1,680

Hi EDI/ABAP Folks,

I have a question. I have done an abap alv report which gives me all the IDocs in error status. When we drill it down, it also displays the IDoc. In the IDoc view, we can edit the IDoc to correct data related errors. After editing the IDoc, In the menu bar it has Process--> foreground, background , it has all the options but grayed out (means, I cannot select these).

Is there a functionality which enables to process the edited IDocs from here. (Not from BD87).

Any input will be much helpful.

Thanks,

Matt

8 REPLIES 8
Read only

former_member194669
Active Contributor
0 Likes
1,342

Try to submit the below program


    submit rbdagaie
      with p_idoc in idoc_list " This represent Edited IDoc numbers
      with p_direct = '1'  " Here 1 for Outbound 2 for Inbound
      with p_output = ' '

a®

Read only

0 Likes
1,342

Thanks aRs.

You mean i have to include the part of the code you have give in my ALV report program.

Where should I include it?? Is it in the form where i am calling FM for IDoc display??

Can you pl enlighten me?

Thanks,

Matt

Edited by: Creasy Matthew on Sep 16, 2009 10:31 PM

Read only

0 Likes
1,342

What i understand from your query , that From the alv users select a line and go for idoc display (which fm ?) and then edit the IDoc and correct the data. ( So here new IDoc get generated as edited (i think status will be 33) and then coming out from function module you have edited IDoc number . If yes

here you need to submit the program i mentioned

a®

Read only

0 Likes
1,342

I got you.

From the report, I'll go to IDoc(AAAA) display and will change it. Once I saved he IDoc, I'll have a new number xxxx with status 70. I cannot process it. But the status of original IDoc will turn from 51 to 69(Yellow - Can be processed). I have to process this IDoc from here.

But As soon as i save the IDoc, it's kicking me out of the IDoc and report.

From the program, I am not sure where I'll be in the program at this point.

Any inputs aRs.

Thanks,

Matt

Edited by: Creasy Matthew on Sep 16, 2009 11:13 PM

Read only

0 Likes
1,342

Hello Any updates???

Read only

0 Likes
1,342

> But As soon as i save the IDoc, it's kicking me out of the IDoc and report.

Okay.

Then this may be roundway.

Store the new IDoc number in a custom table . Then submit the program using values from this table, once submitted mark the flag (another field in the table ) with X. so that next time this will not process again

a®

Read only

0 Likes
1,342

Sorry I didn't explain you clearly. My mistake. When I edit an IDoc, the original IDoc will copied to new IDoc and stores all the segments with status 70. (it's just a copy of original IDoc).

But now the original IDoc got changed and is in status 69 and we can process this IDoc now. This is the IDoc we should process.

Correct me if i am wrong.

Thanks,

Matt

Read only

0 Likes
1,342

Yes

Say ex, you are editing idoc number 10 , then it should create a new idoc 11 ( and IDoc number 10 status change to 69)

and program used for RBDAGAIE - Reprocessing of Edited IDocs

Description: This report reprocesses an edited IDoc in inbound or outbound processing. The edited IDoc has one of the following statuses:

32: IDoc edited (outbound)

69: IDoc edited (inbound)

a®