Skip to Content
0

ABAP - filter dropdown values

Nov 28, 2017 at 12:32 PM

57

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Fabian Lupa Nov 28, 2017 at 08:01 PM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks!

That solved my problem!

KR

Vincent

0