2006 Jun 21 3:46 PM
Hi friends ,
i have to control the printing of a report on the condintion that if a field value is changed then printing should not happen.
so i want to know how to control this behavior of a report.
your hints are highly appreciated.
Thanx .
Sajid
Hi friends ,
i have to control the printing of a report on the condintion that if a field value is changed then printing should not happen.
so i want to know how to control this behavior of a report.
your hints are highly appreciated.
Thanx .
Sajid
2006 Jun 21 3:54 PM
2006 Jun 21 4:08 PM
First you need to turn the PRINT button off on the selection screen. Then turn it off on the list. This sample program will show you how to do both. Notice that you must create a new gui-status for the list display, make sure to put a function code for the green arrow as "BACK", put the fcode 'PRIN' for the print button. Notice that we will exclude this when setting the status.
report zrich_0001.
* Used to limit user commands on selection-screen
include rsdbc1xx.
parameters: p_check type c.
* Events
at selection-screen output.
if p_check = 'A'.
append 'PRIN' to current_scr-excl.
else.
delete current_scr-excl where fcode = 'PRIN'.
endif.
start-of-selection.
if p_check = 'A'.
set pf-status 'LIST' excluding 'PRIN'.
endif.
write:/ 'list'.
Regards,
RIch Heilman
2006 Jun 21 4:13 PM
Hi sajid,
Are you referring to something related to new-page Print options like the following??
NEW-PAGE PRINT OFF.
Regards,
ravi