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 segment Data updation problem

Former Member
0 Likes
328

I have done the Idoc extention for ORDERS05.I have written a code to insert data for my z segments in IDOC_INPUT_ORDERS.But when I run the program its not updating data to z segements as well as other segments

What may be the problem..

READ TABLE dedidd INTO wa_edidd WITH KEY segnam = c-e1edka1

sdata(3) = 'AG'.

IF sy-subrc = 0.

CLEAR w-index.

w-index = sy-tabix.

wa_e1edka1 = wa_edidd-sdata.

CLEAR : wa_e1edka1-parvw,

wa_e1edka1-partn.

wa_e1edka1-parvw = w-parvw.

wa_e1edka1-partn = w-inpnr_ag.

wa_edidd-sdata = wa_e1edka1.

MODIFY dedidd FROM wa_edidd INDEX w-index TRANSPORTING sdata.

ENDIF.

Thanks

Umesh

1 REPLY 1
Read only

Former Member
0 Likes
274

Hi,

Use Comparing fields addition in MODIFY Statement...

MODIFY ........ COMPARING <key fields>

Hope this would help you.

Regards

Narin Nandivada.