cancel
Showing results for 
Search instead for 
Did you mean: 

issue with New-page print on statement

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

awin_prabhu
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

Sandra_Rossi
Active Contributor
0 Kudos

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