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

PF Status

Former Member
0 Likes
660

How to make print button invisible..

5 REPLIES 5
Read only

varma_narayana
Active Contributor
0 Likes
638

Hi

<b>For Normal screen or List use:</b>

START-OF-SELECTION.

SET PF-STATUS SPACE EXCLUDING '%PRI' . "fcode of print button

<b>Incase of Selection screen use this code:</b>

REPORT ZSEL_GUI .

parameters : p_dsn(30) DEFAULT 'EMP.TXT'.

DATA : V_STATUS TYPE SY-PFKEY VALUE 'SEL1',

V_rEPID TYPE SY-REPID.

AT SELECTION-SCREEN OUTPUT.

V_REPID = SY-REPID.

DATA itab TYPE TABLE OF sy-ucomm.

APPEND: 'PRIN' TO itab.

APPEND: 'SPOS' TO itab.

CASE sy-dynnr.

WHEN '1000'.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = V_STATUS

P_PROGRAM = V_REPID "program where the GUI Status is created

TABLES

p_exclude = itab.

ENDCASE.

Read only

Former Member
0 Likes
638

Hi

goto SE41 T-code

creat a pf ststus

and call that status in ur programs

so that it will be as per ur req

reward if usefull

Read only

Former Member
0 Likes
638

Hi,

try this

SET PF-STATUS 'pf statuns name of yours' excluding '&RNT'..

and &RNT is the functin code for print

then it wil be invisible..

thanks & regards,

Venkatesh

Read only

Former Member
0 Likes
638

Hi Mahesh ,

  • Internal table used to exclude keys from status bar

DATA: BEGIN OF IT_EXTAB100 OCCURS 10,

CODE(4) TYPE C,

END OF IT_EXTAB100.

MOVE: 'PRINT' TO IT_EXTAB100-CODE.

APPEND IT_EXTAB100.

SET PF-STATUS 'XXX' EXCLUDING IT_EXTAB100.

Read only

Former Member
0 Likes
638

thanks