cancel
Showing results for 
Search instead for 
Did you mean: 

sap script/main window pb

Former Member
0 Kudos

I would like to print every page only 10lines with main window. so that I am using below statement. but its not working. can any1 correct my code pls.?

DATA: COUNT(5) TYPE C VALUE 0

IF &SAPSCRIPT-COUNTER_COUNT(+)& EQ 10

NEW-PAGE

ENDIF

CLEAR COUNT

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Tell me the actual requirement I will tell you the trick.

Regards,

Nageswar

Former Member
0 Kudos

Hi Nagesh,

Actualy my requirement is , I have 2 main window in First page itself. First Main window has line item, 2nd main window(using NEW WINDOW)using for some other purpose. while printing, when 1st mainwindow full,its started to print 2nd main window in first page itself.It has to print in 2nd page Main window.In script we can set only one main window, system printing logically correct,but I need to print when first main window full,it has to print in 2nd page.please guide me.

Former Member
0 Kudos

try this:

DATA: COUNT(5) TYPE C VALUE 0

IF &SAPSCRIPT-COUNTER_COUNT0(+1)& EQ 10

NEW-PAGE

ENDIF

CLEAR COUNT

if helpful,,plz reward points.

regards,

siddhartha prakash

Former Member
0 Kudos

Hi,

Just do settings like this to modify your main window and try,

In the SAP Script, Goto -> Header -> Basic Settings

Here you could configure the page settings and their orientation.

seshu.