SAP: You can hide the Check Box in selection screen of the ABAP Report

I usually wondered (and probably you too would) why would someone need to hide checkboxes on the selection-screen. If you don't need it, then just delete it. What's the big deal in it!.
But, after I got to do this recent assignment of handling certain changes to a report where I did not have the option of deleting the checkboxes from the selection-screen, the method of hiding them came in handy.
 The way to achieve this is really very simple (though it took hours out of my life to figure it out).
Usually we declare our checkboxes as shown below:
PARAMETERS: p_chkbx AS CHECKBOX.
Note that it is not allowed to include the formatting option NO-DISPLAY here. It throws an error message asking you to delete this formatting option.
So we definitely have to come up with a workaround.
Another very interesting way of declaring a checkbox is:
PARAMETERS: p_chkbx TYPE xfeld.
This too creates a checkbox on the selection screen; and it is very much possible to add our formatting option NO-DISPLAY here.
Just declare the checkbox as below to hide it.
PARAMETERS: p_chkbx TYPE xfeld NO-DISPLAY.
Simple. Isn't it?
Author: Dawood.S.Ghasletwala
Source: sdn. sap. com

3 comments:

  1. IT IS NOT WORKING

    ReplyDelete
  2. SORRY , I DIDNT TEST PROPERLY, IT IS FINELY WORKING, TNX FOR THIS POST

    ReplyDelete