Application Development and Automation 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: 
Read only

ABAP - filter dropdown values

VincentBloem
Participant
0 Likes
998

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

1 ACCEPTED SOLUTION
Read only

fabianlupa
Contributor
0 Likes
865

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.

2 REPLIES 2
Read only

fabianlupa
Contributor
0 Likes
866

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.

Read only

0 Likes
865

Thanks!

That solved my problem!

KR

Vincent