‎2007 Jun 22 1:29 PM
Good afternoon:
Does anybody know how to send in an idoc only the modified data?
Thanks in advance.
regards
‎2007 Jun 22 1:53 PM
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.
‎2007 Jun 22 1:34 PM
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
‎2007 Jun 22 1:53 PM
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.