Skip to Content

ABAP - filter dropdown values

Hi Experts,

I would like to filter the dropdownvalues of the field "Grouping" in trasnaction BP:

during debugging, I found the method SET_DROPDOWN_VALUES of class CL_BUS_ABSTRACT_SCREEN.

method SET_DROPDOWN_VALUES .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
              retfield  = iv_field_name
              value_org = 'S'
         TABLES
              value_tab = it_dropdown_values
         EXCEPTIONS
              OTHERS    = 0.
ENDMETHOD.

based on the inputfield iv_field_name I can do my filtering based on a authority check.

But is this the place to do this?

Is there another way to do this?

Is there a badi for this?

KR,

Vincent

clipboard01.jpg (69.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 28, 2017 at 08:01 PM

    BAdI BUPA_NUMBER_GROUP should be what you are looking for.

    In my experience it allows you to remove various entries of that dropdown menu. You cannot however disable the "empty" entry, i. e. selecting none, which will always cause the default number group to be used.

    Add comment
    10|10000 characters needed characters exceeded