Application Development 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: 

SQ01 - Include a check box on ABAP query Selection screen

former_member498821
Participant
0 Kudos

Hi Experts,

For my Abap Query, on the selection screen i am planning to include a check box such that if i click on the check box then a field will be displayed in the resulting output . On the other hand if i do not check on i should not be able the field in the output.

Please tell me how do i do this.

Thanks

Venkata Pradeep.

2 REPLIES 2

jogeswararao_kavala
Active Contributor
0 Kudos

1. Your requirement is not possible, instead you can arrange for blank column (values will not be displayed), by the following method.

2. Create a checkbox as explained here in the thread.

3. Then in infoset Extras --> Code tab --> Record Processing section give the following syntax. (suppose the checkbox field name is CB and the filed you want to hide is MARA-NTGEW)

If CB = 'X'.

MARA-NTGEW = ''.

 

Try the above.

KJogeswaraRao

Former Member
0 Kudos

In infoset, Extras code tab

Code section: At selection-screen output

Do something like below:

  IF radiobutton1 = 'X'.    

     LOOP AT SCREEN.      

          IF screen-group1 = 'XXXX'.         "XXX is the filed group name you want to hide., you have to                                                                  find out what is it.

               screen-input = '1'.        

               screen-invisible = '0'.        

               MODIFY SCREEN.      

          ENDIF.    

     ENDLOOP.  

ELSE.   

     LOOP AT SCREEN.     

          IF screen-group1 = 'XXX'.        

               screen-input = '0'.       

               screen-invisible = '1'.       

               MODIFY SCREEN.     

          ENDIF.   

     ENDLOOP. 

ENDIF.