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 problem

Former Member
0 Likes
638

hello, my problem is the following, I removed the buttons alv but not all, my first button, I get that is to eliminate line. but as for me cree method of inserting the line are not together and my question is whether there is any possibility of collecting these buttons. because now the delete button and other buttons I have created by default and those buttons can not delete.

thank you all.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
603

This message was moderated.

5 REPLIES 5
Read only

Former Member
0 Likes
604

This message was moderated.

Read only

0 Likes
603

I created my buttons and I work,

Sap creates bottons by default, and the new that I created, sap put the last and I want to put first.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
603

Hi,

I guess your issues is to put your customed defined buttons first and then append the standard SAP buttons.

If so, then follow the below:-

Goto SE41, create a pf-status for your alv report program.

On the next screen, click menu EXTRAS --> click option ADJUST TEMPLATES and select radiobutton LIST VIEWER --> you will get all standard buttons of alv in the pf-status.

Delete the unwanted buttons and also you can add new buttons.

Keep the cursor on the very first button and by using the ADD button on the toolbar insert a space for your own button.

Activate pf-status --> and apply in alv program.

Hope this helps you.

Please let me know if you need further help...

Regards,

Tarun

Read only

Former Member
0 Likes
603

Hi,

I think you want to add some custom buttons to the SAP standard SAP menu.

To add custom button to standard menu,

1) Go to transaction SE41

2) Click on Status button (Copy status Ctrl+F6)

3) Give from program name as 'SAPLSLVC_FULLSCREENu2019 and Status Name

as u2018STANDARD_FULLSCREENu2019

4) Give the name of your report and pf-status name in to block

5) Press enter

6) In the next screen again press enter (Copy)

7) The custom status will now be created by copying the standard status

😎 Now you can remove the exsisting buttons or add the custom buttons by clicking on change button

Hope this will help you.

Regards,

Deepa Kulkarni

Read only

0 Likes
603

I have solved:

FORM f_create_button USING pi_function

pi_text

pi_icon

CHANGING po_object TYPE REF TO

cl_alv_event_toolbar_set.

DATA: ls_toolbar TYPE stb_button.

CLEAR ls_toolbar.

MOVE pi_function TO ls_toolbar-function.

MOVE pi_icon TO ls_toolbar-icon.

MOVE pi_text TO ls_toolbar-quickinfo.

MOVE ' ' TO ls_toolbar-disabled.

*before

  • append ls_toolbar TO po_object->mt_toolbar.

*now

INSERT ls_toolbar INTO po_object->mt_toolbar INDEX 1.

Thanks