Hi,
I created a segment zdh_name in we31. Then i released the idoc segment. Also i created a corresponding idoc type and released it and also created a message type .
When an idoc is created for a Purchase order in me21n the segment e1edp01 in idoc should be replaced by my created segment zdh_name with some value.
I have tried using enhancement MM06E001 in the function module exit EXIT_SAPLEINM_002 with the following code.
case int_edidd.
when 'E1EDP01'.
int_edidd-segnam = 'ZDH_NAME'.
int_edidd-sdata = 'DHARUN'.
endcase.
Help me to get the solution.
Thank you.