‎2009 Sep 16 8:46 PM
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
‎2009 Sep 16 9:20 PM
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®
‎2009 Sep 16 9:30 PM
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
‎2009 Sep 16 9:41 PM
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®
‎2009 Sep 16 10:12 PM
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
‎2009 Sep 17 1:40 PM
‎2009 Sep 17 1:48 PM
> 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®
‎2009 Sep 17 2:01 PM
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
‎2009 Sep 17 2:19 PM
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®