cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in sap script

Former Member
0 Kudos

Hi All.

I am working with sap script.last line of page get printing at second page.how can i avoid it?

Eg: 200

300

Total 500.

Total only getting print at second page rest of thing getting print at first page

I want print both at first page.

help me.

Regards.

jay

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi,

I hope you are printing the same in Main window,

Use PROTECT

ENDPROTECT,

it will work for first page, ie., if second page is also not suffiecient to print , it will split data and print in second and third page.

If you are printing the same in VAR or CONST window, increase the height of the window.

Bye

Former Member
0 Kudos

hii

just use PROTECT ...END PROTECT ..it will solve your problem.

as it will not allow page break for the code between PROTECT ...END PROTECT

<REMOVED BY MODERATOR>

thx

twinkal

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 4:57 PM

Former Member
0 Kudos

Hi!

There is an unneccessary new-page somewhere in your sapscript or your printer program.

In the sapscript forcing new pages has the following statement:

/: NEW-PAGE

In the printer program:

CALL FUNCTION 'CONTROL_FORM'

EXPORTING COMMAND = 'NEW-PAGE'.

OR your MAIN windows's height is just not enough.

Regards

Tamá

Former Member
0 Kudos

HI Tamas.

I doest nt use any 'CONTROL_FORM' in my code and one more thing that window is not a main window,its constant window but at last of script.

Help me to resolve this problem

Regards.

jay

Pawan_Kesari
Active Contributor
0 Kudos

increase the height of the window.

or

reduce the font size

Former Member
0 Kudos

Hi,

place ur code like this

/: Protect

urcode

/: EndProtect.

Rgds.,

'subash.

Former Member
0 Kudos

Hiii..

Placing the data to be displayed in

PROTECT.

ENDPROTECT.

regards

chandu reddy