cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform ---SY-INDEX

rahul2000
Contributor
0 Kudos

Hi all,

In a smartform..there is TABLES Statment

In that there is a cell which contains the text &SY-INDEX&.

and hence the value is getting printed to the extreme left.

If i write a code exactly above where it is getting printed as

INDEX = SY-INDEX.

CONDENSE INDEX.

Then for some reason SY-INDEX has 0 and hence 0 is getting printed.

IF I directly pass SY-INDEX,then 1 is getting printed.

What can I do?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

U pass &SY-INDEX(C)& to the text node instead of &SY-INDEX&

Regards

Sandipan

rahul2000
Contributor
0 Kudos

Hi Sandiapan,

What does this do?? &SY-INDEX(C)&

I passed it and then when i click on Print Preview...nothing is coming....my selection screen is coming again...

When i reverted back it is working fine again..

Former Member
0 Kudos

Hi,

It condense the field.

Do ilke this Click on the text node ->Click Change Field Icon(Pencil Icon beside Insert field Icon)>Write

&SY-INDEX(C)& and Click ok.

Regards

Sandipan

rahul2000
Contributor
0 Kudos

Hi Sandipan..

I have done the same way....

But i dont understand as to how it is affecting my Print Preview?any idea on this?

Former Member
0 Kudos

Hi,

I cant understand why it is giving problem in print preview.It should give any problem.

test it from Smartform only by excuting smartform.

Or ,

test it in another smartform by just creating a textnode and passing SY-INDEX .

Regards

Sandipan

rahul2000
Contributor
0 Kudos

Hi Sandipan,

i have solved the same thing using SY-TABIX.

But still i was unable to find out why &SY-INDEX(C)& was affecting my print preview.

Thanks a ton.

Former Member
0 Kudos

HI,

Former Member
0 Kudos

Hi K.R.R

rahul2000
Contributor
0 Kudos

hey KRR

How many points do u expect for this answer of u rs?

Former Member
0 Kudos

HI,

CONDENSE works only with charcter datatypes.

It works with data types: C, N, D, T, String.

hellow net was disconnected ,mind your business.

rahul2000
Contributor
0 Kudos

Hi KRR.

I have declared index as type N only...

Why dont u look at the funny side of u r ans above rather than askin me to mind my bussiness??