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

smartform is not getting debugged

0 Likes
2,129

Hi All,

can someone please help me in debugging a smartform,

i have tried using both session and external breakpoints in %global_init but then the break point is never reached,

but still there is output in the sp01 for the smartform.

how do i debug in such situations?.

right now i dont know which program is used to call the smartform.

Thank you.

7 REPLIES 7
Read only

venkateswaran_k
Active Contributor
2,048

How are you executing the smartform ? If you do not know the program that calls the form?

Please give more detai.

1. are you checking the correct smartform?

2. Put hard break point BREAK-POINT.

Read only

0 Likes
2,048

hi venkateswaran.k

i have set the hard BREAK-POINT and its also not triggering,

in my requirements i have one selection screen where i enter the user id and execute and then i check the output in the sp01 so i dont know about the program which or where the smartform is being called.

i think this is something related to some job batch process im not familiar, is there any other way?

Read only

venkateswaran_k
Active Contributor
2,048

Okay,

I am still not able to understand without knowing the program / smartform - where you put break-point.

Please provide more details

1. What is the t-code you are using?

2. What is the smartform name?

3. Provide screenshot of the break-point you set.

I did not fully understand your case. If you provide more detail, it will be easy to help

Read only

pritam_baboo49
Participant
0 Likes
2,048

In your selection screen, there will be a command field at the top type '/h' then press enter, then enter values to your selection screen and execute.

Hope this should help.

Read only

anujawani242683
Active Participant
2,048

Hi,

I think you are trying to put breakpoint on perform %global_init. As shown below.

Don't put breakpoint at perform %Global_INIT. Double click on %Global_init then you will be able to see your code. There you can put breakpoint and you will be able to debug smartform.

Read only

stanislaslemaire
Participant
0 Likes
2,048

Hello, from my point of view, 2 solutions...
You put your break-point in bad smartform, or not activated again.
Or it's relly called in background task, then ou can put a infity loop in global initialization in smartform o force stop.

data lv_exit type xfeld.

check sy-unam = 'YOUR SAP NAME'.
do.
if lv_exit = 'X'.
exit.
endif.
enddo.

By this mean, you will be able to debug LUW (See SM66 or SE51 transaction)

Good luck 😉

Read only

Sandra_Rossi
Active Contributor
2,048

My 2 cents. Very often, smart forms are called in the Update Task ("inside" commit work). Any time before commit work, type /H + Enter to start the debugger, in the settings activate the Update Debug, then Print the smart form. When the update task (often asynchronously), the debugger will start and you can add your breakpoint (F9, indicate your form and program name, or function module SSF_FUNCTION_MODULE_NAME for instance, or the name of your smart form function module).