2005 Jun 07 7:02 AM
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
2005 Jun 07 7:05 AM
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
2005 Jun 07 7:05 AM
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
2005 Jun 07 7:17 AM
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.