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
1,387

Hello All,

Would u please tell me how to Define PF_STATUS in normal Report.

Regards,

Vandana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,333

hi vandana,

SET PF-STATUS 'XXX'.

double click on it...n it will give a popup to enter the short descrp.

regards,

priya.

Message was edited by:

Priya Parvathi Jammalamadaka

Hello All,

Would u please tell me how to Define PF_STATUS in normal Report.

Regards,

Vandana

11 REPLIES 11
Read only

Former Member
0 Likes
1,334

hi vandana,

SET PF-STATUS 'XXX'.

double click on it...n it will give a popup to enter the short descrp.

regards,

priya.

Message was edited by:

Priya Parvathi Jammalamadaka

Read only

Former Member
0 Likes
1,333

Hi,

it is same as like dialog program.

write SET PF-STATUS 'MYMENU'.

double click on menu name.

there u can create.

but if u assign some system define function codes to standard toolbar button u don't need to write code for them normal reporting.like BACK for back button

%SC for find button,

%SC++ for find next button,

P+ for next page,

P++ for last page,

P- for previous page,

P-- for first page,

%RW for exit button,

rgds,

bharat.

Read only

Former Member
0 Likes
1,333

Hi

goto se41

enter your program name and

status you can give any name (nnnnn)

come to se38

you had created your own screen in se41 that status name is (nnnnnn)

when your you need that screen just declare that status name like this

<b>set pf-status ' nnnnn'</b>

so your own status will apper there

where u defined

reward if usefull

.

Read only

Former Member
0 Likes
1,333

HI,

In the PBO module of the program

SET PF-STATUS 'XXX' occurs by default, uncomment it and give the screen name in place of 'XXX' for which you want to set PF status.

Otherwise you can write it yourself.

Read only

Former Member
0 Likes
1,333

Hi Vandana

set the PF status in PBO module

SET PF status 'XXX' .

it will set ur PF status

Regards

Hitesh<b>

"PLS donot forgot to reward points if helpful"</b>

Read only

Former Member
0 Likes
1,333

Hi

You define PF-STATUS as said above,but instead of creating it by yourself at first times better to copy it from other programs in se80 if it fits to your needs - it saves time.

se80>program name->right click on pf status --->copy with your program name and your pf status name

Regards

Yossi

Read only

Former Member
0 Likes
1,333

hi,

double click on NEWSTATUS.

it will take u to a new popup window where in u can select the icons which u want to display.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER = ' '

  • I_BUFFER_ACTIVE = ' '

I_CALLBACK_PROGRAM = gd_repid

I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'

  • I_CALLBACK_USER_COMMAND = ' '

I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE '

  • I_CALLBACK_HTML_TOP_OF_PAGE = ' '

  • I_CALLBACK_HTML_END_OF_LIST = ' '

  • I_STRUCTURE_NAME =

  • I_BACKGROUND_ID = ' '

I_GRID_TITLE = 'EMPLOYEE DETAILS'

  • I_GRID_SETTINGS =

IS_LAYOUT = gd_layout

IT_FIELDCAT = d_fieldcat

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • I_HTML_HEIGHT_TOP = 0

  • I_HTML_HEIGHT_END = 0

  • IT_ALV_GRAPHICS =

  • IT_HYPERLINK =

  • IT_ADD_FIELDCAT =

  • IT_EXCEPT_QINFO =

  • IR_SALV_FULLSCREEN_ADAPTER =

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

TABLES

T_OUTTAB = itab_final

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

form set_pf_status using rt_extab type slis_t_extab.

set pf-status 'NEWSTATUS'.

endform.

Reward with points if helpful.

Read only

Former Member
0 Likes
1,333

Here is the Example program how the the PF STATUS was used ...

it consist of menu painter -

GUI Status - It is subset of the interface elements(title bar,menu bar,standard tool bar,push buttons) used for a certain screen.

The status comprises those elements that are currently needed by the transaction.

ABAP Example Program ALV Grid Control 
You need to create a screen 100 for calling it, and in the Element list of the sceen supply OK_CODE of type OK & in the layout, place a Custom - control with name DILEEP_TEST1. 

Then activate modules STATUS_0100 and USER_COMMAND_0100 in the flow logic . 
  

REPORT ZTEST_DIL4 .
TABLES ZMSTKSUM.
DATA : OK_CODE LIKE SY-UCOMM,
       TAB_DISPLAY TYPE TABLE OF ZMSTKSUM,
       C_CONTAINER TYPE SCRFNAME VALUE 'DILEEP_TEST1',
       ALV_GRID TYPE REF TO CL_GUI_ALV_GRID,
       C_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.


SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS : S_WERKS FOR ZMSTKSUM-WERKS.

SELECTION-SCREEN END OF BLOCK B1.

SELECT * FROM ZMSTKSUM INTO TABLE TAB_DISPLAY WHERE WERKS IN S_WERKS.


CALL SCREEN 100.
*&---------------------------------------------------------------------

*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------

*       text
*----------------------------------------------------------------------

MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'MAIN'.
*  SET TITLEBAR 'xxx'.
  IF C_CUSTOM_CONTAINER IS INITIAL.
CREATE OBJECT C_CUSTOM_CONTAINER EXPORTING CONTAINER_NAME = C_CONTAINER
.
    CREATE OBJECT ALV_GRID EXPORTING I_PARENT = C_CUSTOM_CONTAINER.

    CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
*    I_BUFFER_ACTIVE               =
*    I_BYPASSING_BUFFER            =
        I_STRUCTURE_NAME              = 'ZMSTKSUM'
*    IS_VARIANT                    =
*    I_SAVE                        =
*    I_DEFAULT                     = 'X'
*    IS_LAYOUT                     =
*    IS_PRINT                      =
*    IT_SPECIAL_GROUPS             =
*    IT_TOOLBAR_EXCLUDING          =
      CHANGING
        IT_OUTTAB                     = TAB_DISPLAY
*    IT_FIELDCATALOG               =
*    IT_SORT                       =
*    IT_FILTER                     =
*  EXCEPTIONS
*    INVALID_PARAMETER_COMBINATION = 1
*    PROGRAM_ERROR                 = 2
*    others                        = 3
        .
    IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT

*&---------------------------------------------------------------------

*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------

*       text
*----------------------------------------------------------------------

MODULE USER_COMMAND_0100 INPUT.
  CASE OK_CODE.
    WHEN 'EXIT'.
      LEAVE PROGRAM.

  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT

reward points if it is usefull .....

Girish

Read only

Former Member
0 Likes
1,333

hi

syntax: SET PF-STATUS 'menupainter name'.

SET PF-STATUS 'ZMENU1'.

double click on it display of menu painter.

it useful for BDC and Function Module.

donot forget to reward point if useful.

Thanks & Regards,

S.Suresh.

Read only

Former Member
0 Likes
1,333

In start of selection write

Set pf-status 'ZPF_STAT'.

Double click on 'ZPF_STAT', and you will jump to creation of Pf - Status.

If you directly want to create it - then - go to se41 and type program name - then give the PF-Status name - and create.

In any case you will have to write the statement Set pf-status 'ZPF_STAT'.

Regards,

Andy

Read only

Former Member
0 Likes
1,333

Hi Vandana,

Use statement..

SET PF-STATUS 'ABC'.

double click on it and maintain the pf-status as per requirement.

please make sure to include this statement under the correct report event...

It will work under START-OF-SELECTION and END-OF-SELECTION.

not in INITIALIZATION, AT SELECTION-SCREEN OUTPUT, & AT SELECTION-SCREEN.

i hope this helps

Regards,

Yadesh