Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress a page in SAP script

former_member125661
Contributor
0 Kudos
111

We have a custom clone of a bank check form. We have a requirement, when on a certain condition(

if Payment method supplement = F ) , we do not want to print any NEXT pages, only the FIRST page needs to be printed.

How do we suppress the printing of NEXT page ?

3 REPLIES 3

Former Member
0 Kudos
86

One of the simplest things you can do is to calculate how many lines you have already printed to main and block all main calls after your max is reached.

Neal

Former Member
0 Kudos
86

Hi Shareen,


You can do as below :


In the very first window that is called ,  you can set a  flag depicting the status of Payment Method supplement ,like


if PAYM_METH_SUPPL = 'F',

then make GV_FLAG = 'X' .


now in MAIN window , make it like as below :-

if GV_FLAG ne 'X'.

......

contents..

.......

else.

     if &page& < 2.

     .....

     same contents...

     .....

     endif.

endif.


hope it will be useful

nabheetscn
SAP Champion
SAP Champion
0 Kudos
86

Shareen

I believe you can suppress this stuff via your driver program...only write data on first page....and check if limit of main window has reached just exit from the loop so that next page does not print

Nabheet