cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug a SMARTFORM to get ADDRESS FIELD in ADD. window for Invoice

former_member190178
Participant
0 Kudos

Dear All,

Please tell me how to debug a smartform and how to get the fields value for the

particular window.

Say i wish to see the value and the field name for ADDRESS window for INVOICE

(Output Type: RD00).

Here i am not able to debug the smartform and also to see the values contained in those respective variables !!!

Seeking your help as soon as possible !!!

Regards,

Virendra

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

if you want to check the entries in any particular window, add a code lines node and insert the break-point or break (username) command.

The control will stop there and you can check the values.

Regards

Subramanian

Former Member
0 Kudos

Hi,

There are Different ways to debug a Smartform

1) When editing the smartform, you can get the function module name (which is generated by the smartform definition) by Environment > Function Module Name from the menu.

In the function module, you can search for the relevant code you are trying to debug. It is helpful to search for names of variables etc.

2) Put a Break-Point <User name> in the Code lines inside 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.

3) -


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

Regards

Sudheer

Former Member
0 Kudos

run the smartform with break point in the form program lines.

u can stop it at desired place.

Former Member
0 Kudos

1) DEBUG Smartform:

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.

Set the break point in initialization(Global Definitions--> Initialization) of smartform as :

BREAK <USERNAME>. --Works for particular user.

Please don't use BREAK-POINT this will apply all the users who are testing the smartform.

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.

Also check...