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

Inbound Idoc segment change

Former Member
0 Likes
1,245

Hi All,

How can We modify or append a segment to the inbound IDOC. The scenario is as follow

We have an inbound IDOC to create/change contract order. There are some segments in the IDOC to hold the error records.

while processing the inbound IDOC we need to fill these blank segments with relevant data, so that we can reprocess the IDOC with ease.

I am trying the modify the IDOC_DATA inside the processing function module. Till the end of the function module IDOC_DATA is having the added segment data, however when I am checking from WE02, the segments are appearing to be blank.

Please let me know, what is missing above.

Thanks & Regards

D. Pradhan

Hi All,

How can We modify or append a segment to the inbound IDOC. The scenario is as follow

We have an inbound IDOC to create/change contract order. There are some segments in the IDOC to hold the error records.

while processing the inbound IDOC we need to fill these blank segments with relevant data, so that we can reprocess the IDOC with ease.

I am trying the modify the IDOC_DATA inside the processing function module. Till the end of the function module IDOC_DATA is having the added segment data, however when I am checking from WE02, the segments are appearing to be blank.

Please let me know, what is missing above.

Thanks & Regards

D. Pradhan

3 REPLIES 3
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
707

Which exit / BAdI are yous using for adding the segment & what is your inbound processing function module ?

Anyways i also had the same problem a few weeks back i was trying to delete a segement though

My understanding is in WE02 it displays the data from EDIDC & EDIDD. In your I/B processing FM you only modify the data in the IDOC_DATA table & not in EDIDD.

Check in EDIDD, the segment would not be there.

BR,

Suhas

Read only

Former Member
0 Likes
707

I am not using standard basic type or processing function module. There are some segments created to hold data for billing plan change, condition record create etc.

While processing the inbound IDOC for failure to any of the above step, I need to populate these segments.

These segment data to be used while reprocessing failed IDOC.

I am not able to modify the segment data inside processing function module.

While debuging I am able to see the updated segments, but when the trigger goes out of the function module the data is lost.

Regards

D Pradhan

Read only

0 Likes
707

Hi,

If you are modifying in debug mode & still its not reflected in WE02, then you need to look at some other FM/Exit to modify the idoc data. Looks like the FM which you are using doesnt allow to modify the idoc data.

You can also give a try to modify the idoc data when the FM is called for the last segment/record.

Thanks,

Best regards,

Prashant