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: 
Read only

control printing from report

Former Member
0 Likes
535

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

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
510

A field value on the selection screen? You don't want the user to be able to print the list display?

Regards,

Rich Heilman

Read only

0 Likes
510

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

Read only

Former Member
0 Likes
510

Hi sajid,

Are you referring to something related to new-page Print options like the following??

NEW-PAGE PRINT OFF.

Regards,

ravi