cancel
Showing results for 
Search instead for 
Did you mean: 

Resricting Drop down for displaying value dynamically

mohd_riyajuddin
Participant
0 Kudos

Dear,

Need to restrict  drop down values dynamically based on the value of other field.First I thought I will create a Search help exit and attach that search help exit at Data model level of perticular field. As the value will be populated dynamically based on other field value so this  purpose failed. Second Implemented enhancement spot USMD_UI_EVENT2 on that we can restrict drop down values dynamically by using method GET_ATTR_VALUES_SET. but this BADI is not triggering on below MM application.

I'm using MM data model.

Application : MDS_BS_MAT_OVP

UI configuration : BS_MAT_OVP_LAYOUT_03

If any one have worked other than than this method. Please let me know.

Regards,

Riyajuddin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Mohd,

Can you please elaborate more ?

In which UIBB you want this and for what fields ? Is it standard field? ?

mohd_riyajuddin
Participant
0 Kudos

Hello,

On basic data UIBB, We have Unit of measurement (MEINS)-field on F4 its shows likely 395 entries basically it comes from check table configured at domain level Our MM data model uses that field.

Now I need to restrict so many field based on certain condition Like example,

If My External Material group = HT  on Basic data UIBB  I will display say 5 field on F4 for Uom.

Or If My External Material group = EXT  on Basic data UIBB  I will display say 10 field on F4 for Uom.


This my requirement.

Shall I need to implement Interface as part of feeder class IF_FPM_GUIBB_OVS_SEARCH do coding accordingly or we have some BADI or Method on feeder class to implement this.

Please let me know.

Regards,

Riyajuddin.


prasahtnh_kumar
Explorer
0 Kudos

Hello Mohd,

  Please Redefine OVS methods OVS_HANDLE_PHASE_2, OVS_HANDLE_PHASE_3 and write your code.

Former Member
0 Kudos

Hi Mohd,

Go for OVS help and redefine methods as told above.

Please check section 5.10.2 in below:

To read External Material group in OVS use like below:

DATA: lv_extwg TYPE EXTWG.

      mo_context->get_attribute(
         EXPORTING
           iv_name  = 'EXTWG'
         IMPORTING
           ev_value = lv_extwg
       ).

mohd_riyajuddin
Participant
0 Kudos

Hey,

You are absolutely right we need to follow the step on section 5.10.2 .

Thanks,

Riyajuddin

Answers (0)