2007 Nov 14 9:41 PM
Hi Friends ,
I have a program where i am printing W-2 forms (sapscripts) . There are a total of 3000 forms . I need to be able to split them into 3 spools of 1000 each instead of creating 3000 spools . Please advise as to wat parameters need to be set in the beginning and when starting a new set of spool with 1000 forms .
Thanks,
Teresa
2007 Nov 14 9:47 PM
You need to count the records and then for every 1000 you have to make a new SPOOL..
LIke:
LOOP AT ITAB.
CNT = CNT + 1.
ITCPO-TDNEWID = ' '.
IF CNT = 1.
ITCPO-TDNEWID = 'X'.
ENDIF.
OPEN_FORM
wtih OPTIONS = ITCPO.
WRITE_FORM
CLOSE_FORM
IF CNT = 1000.
CLEAR CNT.
ENDIF.
ENDLOOP.Regards,
Naimesh Patel
Hi Friends ,
I have a program where i am printing W-2 forms (sapscripts) . There are a total of 3000 forms . I need to be able to split them into 3 spools of 1000 each instead of creating 3000 spools . Please advise as to wat parameters need to be set in the beginning and when starting a new set of spool with 1000 forms .
Thanks,
Teresa
2007 Nov 14 9:47 PM
You need to count the records and then for every 1000 you have to make a new SPOOL..
LIke:
LOOP AT ITAB.
CNT = CNT + 1.
ITCPO-TDNEWID = ' '.
IF CNT = 1.
ITCPO-TDNEWID = 'X'.
ENDIF.
OPEN_FORM
wtih OPTIONS = ITCPO.
WRITE_FORM
CLOSE_FORM
IF CNT = 1000.
CLEAR CNT.
ENDIF.
ENDLOOP.Regards,
Naimesh Patel
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |