cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC segment deletion via Custom program

former_member658126
Participant
0 Kudos

Hi Gurus,

I have a requirement to delete the segments with texts for DEBMAS idoc and send to middleware. Can someone please help me how i can write the logic to delete the segements and update the idoc to the DB.

Thanks,

Chittu

Sandra_Rossi
Active Contributor
0 Kudos

Do you want to delete these segments while the IDoc is being generated?

user exit "debmas" site:sap.com
former_member658126
Participant
0 Kudos

Hi sandra.rossi

Yes, we have 2 options.

1. while creating the idoc but based on partner number( other partners should not get effected)

2. In custom logic, we have customer specifoc. So, after idoc is generated, is it possible to delete the segment. Any FMS there to edit the generated idoc.

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

Only option 1 is a valid option according to me. You have a user exit to edit the IDoc as you can find by searching the forum.

Changing the IDoc after it has been generated (option 2) is not a good option because it's simply against the SAP logic (IDoc may have already been processed, sent to the receivers, change pointers, workflow, etc.)

Answers (0)