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: 

Debugging smartforms

Former Member
0 Kudos
276

Hi All,

Tell me how to debug smartforms.

Also how to put counter for displlayed items in the form.

eg.

1. material1

2. material2

3. material3

Regards,

Dilip

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos
69

Hi Dilip,

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.

If you are using loop,then inside that create program line.In that, increment a counter like the normal abap program.Then display that counter.

To be more specific,

declare a variable in Global Definitions-Global data as below

cnt type i 0(default)

Then inside the loop,

in text element , drag the variable which is under Global data in field list .

After that create a program line,give cnt as input and output parameter.

In logic,write

cnt = cnt + 1.

Then you will get the desired output.

If your problem is solved,reward points and close the thread.If not,get back.

Message was edited by: Jayanthi Jayaraman

2 REPLIES 2

jayanthi_jayaraman
Active Contributor
0 Kudos
70

Hi Dilip,

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.

If you are using loop,then inside that create program line.In that, increment a counter like the normal abap program.Then display that counter.

To be more specific,

declare a variable in Global Definitions-Global data as below

cnt type i 0(default)

Then inside the loop,

in text element , drag the variable which is under Global data in field list .

After that create a program line,give cnt as input and output parameter.

In logic,write

cnt = cnt + 1.

Then you will get the desired output.

If your problem is solved,reward points and close the thread.If not,get back.

Message was edited by: Jayanthi Jayaraman

Former Member
0 Kudos
69

Hi,

Smartforms has the facility to provide Numbering in the Table.

First in the global definition define a field "Count" of type "I". Then in the calculation Tab of the Table select the operation Number, in the target field enter "Count", and select time as Before Loop.

Finally the field "Count" can be used within the Main area of table.