on 08-16-2007 8:19 AM
Hi ,
Is there any system field in scripts to print serial numbers like 1,2,3 for each line item in main window.
Thanks in advance
You can use &SAPSCRIPT-COUNTER_1&
And you can increment the counter and display serial numbers.
For INCREMENTING.
&SAPSCRIPT-COUNTER_1(+)& " Increases by 1
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
As mentioned in other Posts you cannot use SY-TABIX or SAPSCRIPT-COUNTER fields here.
Step1:
Instead of that Declare an additional Integer field in the Print program
Eg: DATA V_SERNO TYPE I.
Step2:
In the Loop.. Endloop. fill it with SY-TABIX.
LOOP AT ITAB.
V_SERNO = SY-TABIX.
**Calling WRITE_FORM
ENDLOOP.
Step3:
In the Layout set print this varible as Serial no for each line item
&V_SERNO(C)&.
Note: (C) will compress the SPACEs.
<b>Reward if Helpful</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Try SY-TABIX (internal table index). It is filled within a LOOP.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.