hi,
if u using ALV then go to SE41.
Give SAPLKKBL as program name and STANDARD_FULLSCREEN as status....
now click on Copy Status and in that give ur program and status name into To.....
now in REUSE_ALV_GRID_DISPLAY
FORM display_list.
g_f_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_f_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_STAT'
it_fieldcat = g_t_fieldcat[]
it_events = g_t_events[]
TABLES
t_outtab = g_t_itab
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.
ENDFORM. " display_list
FORM set_stat USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.
ENDFORM. "set_stat
here my status name is ZSTAT which i gave in SE41...
and in user_command form...
FORM user_command USING u_comm LIKE sy-ucomm selfield TYPE slis_selfield.
CASE u_comm.
WHEN 'DET'.
........ur logic.........
ENDCASE.
ENDFORM. "user_command
reward if usefull...
hi,
In the PBO of your program set the pf status SET PF-STATUS 'STATUS100'.
double click on the STATUS100 ,another window will be opened for maintaining status of the program.
there you will have 3 options:
1.Menu bar
2.Application tool Bar
3.Function keys.
1.Menu bar is the one where u find file,edit etc .In the menu bar u can define ur desired menu.system and help are default in the menu bar.you can add any number of menu and sub menus to it.
2.In the application tool bar,u can create any buttons for exit or back.just define the button and write the functionality of the button in the PAI of your program.
3.The function keys are presnet for every output window(in disable mode),if you define the functionality,those keys will be activated.u have to write code for that in the PAI of your program.
reward if helpful
regards,
sravanthi
Hi Thambe,
Go to the PBO module of your program and type the statement SET PF-STATUS 'XXXXX'.
This will set the PF STATUS for the screen.In place of XXXX,you can give your name(Only UPPER CASE has to be used for the name) for the PF STATUS.
Double click on that name and another window(Maintain PF Status window) would open .
There you will have Menu Bar,Application Tool bar and Function Keys.
Menu bar has SYSTEM ad HELP buttons as default and they cannot be hidden.You can add your own menu to it.This is also used to add a sub menu.You can add more than one sub menu.
Application tool bar is for frequently used functions. Standard toolbar which is the same on every SAP screen contains a set of icons which are assigned to fixed function keys
The user interface of a program is made up of its title and statuses and must be regenerated every time something new is added
The function keys are used to add more keys to the tool bar.You have to write the code for these keys in the PAI modules of the screen.
If the PF Status is not set for that screen,then the previous screen PF status is used.
Reward if helpfull.
Thanks,
Kashyap Ivaturi
Add a comment