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
636

Hi all

In a PF STATUS objecty i hav created 4 functional keys.Now in my selection screen i have 2 radiobuttons.If i click the 1st radio buttonn then i need to display the 1st two function keys and if click on the second radiobutton then i need to get the remaining 2 function keys.Please help

Vijay

Hi all

In a PF STATUS objecty i hav created 4 functional keys.Now in my selection screen i have 2 radiobuttons.If i click the 1st radio buttonn then i need to display the 1st two function keys and if click on the second radiobutton then i need to get the remaining 2 function keys.Please help

Vijay

5 REPLIES 5
Read only

former_member182354
Contributor
0 Likes
602

Hi Vijay,

For your requirement you have to create two separate PF-STATUS and not one. Then depending upon what radio-button you click you need to call any one of the PF-Status you need.

Raghav

Read only

Former Member
0 Likes
602

Hi,

try this logic.

use two pf-status.

if rad1 eq 'X'.

pf-status1. "for first two buttons.

endif.

if rad2 eq 'X'.

pf-status2. "for remaining two buttons.

endif

Read only

Former Member
0 Likes
602

Hi,

DATA : BEGIN OF itab OCCURS 0,

fcode(10) ,

END OF itab.

DATA : BEGIN OF itab1 OCCURS 0,

fcode(10),

END OF itab1.

itab-fcode = 'CANCEL' .

APPEND itab.

itab-fcode = 'EXIT'.

APPEND itab.

itab1-fcode = 'BACK' .

APPEND itab1.

itab1-fcode = 'PRINT'.

APPEND itab1.

SELECTION-SCREEN: BEGIN OF LINE.

PARAMETERS: p_r1 RADIOBUTTON GROUP gb1." user-command uc1.

SELECTION-SCREEN: COMMENT 3(15) text-009 FOR FIELD p_r1.

PARAMETERS: p_r2 RADIOBUTTON GROUP gb1.

SELECTION-SCREEN: COMMENT 21(10) text-010 FOR FIELD p_r2.

SELECTION-SCREEN: END OF LINE.

if p_r1 = 'X'.

SET PF-STATUS 'BASIC' OF PROGRAM excluding itab.

endif.

if p_r2 = 'X'.

SET PF-STATUS 'BASIC' OF PROGRAM excluding itab1.

Endif.

Start-of-selection.

<Ur code>

Regards,

Jagadish

Read only

Former Member
0 Likes
602

Hi,

Make use of the excluding itab , here you can populate the functions that should be excluded when the screen is displayed.

so based on the radio button selected, populate the itab and pass it to

set pf-status 'ANY_STATUS' excluding itab.

regards,

Advait.

Read only

Former Member
0 Likes
602

hi,

try like this.

data : itab1 type standard table of sy-fcode,

itab2 type standard table of sy-fcode.

itab1-fcode = 'SAVE'.

APPEND ITAB1.

ITAB1-FCODE = 'EXIT'.

APPEN ITAB1.

ITAB2-FCODE = 'CANCEL'.

APPEND ITAB2.

ITAB2-FCODE = 'EDIT'.

APPEND ITAB2.

IF RADIO_1 = 'X'.

SET PF-STATUS MENU1 EXCLUDING ITAB1.

ELSEIF RADIO_2 = 'X'.

SET PF-STATUS MENU1 EXCLUDING ITAB1.

ENDIF.

USE THIS LOGIC ACCORDING TO UR REQUIREMENT.

HERE, IF YOU EXCLUDE THAT ITAB, THEN THE FUNCTIONALITIES WHICH ARE IN THAT INTERNAL TABLE WILL BE DISABLED.

REGARDS

SANDEEP REDDY