2008 May 30 10:49 AM
Hi,
I have created PF-STATUS named DELETE thru Menu Painter and I am using the following in my program for ALV Grid Output. I have just one Delete button.
FORM SET_PF_STATUS using rt_extab type slis_t_extab.
Set Pf-Status 'DELETE'.
ENDFORM. " SET_PF_STATUS
When I run this, I am just getting the Delete Button.
I want the existing buttons like SELECT_ALL, DESELECT_ALL etc working and in addition to that I need my Delete Button to be there for which I have written the logic.
Please solve.
Thanks in advance,
Ishaq.
2008 May 30 11:10 AM
Hi .
Go to se41
Program SAPLSALV
Status STANDARD
then copy to your STATS 'Z100' after that you can add any buttons that you need 'DELETE'.
FORM SET_PF_STATUS using rt_extab type slis_t_extab.
Set Pf-Status 'Z100'.
ENDFORM. " SET_PF_STATUS
Cheer .
Hi,
I have created PF-STATUS named DELETE thru Menu Painter and I am using the following in my program for ALV Grid Output. I have just one Delete button.
FORM SET_PF_STATUS using rt_extab type slis_t_extab.
Set Pf-Status 'DELETE'.
ENDFORM. " SET_PF_STATUS
When I run this, I am just getting the Delete Button.
I want the existing buttons like SELECT_ALL, DESELECT_ALL etc working and in addition to that I need my Delete Button to be there for which I have written the logic.
Please solve.
Thanks in advance,
Ishaq.
2008 May 30 10:51 AM
Hi,
Do as in the following example
FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
REFRESH i_extab.
PERFORM f4210_exclude_fcodes CHANGING i_extab.
SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLSALV' EXCLUDING i_extab.
ENDFORM.
&----
*& Form f4210_exclude_fcodes
&----
FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
DATA: ws_fcode TYPE slis_extab.
CLEAR ws_fcode.
ws_fcode = '&EB9'. " Call up Report.
APPEND ws_fcode TO i_extab.
ws_fcode = '&ABC'. " ABC Analysis.
APPEND ws_fcode TO i_extab.
ws_fcode = '&NFO'. " Info Select.
APPEND ws_fcode TO i_extab.
ws_fcode = '&LFO'. " Information.
APPEND ws_fcode TO i_extab.
ENDFORM. " f4210_exclude_fcodes
Regards,
Jagadish
2008 May 30 10:53 AM
HI Ishaq ,
Just include all the standard functionalities in your status . To make it simple just copy the STANDARD status into your Z status and then add the button to that .
Hope this will help
2008 May 30 10:53 AM
hi check this..
go to se41---program SAPLSALV
status STANDARD
then all the buttons will appear then you can give the name of the button you want in the set pf-status..
give button as &ALL &SAL along with the delete....
regards,
venkat
2008 May 30 10:54 AM
U need to include these also(select all and deselect all)
&ALL &SAL
2008 May 30 11:10 AM
Hi .
Go to se41
Program SAPLSALV
Status STANDARD
then copy to your STATS 'Z100' after that you can add any buttons that you need 'DELETE'.
FORM SET_PF_STATUS using rt_extab type slis_t_extab.
Set Pf-Status 'Z100'.
ENDFORM. " SET_PF_STATUS
Cheer .