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: 

About debug smart forms.

Former Member
0 Kudos

Requirement : -  I want to debug particular node value how can I set break or stop point so that it directly go on target node . and You can See in following Image there is no program line in window ( Node is Belong to Main Window).

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Dheeraj,

Go to smartforms and click on execute button then it will take to this screen then click on display button.

Then you will get this following screen and click find button .

Now enter the field name and make sure In Main Program radio button is clicked and press enter.

Now code in which is used is displayed and you can keep the session break point.

6 REPLIES 6

krishna_k19
Contributor
0 Kudos

Hi Dheeraj,

     If you want to debug a smartform means , activate the Smartform and then execute it will give the Function module go to that function module in that third include having the smart form data, or please go through the below links.


http://wiki.scn.sap.com/wiki/display/ABAP/Easy+Step+To+Debug+a+Smartform

http://scn.sap.com/thread/130855

Regards,

Krishna

satyabrata_sahoo3
Contributor
0 Kudos

If its DEV environment and you can make changes add Static breakpoint before the node by inserting a program line. Else you have to put breakpoint in the function module of SF.

-Satya

atul_mohanty
Active Contributor
0 Kudos

It seems you are in development system.

You can put a break point. Simply adding a node of code (Flow Logic-> Program lines) above the node ( text editor you have shown). In the code put the code as BREAK <your user name> or BREAK-POINT. When you stop you can the value of the variables or something u want to check in the debug mode). Please remember to remove the break point when you transport to other system.

Also you can check the genearated function module (SE37) of the smart form and check the specific place you where the node is called.

archanapawar
Contributor
0 Kudos

Hi Dheeraj,

Go to the main program of the FM generated for the smartform. Innside that go to include F01. Search for term 'PROD_QTY'. you can put breakpoint at below statement that you will find in search.


PERFORM %WRITE_TEXT USING 'PROD_QTY' SPACE SPACE 'P' SPACE %INPUTFIELDS %TEXTAREA.

sagar_pawar14
Explorer
0 Kudos

Hi,

As per your screen shot, seems you want to debug a particular text element of a particular window.

Directly you can not put a hard break at this place, as this is a Script editor.

Best way is go to your Smart form FM , search for the respective window or text element, keep a break point over there.

After executing program will stop at particular window/text element, now you can keep debugging by pressing F5 and see the import export values from the text element.

Thanks,

Former Member
0 Kudos

Hello Dheeraj,

Go to smartforms and click on execute button then it will take to this screen then click on display button.

Then you will get this following screen and click find button .

Now enter the field name and make sure In Main Program radio button is clicked and press enter.

Now code in which is used is displayed and you can keep the session break point.