Application Development and Automation 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: 
Read only

DOUBT IN SMARTFORM COUNT NO

Former Member
0 Likes
729

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.

4 REPLIES 4
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
703

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.

Read only

Former Member
0 Likes
703

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

Read only

Former Member
0 Likes
703

You can use SY-TABIX or SY-INDEX in smart forms.

Manoj

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
703

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