Skip to Content
avatar image
Former Member

How to debug User exit "EXIT_SAPLV56K_002"

Hi,

I hav written my code inside this EXIT_SAPLV56K_002, for outbound delivery Idoc in order to modify some segments in the DELVRY03.

Can any one let me know how to debug the user exit. I have set the break-point inside user_exit, but it is nt getting stop over there.

Thanks

shilpa

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

12 Answers

  • avatar image
    Former Member
    Jan 16, 2014 at 08:34 AM

    Hi Shilpa,

    Please try the below steps.

    1) Put a break point in user exit.

    2) While creating a outbound delivery you need to select the output in Extras->delivery output->header and enter the required output type and select the option "Send with application own transaction" in further data tab.

    3) Now you need to execute the report program 'SD70AV2A' in se38 and specify the output type and execute(F8) and now it will trigger your breakpoint.

    Regards,

    K.Srikanth Reddy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 10:55 AM

    check any one condition before user exit

    it might skip

    and check the enhacement is active or not

    Regardfs,

    siva chalasani

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 10:56 AM

    Hi,

    It should stop, have u activated ur user exit????

    Regards,

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 10:59 AM

    Hi,

    in user exit we have include command

    go to that in that write like

    <b>Break-point.</b>

    now it wil moves to debugging mode

    Regards

    kish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 10:59 AM

    yes ...project is active for this enhancement....can any one let me know when this user_exit get triggered.

    i mean i hav to go in which transaction or from where i can hit this user_exit.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 11:00 AM

    THE ONLY ERROR HERE IT SEEMS THAT YOU HAVE CODED WITHIN THE EXIT BUT YOU HAVE NOT ACTIVATED THE PROJECT OR EXIT..

    SO YOUR CODE IN EXIT IS NOT CALLED SO THEREFORE NOT EXECUTED.

    ACTIVTE URR EXIT AND THINGS WILL GO SMOOTH

    NO REWARDS PLZ..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 11:02 AM

    yes ...project is active for this enhancement....can any one let me know when this user_exit get triggered.

    i mean i hav to go in which transaction or from where i can hit this user_exit.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      ur exit is called in FUNCTION MODULE " IDOC_OUTPUT_DELVRY" at this statement PERFORM CUSTOMER_FUNCTION_002 USING lv_segnam.

      Put a break point this FM and try..

      Regards,

      Nagaraj

  • avatar image
    Former Member
    Nov 29, 2007 at 11:10 AM

    Hi,

    I hav activated Zinclude inside my User_Exit "EXIT_SAPLV56K_002" and the project for this is also active.

    In order todebug this uder_exit, i have set and Break-point insside Zinclude.

    then i go to VL01n transaction i.e i m trying to create delivery and i m saving that delivery.

    But this user_exit is not getting triggred.

    Can any one let me know what i have to do fot debugging of this User_exit.

    Thanks,

    shilpa

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      ur exit is called in FUNCTION MODULE " IDOC_OUTPUT_DELVRY" at this statement PERFORM CUSTOMER_FUNCTION_002 USING lv_segnam.

      Put a break point this FM and try..

      Regards,

      Nagaraj

  • avatar image
    Former Member
    Nov 29, 2007 at 11:13 AM

    Hi,

    check any conditions were there in the code before the user exit triggres

    put a breakpoit some lines before the exit

    check if it is reaching the exit or not

    as per my knowledge some conditions were skipping the exit

    check those things

    Regards,

    siva chalasani

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2007 at 11:16 AM

    But is it thhe correct thing which i m doing..i mean at the time of saving of delivery through VL01n transaction, this user_exit will be triggered.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi shilpa,

      This idoc type is triggered for outbound delivery. Go to partner profile WE20 and check for message type DESADV. Double click that and you will find the idoc type as DELVRY03. Click the message control tab and you should find for which output type this particular idoc is triggered. For example output type LAVA, and you can find the process code next to it.. Double click and put a break point if you wish to debug. In this case since its a outboud delivery try VL03N for a PGI or try changing a delivery. in NACE trasaction for application V2 you would find the output type configuration too..

      Thanks

      Sam