Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MM06E001 - Data Segments

Former Member
0 Likes
722

Hi All,

I'm trying to understand user-exits.

Can anybody send me sample code to populate the data segments in the enhancement MM06E001 for the function module EXIT_SAPLEINM_002 to create an outbound IDOC.

Any input appreciated.

Meghna

Hi All,

I'm trying to understand user-exits.

Can anybody send me sample code to populate the data segments in the enhancement MM06E001 for the function module EXIT_SAPLEINM_002 to create an outbound IDOC.

Any input appreciated.

Meghna

2 REPLIES 2
Read only

Former Member
0 Likes
571

DATA: z_e1edp10 LIKE e1edp10,

z_e1edk09 LIKE e1edk09,

z_e1edka1 LIKE e1edka1.

IF int_edidd-segnam = 'E1EDKA1'.

lv_index = sy-tabix.

MOVE int_edidd-sdata TO z_e1edka1.

if z_e1edka1-parvw(2) = 'EK' or

z_e1edka1-parvw(2) = 'AP'.

delete int_edidd index lv_index.

check 0 = 1.

endif.

endif.

Read only

0 Likes
571

Thanks very much for your help.

I'll try that code and add other segments.

Do I need to add any other function modules to generate the idoc within the user-exit?

please advise.