cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript print a extra page

Former Member
0 Kudos

Dear all,

I have a sap script which is used for Printing the Sale Orders,

but the problem is after the relevant details are printed an extra sheet is printed just with header and Footer.

Not able to find out why?

this is my code in the sap Script

/E
CONTACT_INFO
C1
<S>,,Your Contact : &VBDKA-ERNAM& ,,  Manager :&MNGR&</>
C1
<S>,,Phone :
C1
<S>,,Email :
/*
&ULINE(75)&
/E
GNRL
/:
INCLUDE ZZ_GNRL_TERM OBJECT TEXT ID ST LANGUAGE EN
/:
NEW-PAGE

New page is needed to print the each Line items in a different page.

can any body guide me as to where i have gone wrong.

with rgds

Ranjith Singh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ranjith,

For calling new page . better to use condition like

IF &VBDKA-ERNAM& is not initial

NEW-PAGE

ENDIF

Regards,

Venkat.

Former Member
0 Kudos

Hi Ranjith,

Can you please comment NEW-PAGE command and try to print i thing issue fixed then you can find proper place and write NEW-PAGE Command...

Thanks,

Raj

Former Member
0 Kudos

Hi Venkat,

thanx for the reply but the new page has to be triggered only after

/:INCLUDE ZZ_GNRL_TERM OBJECT TEXT ID ST LANGUAGE EN

/: NEW-PAGE

and this is working fine but after all the required line items are printed ,an extra page is printed with header and footer details but not the general terms and condition.

I also noiticed a peculiar thing when i comment the New-Page command , no extra page gets printed but the line item wise data which is needs to be printed in each page gets jumbled.

with rgds

Ranjith

Former Member
0 Kudos

Hi,

While debugging i could see , when the close form is called , the header and Footer windows are being triggered don't why.