09-17-2014 8:03 AM
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.
09-18-2014 9:35 AM
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
09-19-2014 8:15 AM
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.