Skip to Content
avatar image
Former Member

About debug smart forms.

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).

smartforms.jpg (277.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 29, 2014 at 08:29 AM

    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.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2014 at 08:25 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2014 at 08:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2014 at 08:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2014 at 08:25 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2014 at 08:28 AM

    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,

    Add comment
    10|10000 characters needed characters exceeded