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
435

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 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
414

using user exits u have to populate the segement.

find the user exits for ur idoc & populate it.

5 REPLIES 5
Read only

Former Member
0 Likes
415

using user exits u have to populate the segement.

find the user exits for ur idoc & populate it.

Read only

0 Likes
414

hi

i found the user exit - FEDI0003 . This is that user exit.

now how to populate. Please help me..

Regards,

Kumar

Read only

0 Likes
414

how did u find it...What idoc are u using and what is the purpose

Read only

0 Likes
414

Kumar I saw the FM....has it something to do with the Payment or something.

It is used for inbound Idoc...u will get the values for the fields by the system whoever is posting the IDoc in SAP system.

Now u need to check how to put them in the related database tables

Read only

Former Member
0 Likes
414

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.