cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove blank pages in SAP Script

Former Member
0 Kudos

Hi All,

1. Employee we have to issue the certificate and as well as terms & Conditions page. If wife is staying in different address we have to display both certificate and as well as terms and conditions page. For kids we need not shown the terms & conditions, bcz they have stayed with wife. So in my case for employee it is displaying 2 pages one for certificate and terms and conditions page, for wife 2 pages one for certificate and terms and conditions page, as per as children it should show only one page i.e certificate page only, but here it is taking terms and conditions page also but it is displaying blank page. Now my question is how to delete that blank page. Just ask your colegues who know how to delete that page.

Regards,

Sathvik

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You mentioned having 3 pages- first, 2nd and 3rd. 2nd page has certificate and 3rd has terms and conditions.

while creating the pages, what did you declare as the 'next page' for the 2nd page?

if you have declared it as the 3rd page, then whenever the certificate page gets triggered, after it terms and conditions page will get triggered automatically, since you are handling the condition :

If A <> B

/: NEW-PAGE.

ENDIF

in the first page and not in the second.

once the control is in the second page, 3rd page will get triggered after it unless restricted in the 2nd page.

please let me know what you have declared as the next page for each of your three pages.

regards,

Divya

Former Member
0 Kudos

pAGE nEXT

HIP-1 HIP-1

HIP-2 HIP-3

HIP-3 HIP-3

IS IT OCRRECT?

Former Member
0 Kudos

Hi,

Do you need the "terms and conditions" behind the certificate..i.e. on the other side of the certificate , or on another page?

If you need it behind, then you will have to declare the printer as "D" which denotes duplex.

In that case, there shouldnt be a problem of blank page getting printed.

Hope this helps.

Regards,

Divya

Former Member
0 Kudos

Hi,

No i am not using Duplex printer. Let me explain

There is Employee <b>X</b> His address is 2785 and his Spouse and 3 children are not in this Address.

When you are executing The Terms and condition is in 3rd & 4th page. if the address is change then there 2 pages has to print othere wise only certificate has to print.

Now Employee and Spouse adreess are change that's y terms and condition is printing. Children is leaving with mom so now they don't wnt to print 2nd & 3rd page. I put condition now contents is not showing. But here blank pages are showing now i wnt remove those blank pages.

Thanks & Regards,

Sathvik

Former Member
0 Kudos

Hello,

We cannot delete a blank page.

One thing u can do is,

Handle the second page thru logic.So dont make second page as mandatory.

U trigger the second page only when ur condtion is satisfied.

Use NEW-PAGE concept.

Check and let me know if I am not clear

Regards

Former Member
0 Kudos

better way just debugg the sapscript and try to find from where this page trigger....:-)

Former Member
0 Kudos

Already i triggerd still its prining blank pages.

See I hvea 3 pages.

in 2nd & 3rd pages Certificate terms and condition is there.

in First page in last window i used If address <> same then go to new page other wise Print First page.

If A <> B

/: NEW-PAGE.

ENDIF

Former Member
0 Kudos

Debug the script and check wether ur condition is executed sucessfully or not.

Regards

Former Member
0 Kudos

i debugged now the window content is not printing but only i am getting blank pages.

Regards,

Sathvik

Former Member
0 Kudos

paste ur code

Former Member
0 Kudos

There are 3 Pages Hip-1 HIP-2 & HIP-3

Hip-1 5 window.

in last window OF FIRST PAGE HIP-1 IAm coding like this

/: &L_HIPAA& <> &CPERADDR1&.

/: NEW-PAGE

/: ENDIF

Former Member
0 Kudos

Hi

Find out why that terms and conditions page is triggering for kids?

Regards,

Raj