‎2007 May 03 11:09 AM
hi ,
How can i write the code to populate the values in idoc segment fields( extra fields are added to idoc segment)?
Regards,
Kumar
‎2007 May 03 11:38 AM
using user exits u have to populate the segement.
find the user exits for ur idoc & populate it.
‎2007 May 03 11:38 AM
using user exits u have to populate the segement.
find the user exits for ur idoc & populate it.
‎2007 May 03 11:50 AM
hi
i found the user exit - FEDI0003 . This is that user exit.
now how to populate. Please help me..
Regards,
Kumar
‎2007 May 03 11:55 AM
how did u find it...What idoc are u using and what is the purpose
‎2007 May 03 12:16 PM
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
‎2007 May 03 11:54 AM
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.