2007 May 03 11:02 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
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.
2007 May 03 11:48 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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |