cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Experts

sunilcrm
Explorer
0 Kudos

I am Sunil Kumar ,

                  recently  i got an issue .i e ,there are 3 drop down fields in web ui .say field1 is Country ,f2 is  state,f3 is district,if i select a value in f1  related f1 the values should appear in f2,if select  a value in f2, related to value in f2 some values should apppear in f3(if i select india in f1,all the states in india should appear in f2,if i select New Delhiin f2 ,then all  the Districts should appear in f3)


i don't know how to achieve this requirement,

Ca anyone suggest me please.......................

Accepted Solutions (1)

Accepted Solutions (1)

deepika_chandrasekar
Active Contributor
0 Kudos

Hi Sunil,

You can do it in GET_V method the attributes.

1.f1 field give all values related to in lt_ddlb and proceed

2. in f2 GET_V method get the f1 field value and filter the states according country and states for the selected country into lt_ddlb and proceed

3. same in f3 GET_V method get the f2 value and filter districts and fill lt_ddlb

lv_f1 = lr_cust_h->get_property_as_string( iv_attr_name = 'F1' ).

CREATE OBJECT lr_ddlb
    EXPORTING
      iv_source_type = 'T'.

  lr_ddlb->set_selection_table( it_selection_table = lt_ddlb ).
  rv_valuehelp_descriptor = lr_ddlb.

Regards,

Deepika.

sunilcrm
Explorer
0 Kudos

Thank you So much Deepika.

actually I am new  to SAP CRM ,how to interlink those 3 fields.

Regards

Sunil Kumar SA

deepika_chandrasekar
Active Contributor
0 Kudos

You need to check from where(table) you want to read values for those fields. there you can interlink these fields.

Regards,

Deepika.

Answers (0)