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

ALV GRID Output

Former Member
0 Likes
785

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
738

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 .

5 REPLIES 5
Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
738

U need to include these also(select all and deselect all)

&ALL &SAL

Read only

Former Member
0 Likes
739

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 .