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: 

smartforms

Former Member
0 Kudos

1) How to debug SMARTORMS

2)How to see output of smart forms as we dont have access to NACE

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi, Mohanned,

Above mentioned answers are verymuch answering your needs. We can see there are two methods of doing task.

1. Hard Coded Break point in side SMART Form. Using BREAK-POINT.

2. Break point inside FM of Smart form.

For more details on Samrtform you can approach me through SDN or Email.

Darshan

    • Please Reward Points to Helpful answers. It motivates us to write ans.

7 REPLIES 7

Simha_
Employee
Employee
0 Kudos

Hi,

Follow these steps.

1. Execute the smartform.It will open a FM in se37 screen.

2. Press Display.

3. Press find(CTRL+F).

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

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

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

No need for the authorization to NACE t-code for the output of smartforms..

Cheers,

Simha.

Former Member
0 Kudos

Hi,

If you want debug Smartforms, try this:

Goto Global Setting > Global Definitions, and select Initialization Tab.

Add statement BREAK [SY-UNAME] at Initialization.

[SY-UNAME] = your User ID.

Regards,

Former Member
0 Kudos

Hi,

In the Generated Function module, put a break point and execute the Smartform, then it wil go to that point in the debugging.

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

NACE is the configuration transaction code for Smartforms, if you do not have the Access then contact the Functional people to configure the Smartform, in the NACE we do the link for Driver program to the Smartform with a Output type

Regards

Sudheer

Former Member
0 Kudos

Hi, Mohanned,

Above mentioned answers are verymuch answering your needs. We can see there are two methods of doing task.

1. Hard Coded Break point in side SMART Form. Using BREAK-POINT.

2. Break point inside FM of Smart form.

For more details on Samrtform you can approach me through SDN or Email.

Darshan

    • Please Reward Points to Helpful answers. It motivates us to write ans.

Former Member
0 Kudos

hi

TO DEBUG

1.In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap

Break Point.

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.

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

3.SFTRACE can be used for debugging SMARTFORMS.

Read More here.

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

No need for authorization for NACE

The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.

-CHARITHA

Former Member
0 Kudos

Hi Mohammed Ahmed,

For debugging -

1. Write BREAK POINT in the code window.

2. Put a break point on the call function in the driver program

3. Put a break point in the generated Function module.

OR

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

OR

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 direct press F8 or Excute(button) then select print preview.

Hope this resolves your query.

Reward all the helpful answers.

Regards

Former Member
0 Kudos

Hi Ahmed.

Create a Code node in the smartform and include code <username>. in this node and activate. When you try to print the form it will stop at the breakpoint.

Hope this helps !!!

Britto