‎2009 Jun 22 11:50 AM
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.
‎2009 Jun 22 11:58 AM
‎2009 Jun 22 11:58 AM
‎2009 Jun 22 12:17 PM
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.
‎2009 Jun 22 1:54 PM
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
‎2009 Jun 22 2:22 PM
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
‎2009 Jun 22 3:05 PM
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