‎2008 Jul 17 7:57 AM
Hello Experts,
I want to add a button near the execute button on the selection screen.Based on this button I would be displaying some radio buttons on the selection screen.
Kindly help me with some sample code as to how can i go about in adding a button near the execute button of the selection screen
Definately the points would be rewarded for helpful answers
‎2008 Jul 17 8:03 AM
Hi,
Try this code:
&----
*& Report ABAPMASTER
*&
&----
*&
*&
&----
REPORT ABAPMASTER.
TABLES SSCRFIELDS. "Fields on selection screens
SELECTION-SCREEN FUNCTION KEY 1. "button on the application toolbar
SELECTION-SCREEN FUNCTION KEY 2. "button on the application toolbar
PARAMETERS P_DAT LIKE SY-DATUM.
INITIALIZATION.
Populating button text
MOVE 'Push Button 1' TO SSCRFIELDS-FUNCTXT_01.
MOVE 'Push Button 2' TO SSCRFIELDS-FUNCTXT_02.
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'FC01'.
PERFORM PUSH_BUTTON_CODE_1.
ELSEIF SSCRFIELDS-UCOMM = 'FC01'.
PERFORM PUSH_BUTTON_CODE_2.
ENDIF.
START-OF-SELECTION.
END-OF-SELECTION.
&----
*& Form Push_button_code_1
&----
text
----
FORM PUSH_BUTTON_CODE_1.
ENDFORM. "Push_button_code_1
&----
*& Form Push_button_code_2
&----
text
----
FORM PUSH_BUTTON_CODE_2.
ENDFORM. "Push_button_code_2
Regards,
Joy.
‎2008 Jul 17 8:07 AM
Hi
The structure used to add buttons to the application tool bar on Selection Screen is "SSCRFIELDS".
See the below program in SE38 on how to add the buttons on application tool bar in a Selection Screen ..
Prgoram Name: GP6VZKL33C4FMI8GIKF0IWR7THB400
Hope this would help you.
Murthy
‎2008 Jul 17 8:24 AM
Hello Experts,
Actually I want to add an icon just next to the execute button and write the code in it.
So please help how can add an icon button near to execute button of selection screen.
Also as stated earlier ..I want to write a code so that when the button is clicked then i can display some hidden radio buttons.
Point will be rewarded.
‎2008 Jul 17 8:57 AM
Hi,
Try this code:
REPORT zABAPMASTER.
TABLES SSCRFIELDS. "Fields on selection screens
type-pools : icon.
SELECTION-SCREEN FUNCTION KEY 1. "button on the application toolbar
PARAMETERS P_DAT LIKE SY-DATUM.
INITIALIZATION.
Populating button text
MOVE '@01@' TO SSCRFIELDS-FUNCTXT_01.
" @01@= Value for icon can be found from
" type-pools : icon
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'FC01'.
PERFORM PUSH_BUTTON_CODE_1.
ENDIF.
START-OF-SELECTION.
END-OF-SELECTION.
&----
*& Form Push_button_code_1
&----
text
----
FORM PUSH_BUTTON_CODE_1.
ENDFORM. "Push_button_code_1
‎2008 Jul 17 8:31 AM
Hi,
Please refer SAP standard demo program demo_sel_screen_function_key.
Thanks,
Sriram POnna.
‎2022 Nov 25 11:10 AM
‎2022 Nov 26 4:06 PM
‎2022 Nov 28 7:18 AM
Hi experts,
I have tried with all the solutions which is provided to me. These answers already existing. But it's not fulfilling my requirement.kindly provide me the solution for my requirement.
in the highlighted place i want to add my button. i tried with Standard PF status. But it's over writing execute button and it's showing unnecessary buttons also kindly check in below screen shot for reference. And also standard back button is not working even. Kindly help me on this issue to resolve.

‎2022 Nov 28 7:23 AM
kindly provide me the solution for my requirement. I want to add an icon just next to the execute button at highlighted place. kindly do the needful.

‎2022 Nov 28 5:41 PM
Hi,
Implementing CUA enhancement as well as creating report "ZRPT_ABCD" with customized button.
enhancement ...
set pf-status 'ZF_ABC' of program 'ZRPF_ABCD' excluding cua_exclude.
endenhancement.
‎2022 Nov 28 10:00 AM
i am not the person who worked previously on this requirement.