on 03-21-2008 2:50 PM
I Used SAPSCRIPT-COUNTER_X parameter in a main window. I have initialized it to 1 by using DEFINE statement. Next i put condition &SAPSCRIPT-COUNTER_X& = '13' in IF statement . if it is 13 then it counter NEW-PAGE control command. But it is not working fine. Can any one suggest me how to work with SAPSCRIPT-COUNTER_X? Urgent in my project....
hai Venkatmani,
In Print Program Use.
A Variable For Counter .
Then In Script.
if W_counter = 13.
/: New-page.
endif.
If Found helpful Do Reward.
Regards.
Eshwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
The counter allows you to specify a value from 0 to 9. You cant assign 13 to the counter. More notes on using the counter.........
&SAPSCRIPT-COUNTER_x& (x = 0.. 9):
These fields represent ten counter variables that you can use in your text and forms for any counting purposes. You can use the + and - formatting options to increment or decrement a counter before its value is printed. You can use the DEFINE control command to assign any specific value to a counter.
For your requirement you can use a counter from within the print program and transfer the value to script. In the script you can trigger a NEW PAGE based on the counter value sent from the program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.