2009 Dec 07 11:51 AM
Hi ,
i have a requirement where in a value must be incremented in SAP script . How to perform that . ?
Hi ,
i have a requirement where in a value must be incremented in SAP script . How to perform that . ?
2009 Dec 07 11:59 AM
Hi,
you can try the below options.
1. You can call the specific statement in a window with specific text element in the driver program whenever required. Before calling this window with the mentioned text element, increment the varinable and pass the structure to WRITE_FORM.
2. It is also possible to call a SUBROUTINE POOL in script, by passing the USING and CHANGING parameters.
2009 Dec 07 12:24 PM
Hi,
If you want a counter kind of thing then you can directly use counters provide by SAPscript.
To learn about counter follow this link : [http://help.sap.com/saphelp_nw70/helpdata/en/d1/802d7d454211d189710000e8322d00/frameset.htm]
And if you want to increase value of any variable used in the print program or declared in SAPscript then you
can write a form routine in a program and call this routine from the SAPscript. To learn how to call form routine
from sapscript follow this link : [http://help.sap.com/saphelp_nw70/helpdata/en/d1/802d7d454211d189710000e8322d00/frameset.htm]
Regards,
Bhavesh.
2009 Dec 07 12:45 PM
Hi Geetanjali,
You can declare a variable in your print program.Incrementing the value can be done in the print program itself before or after you call "WRITE_FORM".
Then you can use the value this variable inside your script by &var&.
Hope this helps
Regards
Avinash
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |