‎2019 Sep 18 1:52 PM

Here I want to keep preview button in invisible mode .Requirement is Whenever I select multiple records manually in table control at that time the preview button will be invisible. How to do this?
‎2019 Sep 18 2:12 PM
Assuming Classic Dynpro:
1. In the PAI, interrogate the table control data ITab for multiple check marks = ABAP_TRUE.
2. If found, set flag in PAI to indicate "turn off the button".
3. Set navigation back to the PBO of the screen.
4. In PBO,interrogate the flag set in PAI.
5. If flag is set to "turn off the button", change the attributes of the button to "invisible".
‎2019 Sep 18 2:20 PM
‎2019 Sep 18 2:25 PM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area: "Before answering You should only submit an answer when you are proposing a solution to the poster's problem"
‎2019 Sep 18 2:27 PM
If you want to make the button "preview" invisible first, and if the user selects one line in the table control make immediately the button "preview" visible, you can't do that because the manual selection or deselection of a line in a table control doesn't trigger a "PAI-PBO roundtrip".
So the only solution is to let the button "preview" always visible.
Or you use another technology (UI5).