Application Development 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: 

How to debug UserExit EXIT_SAPLCSLS_002

former_member220448
Participant
0 Kudos

Hi Experts,

I set a break point as BREAK USERIDXXX inside the include of EXIT_SAPLCSLS_002, but when I excecute the queue in SMQ1 it does not stop.

Any ideas on how to debug it?

Thanks,

Nico.-

6 REPLIES 6

guilherme_frisoni
Contributor
0 Kudos

Hi Nicolas,

the FM will be called ONLY if you create a Exit Project in CMOD transaction.

Did you create a project and activated it?

0 Kudos

Hi Guilherme,

Yes I did, I created the project, add the enhancement CIFSLS03, implemented FM EXIT_SAPLCSLS_002, create the include ZXCIFU16 and set the break point there.


I also exit completely from sap and log on again, but it does not stop.

Any hint?

0 Kudos

Hi Nicolas,

The outbound queues will be sent in background task.

Therefore set break-point at FM which is called in background task and follow below steps :-

  • .debugger screen -->menu-->Goto->settings-->change debugger profile/settings
  • select TRFC (In Background Task):Block Sending.
  • Run SM58 in another session
  •   Input your user id and execute
  • Menu Edit->Debug Logical Unit of Work

Thanks

-Learner

0 Kudos

Hi,

No need to create project for exit to debug it. Just follow these steps:

In the initial screen of SMOD transaction, place the exit name in the enhancement field and click on enhancement menu->Test.

Place the cursor on the exit name and click on select component button.

Create the include and set the break-point.

Activate the include and activate the enhancement and click on Execute test(F8).

Enter the transaction name for which you want to test this enhancement.

After the testing is done, deactivate the enhancement and click on delete test objects(Shift+F2).

Testing an exit is done now.

Regards,

Suresh

0 Kudos

Hi Learner,

These are my steps:

  1. Set a session break point in FM CIF_SL_DOC_SEND
  2. Enter to SMQ1, select my Sales Orders queue
  3. /h to enter to debug and set the debugger select TRFC (In Background Task): Block Sending
  4. In another session I open SM58
  5. If I enter with my User Id I see no entries
  6. If I enter with * in the Used Id field I see a few entries but non of them is doing any reference to CIF_SL_DOC_SEND

Am I doing something wrong?

Thanks,

Nico.-

0 Kudos

Hi Nico,

Follow below steps :-

  1. Set a session break point in FM CIF_SL_DOC_SEND and in user exit.
  2. Execute your transaction to tirgger the break-point.
  3. In Enter to SMQ1, select my Sales Orders queue

    4. select TRFC (In Background Task):Block Sending and save.

    5. Execute your transaction

    6.In another session I open SM58

    7.Enter Sales order queue and execute

    8. select your queue and got to Menu Edit->Debug Logical Unit of Work

Thanks