cancel
Showing results for 
Search instead for 
Did you mean: 

line numbers in script

Former Member
0 Kudos

hi gurus,

how can i print line numbers in serial in vertical in a SAP Script.

thanx in advance,

santosh.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Write the values in the <b>MAIN</b> window

Vasanth

Former Member
0 Kudos

Hi

What's your actual requirement? why you need to print Numbers in Script? for which data you need? for item data?

then keep a variable in the Internal table like Sy-index or type I and increment it and display.

There is no variable like Sy-INDEX in scripts.

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

hi anji,

my actual requirement is to print line numbers beside each line item...is there any system field to to print line numbers like that....

thanx,

santosh.

Former Member
0 Kudos

Hi

There is no system field for writing the Numbers in Scripts like Reports.

check the table TTSXY and TTDTG if needed..

So you define some variable using DEFINE statement and based on some Item condition you have to pass varaible

/: define &VAR&

/: if &itab-posnr& eq '00010'

/ var = 1.

elseif &itab-posnr& eq '00020'

/ var = 2.

/: elseif &itab-posnr& eq '00030'

/ var = 3.

......

endif.

try like above and pass the numbers

or from the driver program itself keep a variable in the items internmal table and fill that field and use it in script.

<b>

Reward points for useful Answers</b>

Regards

Anji