Skip to Content
author's profile photo Former Member
Former Member

Debug the smartforms & Print Progarams

Hai experts,

how the the debug the smartforms, how to know the print programs for particular smartform.

plz help, i am new to forms.

thanks

sitaram

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:44 AM

    TNAPR / TTXFP table contains the driver prg and smartform name

    Four ways you can debugging.....

    1.place SFTRACE inplace where we enter T_CODE and press ENTER.

    after that press F8.

    2 ./H

    3 /SH

    4.after generating the function module there is a button DEBUGGING

    Test smartform:

    1.after creating FM ditect press F8 or Excute(button) then select print preview.

    Smart debugging:--> Execute the smartform.It will open a FM in se37 screen.

    --> Press Display.

    --> Press find(CTRL+F).

    --> Enter command here at which you want to put the break point.

    --> Select the radio button 'in main program'.It will open the point at which you want to put the breakpoint.

    --> Put the breakpoint here and execute the smartform again.It will stop at the point where you put the breakpoint.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:45 AM

    Hi,

    1) DEBUG Smartform:

    1) One way to debug smartform is to debug the Function Module of that smartforms.

    If you want to debug particular smartform node that the solution would be,

    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.

    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

    2) SFTRACE can be used for debugging SMARTFORMS.

    Read More here.

    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

    TNAPR is the table to find the Print Program of the corresponding smartform.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:46 AM

    Hi,

    how to debug the smartforms

    create program lines and then put a break point

    break user name.

    and finding the prrint program

    go to nace transaction and select the application area

    and then the output type

    regards,

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:46 AM

    Hi,

    Search the forum for 'debug smartforms' there are lots of answers to this part of your question already.

    Regards,

    Nick

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:47 AM

    If you're looking to find a print program of a Smart Form,

    use se16 to show table TNAPR. It will show you all the information you need to find the print program and the matching form.

    DEBUG SMARTFORM:

    In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..

    Please set a break point in side the smartform:

    BREAK <USERNAME>.

    Then at the time of print/ preview the program stops there.

    Example : If you set the break point in initializationas

    BREAK <USERNAME>.

    Program stops at break point. After that use Serach and set more break points.

    -


    >Search the program logic/Textelement/Address via search and set the break point at that code.

    Other way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

    or

    SFTRACE can be used for debugging SMARTFORMS.

    Read More here.

    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

    See the Below thread for how to debug the Smartforms

    How to Debug Smartform?

    re-debug-of-smartfrom

    Smart forms

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:51 AM

    1) You can write the code in smartform in program lines or in subrotines right . there you can hard code break point

    break-point. or break username.

    2) when you activate form function moldule will be generated right? take that function moldule name and go to SE38

    let us say FM is /1BCDWB/SF00000109

    then add SAPL after second slash /1BCDWB/SAPLSF00000109 and say display

    now you can put soft break points wherever you need.

    3) your FM is /1BCDWB/SF00000109 go to se 37 and put break points in the function module.

    Reward points if useful

    Regards,

    Nageswar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.