Skip to Content
0
Jul 25, 2017 at 09:02 AM

Adding new segments to an existing idoc

537 Views Last edit Jul 25, 2017 at 09:07 AM 2 rev

Hi Experts,

We have a custom program to reprocess the IDOCs which errored out.

Reprocessing is done via report program using the below three FMs:

1. EDI_DOCUMENT_OPEN_FOR_EDIT

2. EDI_CHANGE_DATA_SEGMENTS

3. EDI_DOCUMENT_CLOSE_EDIT

I have added new custom segment to the IDOC. EDI_CHANGE_DATA_SEGMENTS returns error. New segments are not getting added to the IDOCs, that are created before the segment addition.

Is there a way to add the newly added segment to the old errored out idocs? Adding the segment in WE19 cannot be done as there are more than 1000 idocs in production which needs to be reprocessed.

Thanks in advance,

Fahmeetha M.