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

Idoc data modified

Former Member
0 Likes
791

Good afternoon:

Does anybody know how to send in an idoc only the modified data?

Thanks in advance.

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
652

Hi,

From what I understand,I think you are trying to modify a segemnt with some data.

I also assume that you are working in an include.

Anyway,to do the modification what you can do is loop at the edidd section of the idoc.Then when the segment name is the segment name where you want modification,fill the data in the work area of the segment and then modify the idoc edidd section.

To understand it better please see the piece of code below.

loop at edidd into lw_edidd.

lv_index = sy-index.

when lw_eiddd-segnam = <your segment name>.

lw_segment = lw_edidd-sdata.

clear lw_segment.

lw_segment-f1 = value.

lw_segment-f2 = value.

and so on.

move segment name to <work are type edidd-segnam>.

move lw_segment to <work are type edidd-sdata>.

modify edidd from work are type edidd

index lv_index

transporting segnam sdata.

endloop.

Hope it will bw useful.

Thanks,

Sandeep.

2 REPLIES 2
Read only

Former Member
0 Likes
652

I mean, if you change the text description of the material, i want an idoc with only this field, i don´t want to send all the material data again.

thanks in advance.

Regards

Read only

Former Member
0 Likes
653

Hi,

From what I understand,I think you are trying to modify a segemnt with some data.

I also assume that you are working in an include.

Anyway,to do the modification what you can do is loop at the edidd section of the idoc.Then when the segment name is the segment name where you want modification,fill the data in the work area of the segment and then modify the idoc edidd section.

To understand it better please see the piece of code below.

loop at edidd into lw_edidd.

lv_index = sy-index.

when lw_eiddd-segnam = <your segment name>.

lw_segment = lw_edidd-sdata.

clear lw_segment.

lw_segment-f1 = value.

lw_segment-f2 = value.

and so on.

move segment name to <work are type edidd-segnam>.

move lw_segment to <work are type edidd-sdata>.

modify edidd from work are type edidd

index lv_index

transporting segnam sdata.

endloop.

Hope it will bw useful.

Thanks,

Sandeep.