4 Replies Latest reply: Feb 6, 2008 9:24 AM by Guest RSS

How to debug the LSMW coding???

Mohana Vijayan
Currently Being Moderated

Hi Experts,

 

Any one please tell how to debug the lSMW codings?

 

Thnx,

Mohana

  • Re: How to debug the LSMW coding???
    Currently Being Moderated

    Hi Mohana,

     

    Just type /h in the command prompt whenever you want to start debugging.

     

     

     

    Regards,

     

    John.

  • Re: How to debug the LSMW coding???
    Maddela Srilatha
    Currently Being Moderated

    Hi,

     

    -


    Go to the 5th Step that is

     

    "5 Maintain Field Mapping and Conversion Rules"

    select this radio Button and execute then

     

    you will maping your defining fields to source structure fields

     

    then where ever you want to write validations

     

    you just select that field and click on RULES tab

     

    then select radio-button User defined routine

    then you will get a window

     

    you just click on continue button

     

    then you will get a PERFORM opposite to your selected field

     

    save and come back

     

    then select the 6th radio button

     

    that is " 6 Maintain Fixed Values, Translations, User-Defined Routines"

    and execute

     

    there you will find your user defind routine

     

    you just double click on the routine

    then you will get a editor for writing your code for validations

    you just pass p_in as input and you will get the result in p_out parameter

     

    then you will put a Break point or put command like "BREAK-POINT"

    then it will automatically triggered while running this project.

     

     

    -


    To view your generated code, you need to bring it up in the initial screen of your object.To do so,

     

    click on the User Menu button & check the Display Read Program & Display Conversion Program will take

     

    you into the generated code. Place your soft breakpoint as you normally do.

     

    Another option: go to the step DISPLAY READ PROGRAM or DISPLAY CONVERTION PROGRAM.

    Now you will see the ABAP editor with the code. Place the breakpoint (soft break point using STOP button on application tool bar) where ever you desire.

     

    Regards.

    • Re: How to debug the LSMW coding???
      Mohana Vijayan
      Currently Being Moderated

      Hi Madhu,

       

       

      I need a small clarification LSMW, While uploading the material using MM01, for the select view option i want to give the condition.

       

      Bze i have 2 set of materials, if 1st type of material comes it will select the select view of 3 in the list, otherwise 4th in the list.

      The syntax is

       

      if MARA-PSTAT = 'C'

      KZSEL_03 = "X"

      else.

      KZSEL_04 = "X"

       

      Where can i give this condition in LSMW.. how it will work??

       

      Its urgent, any plz guide this.

      Point will be sure.

       

      Thnx,

       

      Mohana

  • Re: User-exit
    Currently Being Moderated

    Hi,

     

    You can debug any LSMW object program in the usual way by putting a hard or soft breakpoint. In your Field Mapping/conversion, you can code BREAK-POINT at the very first field. Then the program execution will break when it reaches there. You can also put soft breakpoints in the generated code. To view your generated code, you need to bring it up in the initial screen of your object. To do so, click on the User Menu button & check the Display Read Program & Display Conversion Program ...

     

    http://jt77.com/development2/programming-11864.html

     

     

    Reward if found helpfull,

     

    Cheers,

    Chaitanya.

     

    Edited by: Chaitanya Raju on Feb 6, 2008 9:23 AM

Actions