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

Regarding PF Status

Former Member
0 Likes
1,492

Hi ,

The requirement is to add the some functions on selection screen MENU tool bar for that i added the SET PF-Status ' ' in AT SELECTION-SCREEN OUTPUT now that menu are working but Standard functionality is not working please any one suggest me on which event i need to use for working both functions.

thanks,

Hari

Message was edited by:

peeleti Harinath

Hi ,

The requirement is to add the some functions on selection screen MENU tool bar for that i added the SET PF-Status ' ' in AT SELECTION-SCREEN OUTPUT now that menu are working but Standard functionality is not working please any one suggest me on which event i need to use for working both functions.

thanks,

Hari

Message was edited by:

peeleti Harinath

14 REPLIES 14
Read only

Former Member
0 Likes
1,472

Try Initialization event..

Read only

0 Likes
1,472

i already tried on this way but it is not working

Read only

naimesh_patel
Active Contributor
0 Likes
1,472

You need to use the


tables: sscrfields

SELECTION-SCREEN : FUNCTION KEY 1. " < To create one key

inilization.
MOVE TEXT-001 TO SSCRFIELDS-FUNCTXT_01.

at selection-screen.
  case sy-ucomm.
     when 'FC01'.
  endcase.

check out the online help for more information..

Regards,

Naimesh Patel

Read only

0 Likes
1,472

i need to create the functions in MENU Tool bar

Read only

Former Member
0 Likes
1,472

HI

with out PF status you can create buttons on the selection screen

It can create max 5 buttoms (see the structure SSCRFIELDS).

TABLES SSCRFIELDS.
 
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY N.
SELECTION-SCREEN FUNCTION KEY 5.
 
INITIALIZATION.
 
MOVE: 'My button 1' TO SSCRFIELDS-FUNCTXT_01,
      ..........................................., 
      'My button 5' TO SSCRFIELDS-FUNCTXT_05.
 
AT SELECTION-SCREEN.
 
  CASE SSCRFIELDS-UCOMM.
     WHEN 'FC01'.
     ...................
     WHEN 'FC05'.
  ENDCASE.

<b>reward if usefull</b>

Read only

0 Likes
1,472

I want add the functions in Menu tool bar not in application tool bal

Read only

Former Member
0 Likes
1,472

HI

if you had any doubt execute this small program and see how it will be

*&---------------------------------------------------------------------*
*& Report  ZSSCRAPPBUT                                                 *
*&                                                                     *
*&---------------------------------------------------------------------*
*&  Adds buttons to application toolbar of selection screen.           *
*&---------------------------------------------------------------------*

REPORT  zsscrappbut NO STANDARD PAGE HEADING.

TABLES: t030, skat, sscrfields.


SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                     TITLE text-001.
SELECT-OPTIONS: p_ktopl FOR t030-ktopl,
                p_komok FOR t030-komok,
                p_ktosl FOR t030-ktosl.
SELECTION-SCREEN SKIP.

* Add button to application toolbar
SELECTION-SCREEN FUNCTION KEY 1.  "Will have a function code of 'FC01'
SELECTION-SCREEN FUNCTION KEY 2.  "Will have a function code of 'FC02'
*                                                                 .....
SELECTION-SCREEN END OF BLOCK block1.



************************************************************************
*INITIALIZATION.
INITIALIZATION.

* Add displayed text string to buttons
MOVE 'Application button' to SSCRFIELDS-FUNCTXT_01.
MOVE 'Excecute report ????' to SSCRFIELDS-FUNCTXT_02.
*                                                 .....


************************************************************************
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN.

if sscrfields-ucomm = 'FC01'.
  break-point.
elseif sscrfields-ucomm = 'FC02'.
  break-point.
endif.

Read only

Former Member
0 Likes
1,472

Hi Peeleti,

Use SET PF-Status after AT SELECTION-SCREEN and then AT USER-COMMAND. Then you can go for start of selection event... It will work....

Cheers,

Sagun desai...

Read only

0 Likes
1,472

Hi Sagun desai..

Could you send the example please........................

Read only

0 Likes
1,472

check out this one.

SELECTION-SCREEN BEGIN OF BLOCK BLK_001.
parameters: p_lifnr type lfa1-lifnr.
SELECTION-SCREEN END OF BLOCK BLK_001.
 
AT SELECTION-SCREEN OUTPUT.
SET PF-STATUS 'PFST'.  " < create a PF-status with requried buttons
 
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'MENU1'.
  message i398(00) with 'it is working'.
ENDCASE.

Regards,

Naimesh Patel

Read only

0 Likes
1,472

Hi Patel ,

In this way it's work but the thing is standard functionality is not workin when i used this way

Thanks,

Hari

Read only

0 Likes
1,472

Hi Patel ,

In this way it's work but the thing is standard functionality is not workin when i used this way

Thanks,

Hari

Read only

0 Likes
1,472

You need to put those buttons also in the PF-Status.

If possible please use the SELECTOIN-SCREEN FUCTION KEY 1 syntax to create a button on the screen. Becuase it will take care for all of this stuff.

Regards,

Naimesh Patel

Read only

0 Likes
1,472

HI

do one thing , specify the standard screen functionalities in the PF-STATUS

like SAVE , BACK ,EXIT so that they can also apear in your screen

<b>bacause if you want to set the PF-SATUS then that wil apply your new screen there</b>

so do like this , insert standard functionalities in ur PF-STATUS

<b>Reward if usefull</b>