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

Former Member
0 Likes
281

hi ,

How can i write the code to populate the values in idoc segment fields( extra fields are added to idoc segment)?

Regards,

Kumar

1 REPLY 1
Read only

Former Member
0 Likes
266

Hi Kumar,

You can use the user exits for filling the segment fields with the value.

Say if u want to fil field Zfield which u have added after field3 of segment S2.

Now in the user exit .

Loop at Idoc_data_table.

Case segment_name.

WHEN 'S2'.

S2-zfield = value.

MOVE S2 to Idoc_data_table-sdata.

MODIFY TABLE Idoc_data_table TRANSPORTING sdata.

ENDLOOP.