cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down required for fields in dynamically generated structure

Former Member
0 Kudos

Hi All,

I have an application where i am entering the structure name in the inputfield and dynamically generating the structure on the screen with all the fields of it.

But i need to show a dropdown for a particular field which contains values in its domain (f4) .

what is happening now , suppose i have given structure as SBOOK and i get all the components of the structure now for CUSTTYPE i am getting the f4 help but instead i need a dropdown .....

how can i achieve that ????

hope u understood the requirement ....

Thanks

Haritha

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Haritha ,

did u mean u want to create the dynamic dropdown for the structure created

try this using the class cl_wd_dropdown_by_idx ..

i hope it wud help

regards,

amit

Former Member
0 Kudos

Hi,

Are you using TABLE or ALV elements.

Get the column reference of the TABLE for CUSTYPE.

You can create an object of tyep DRPBYKEY and insert this cell editor.

As it has domain values, You need to set the VALUESET using the IF_WD_CONTEXT_NODE_INFO for that attirbute.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

Thanks for your reply.

I am using the methods odf the class "CL_WD_DEMO_DYN_MODEL" to get the dynamic structure.

I am getting the F4 but i need drop down for the fields which contains the values in the valuerange of its domain.

Haritha

Former Member
0 Kudos

My Question is -

Are these fields part of any TABLE or ALV. Are they inside them or shown individually.

Former Member
0 Kudos

Hi Lekha,

I am not using ALV nor using any table in my layout.

I am having a group element(matrix layout) in my layout to which i will be binding the values of the structure.

Haritha

Former Member
0 Kudos

Check out this link

Here button type is created -

Instaed of that use CL_WD_DROPDOWN_BY_KEY class to create dropdwonbykey.