Skip to Content
0
Former Member
Apr 07, 2007 at 12:34 AM

user exit MM06E001 and debug

882 Views

Hi all,

I use user exit EXIT_SAPLEINM_011 (enhancement: MM06E001) to modify the outbound purchase order IDoc (ORDERS).

data: wa_e1edka1 type e1edka1,
      wa_idoc_data type edidd,
      segNo like edidd-SEGNUM.


  LOOP AT dINT_EDIDD into wa_idoc_data.
    CASE wa_idoc_data-SEGNAM.
      WHEN 'E1EDKA1'.
         MOVE wa_idoc_data-SDATA TO wa_e1edka1.
         if wa_e1edka1-PARVW = 'WE'.
           exit.          .
         endif.
    ENDCASE.
  ENDLOOP.

wa_e1edka1-LIFNR = '1225'.
move wa_e1edka1 to wa_idoc_data-sdata.
modify table dint_edidd from wa_idoc_data.

The above code is used to set the E1EDKA1-LIFNR (vendor number) as '1225' when E1EDKA1-PARVW ='WE' (partner function). But it dosen't work.

Question 1:

What's wrong with my code? I don't have much ABAP experience, please correct me if there is some errors.

Question 2:

How to debug user exit? I use

break-point.

break uerid.

or set breakpoint in the code.

None of them works.

Could anyone give some ideas?

Thanks!

Regards,

Hui