2019 Sep 26 9:54 AM
Hi All,
I am trying to update/change the inbound IDOC segment value( in debugging) while processing in WE19, after changing it shows the changed value in IDOC_DATA internal table also in the corresponding segment structure in debugging. But when the new IDOC is generated after processing, It is still reflecting the old values.
The requirement is to change the segment value while processing and need to achieve this functionality through the program.
I have already gone through a lot of threads but unable to find the solution.
Or if I could get this below thread solution that would also help.
https://answers.sap.com/questions/8020352/re-how-to-change-idoc-segment-data.html
Thank You
Regards,
Nikhil Mishra
2019 Sep 26 10:08 AM
Hello,
In case you want change the Segment values you need not reach out to debugging, You can just double click on the segments and edit there directly.
Or
You can place the break point in the processing function module and change the values there before processing the FM.
Regards
2019 Sep 26 1:15 PM
Hi Satish,
Thank you for your reply.
The requirement is to change segment value based on some calculations which will be done in the program. That is why trying to change the segment while debugging just to ensure if the change will take effect or not.
In debugging mode, it is clearly visible that value has been changed but the same thing is not reflecting in the newly processed IDOC.
Regards,
Nikhil Mishra
2019 Sep 26 1:21 PM
Try this
You can place the break point in the processing routine function module and change the values there before processing the FM.
2019 Sep 26 4:18 PM
WE19 does not change an existing IDoc, it creates a new one (from scratch or by proposing the values from another IDoc). You may enter any value you want. What issue do you have?
If your question is about changing a value while processing the inbound IDoc, then I guess you cannot change the IDoc itself but maybe you can alter the behavior of the IDocs of the given IDoc type - which one is it?