on 11-26-2009 2:20 PM
Hi All,
We are going for upgrade from 4.6 to ECC 6.0. In ECC6.0 nested new-page print on statement used in a program is going into short dump but not in 4.6. I tried to used new-page print off statement before each new-page print on statement to avoid nesting but in this case multiple spool generated that's means for each page one spool generates. But in 4.6 only one spool generated for multiple pages. We want one spool in ECC6.0 for multiple page same as in 4.6. My program code for each page written in separate internal table loop.
Thanks
ravi
Hi Ravi,
Check field 'PRNEW' in structure 'PRI_PARAMS' before every 'New-page print on' statement.
It should be initial because it is responsible for triggering New Spool Request.
print_parameters-prnew = ''. " Should be initial in your case
NEW-PAGE PRINT ON PARAMETERS print_parameters.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Probably u need to use the option PRINT ON just for the first NEW-PAGE statament, I've tried this code and it works:
NEW-PAGE PRINT ON.
WRITE: 'PAGE:', SY-PAGNO.
NEW-PAGE.
WRITE: 'PAGE:', SY-PAGNO.
NEW-PAGE.
WRITE: 'PAGE:', SY-PAGNO.
NEW-PAGE.
WRITE: 'PAGE:', SY-PAGNO.
It creates a spool with 4 pages
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a reason to use several NEW-PAGE PRINT ON? To solve that, you have to handle CX_SY_NESTED_PRINT_ON exception : see SAP Note 637463 - NESTED_PRINT_ON short dump
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.