2007 Jan 12 4:26 AM
RESPECTED,
I HAVE A DOUBT REGARDING SMARTFORM COUNT.
HOE TO DEFINE COUNT NO JUST LIKE 1,2,3----ETC UPTO 25 TO CORRESPONDING RECORDS.HOW TO WRITE CODE.PLEASE URGENT.
CAN I USE SY-INDEX OR SY-TABIX IN MY FORM OR ANY SYSTEM VARIEBLE IN SMARTFORM REGARDING SMART FORMS.
WITH WARM REGARDS.
RESPECTED,
I HAVE A DOUBT REGARDING SMARTFORM COUNT.
HOE TO DEFINE COUNT NO JUST LIKE 1,2,3----ETC UPTO 25 TO CORRESPONDING RECORDS.HOW TO WRITE CODE.PLEASE URGENT.
CAN I USE SY-INDEX OR SY-TABIX IN MY FORM OR ANY SYSTEM VARIEBLE IN SMARTFORM REGARDING SMART FORMS.
WITH WARM REGARDS.
2007 Jan 12 4:28 AM
Hi,
Here is one method.
Declare cnt type i value 0 in global definitions
Inside the loop,
create program line
Input parameter cnt
Output parameter cnt
code
cnt = cnt + 1
Create text element drag and drop the cnt.
2007 Jan 12 4:28 AM
Hi,
If you are using inside a LOOP, then you can use SY-TABIX.
Otherwise, you can use Code lines to increment the counter varaible.
This variable should be declared in the definitions and then used as the Input and Output parameters in code-lines.
Regards
Subramanian
2007 Jan 12 4:31 AM
2007 Jan 12 4:39 AM
Hi,
You can use calculations tab if you are using table.
There is a tab calculations in table.
operatios count
fieldname wa-f1
target fieldname cnt
time after loop
In global declaration,declare cnt type i