on 02-15-2007 9:07 AM
Hi,
I modified one standard script and appended this script to the sap driver program.
My requirement i want to generate a number while printing only, how it is possible to increment
number while print only. Because i cannot take the itcpo from driver program. that i canno modifdy the sap
program.
2. is any tracking print system present permanently in the sap that we have taken the print from particular script.
i appreciate your help
rgds
p.kp
HI Krishna,
If u r modified a standard script and u want a field with incrementing number.. then u can use PERFORM statement and write a subroutine program for that and pass this incrementing value to script.
/: PEROFRM TEST IN PROGRAM ZPROGRAM
/: CHANGING &INCR&
/: ENDPERFORM
In zprogram...........
FORM TEST TABLES tab_in STRUCTURE itcsy tab_out STRUCTURE itcsy.
DATA: INC TYPE I.
INC = '1'. " OR UR STARTING NUMBER
READ TABLE tab_out WITH KEY 'INCR'.
IF sy-subrc = 0.
tab_out-value = INC.
ENDIF.
MODIFY tab_out INDEX sy-tabix.
INC = INC + 1.
ENDFORM.
Regards
SAB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.