Hi Siva,
To create the segment, follow the following steps:
1. Populate all the required fields of LS_E1EDK12, as per your requirement.
2. Move LS_E1EDK12 to EDIDD-SDATA.
3. Call function module L_IDOC_SEGMENT_CREATE. Pass parameters as follows:
i_segnam = 'E1EDK12'.
I_sdata = edidd-sdata.
4. Once the segment is created, send the IDOC, as follows:
Call function module L_IDOC_SEND .
If you have more queries, please provide further details of your code so we can check the same.
Thanks and Regards,
Sheily Babel.