‎2020 Oct 19 3:23 PM
How to make input parameter in selection screen visible and invisible based on push button clicked in selection screen
‎2020 Oct 19 3:27 PM
Hello kalleshraj5554
There is plenty of sources on the web for this. For example:
http://abaptopics.blogspot.com/2014/10/making-selection-screen-block-invisible.html
http://seo-and-websites.blogspot.com/2015/02/how-to-hide-parameter-in-selection.html
Kind regards,‎2020 Oct 19 3:31 PM
Hello sir
My requirement is not using radio buttons,
using push buttons, on selection screen
Please share me some blogs regarding
Thank you
‎2020 Oct 19 3:37 PM
Use Google, or any other search engine, and you will find what you're looking for. Examples on selection-screen push buttons:
https://www.trailsap.com/abap-statements/?keyword=selection-screen_pushbutton
https://answers.sap.com/questions/2882571/how-to-insert-pushbutton-in-selection-screen-and-i.html
‎2020 Oct 19 3:39 PM
‎2020 Oct 19 5:51 PM
Use comment Button for your response, Answer option is only for content contributing towards Answer.
‎2020 Oct 19 5:07 PM
Check the help for the selection screen elements. Mainly about USER-COMMAND and MODIF ID options.
I assume the main idea is to hide/show some parameters based on some user choices. The best way I found to do it is to use radiobuttons, with the USER-COMMAND option added, and to add MODIF ID to the parameters who must be shown or hidden based in the options selected.
When the user changes/clicks over a radiobutton with the USER-COMMAND informed, the AT SELECTION-SCREEN OUTPUT event is raised.
There you can check the radiobutton value and use the usual LOOP AT SCREEN to show/hide the rest of the parameters via "if screen-group** = 'xxx'"
Look around, this place has a lots of posts about this issue. I'm writing this from memory(id), so this post is not too accurate. I'm sure you will be flown with links and copies from SAP help's pages.
Good luck!
Edition: fast code snipet, as I had to do it this week:
parameters: p_hide radiobutton group sel user-command ole,
p_hide type matnr modif id mat.
at selection-screen output.
loop at screen.
if screen-group1 = 'MAT' and p_hide = 'X'.
screen-active = '0'.
modify screen.
endif.
endloop.
‎2020 Oct 19 7:14 PM
Just search the Web:
How to make input parameter in selection screen visible and invisible based on push button clicked in selection screen site:sap.com