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

Segment in Idocs.

Former Member
0 Likes
290

Hi,

I am sending a PO through EDI.

I am working in an enhancement wherein when the PO is sent,then the outbound Idoc ORDERS05 will have some more details other than what it already has.

I have written the code to populate the fields of most of the segment,but there is one segment where I am facing problem.

The requirement is such that in segment E1EDKA1,when the PARVW field is WE,I need to modify the segment and add some more data to its fields(telf1,bname,etc.).The problem is I am unable to modify the segment but when I tried to append the segment with the new values,it is working fine.

I can't understand why modify is not working but append is working.

Please help.

Thanks,

Sandeep.

Hi,

I am sending a PO through EDI.

I am working in an enhancement wherein when the PO is sent,then the outbound Idoc ORDERS05 will have some more details other than what it already has.

I have written the code to populate the fields of most of the segment,but there is one segment where I am facing problem.

The requirement is such that in segment E1EDKA1,when the PARVW field is WE,I need to modify the segment and add some more data to its fields(telf1,bname,etc.).The problem is I am unable to modify the segment but when I tried to append the segment with the new values,it is working fine.

I can't understand why modify is not working but append is working.

Please help.

Thanks,

Sandeep.

1 REPLY 1
Read only

Former Member
0 Likes
267

Hi,

Something like this.

DATA: s_e1axxxx LIKE e1xxxx1.

LOOP AT int_edidd.

CASE int_edidd-segnam.

WHEN '...'.

WHEN 'E1xxx'.

MOVE int_edidd-sdata TO s_e1adrm1.

make changes to S_E1xxxx-PARTNER_ID.

MODIFY int_edidd.

ENDCASE.

ENDLOOP.

<b>Reward points</b>

Regards