Add new fields to idoc segment E1HR_WS
I have to send a field KZTIM of IT0007 using idoc but this field is not added under the segment E1HR_WS. I wish to know should i try to send this through custom enhancement segment "E1HR_PO" or through idoc extension of HROT_USM.
I have added the code to push this field throgh E1HR_PO segment. I wish to know how can i send this field through IDOC extension.
1) I have created a new segment ZE1HR_WS which include this field. Do i have to add all fields here or only the field which is not available under standard segment ?
2) Added this segment ZE1HR_WS to custom object ZHROT_USM (Linked Object type = HROT_USM )
3) Linked this as extension in tcode WE82 to message type & basic type.
4) Updated my partner profile to add this as extension for this message type HROT_UM.
I wish to know if i missed any step here.
Also i wish to know how should i add my code in user exit to bring this field in idoc.