Hi all,
I m facing the following situation
The inbound Idoc has just 1 segment and the segment has just two fields - Old material number and wholesale price( this field will be captured through Z-STRUCTURE in MARA table). My inbound IDoc will have multiple records( say 100 materails) . If the old material number in found in MARA table then update the wholesale price (say 90 records processed in first go). If not found then mark the segment as error segment ( The remaining 10 segments). Next time when the idoc will be reprocessed then then only those segment should be processed which were marked as error segment ( The 10 segments). If found this time then update ( say 2 out of 10) and update the idoc status so that now 8 IDoc segments will be marked as error segment). An the process continues till all the records are process.
Infact this interface will be scheduled to run weekly. But if the any error segment is there, It needs to be reprocessed daily until all material are posted successfully.
Please help me at the following points
1. How to Reprocess the error segments only , if the IDoc is being reprocessed, otherwise process the whole IDoc( The first time)
2. How do I programatically schedule the error idoc to be reprocessed daily until successful
Thanks in Advance.