Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to change IDOC segement value (in debugging) while processing in WE19?

nikhil1697
Discoverer
0 Likes
2,104

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

4 REPLIES 4
Read only

former_member1716
Active Contributor
0 Likes
1,574

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

Read only

0 Likes
1,574

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

Read only

0 Likes
1,574

Nikhil Mishra

Try this

You can place the break point in the processing routine function module and change the values there before processing the FM.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,574

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?