cancel
Showing results for 
Search instead for 
Did you mean: 

Component Usage in Select Options

vishalc_kava
Explorer
0 Kudos

Hi

I need to bring Profit Center Hierarchy in Select Options of Webdynpro for Profit Center field.

For this have created component Usage with hierarchy which works fine in case of input field but I want to make it work on select options field for using the select options functionality.

Pls suggest if there is any way by which we can link component usage on Select Options field.

Regards

Vishal

Accepted Solutions (0)

Answers (1)

Answers (1)

Madhu2004
Active Contributor
0 Kudos

In the method ADD_SELECTION_FIELD you have parameter I_VALUE_HELP_ID. Pass the component usage value to this paramter and I_VALUE_HELP_TYPE value as IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_APPLDEV(Freely programmed value help)

Former Member
0 Kudos

Hi Madhu,

When i am trying this way, it is giving me the following dump

"Component usage PRCTR_F4 does not exist"

The component PRCTR_F4 is there in the Component use list.

Also only OVS can be used for select option?? b'coz hwen i debugg the application whe using this search help, i can see only OVS as component usage.

Waiting for your reply....

Thanks & Regards,

Arvind

Sharathmg
Active Contributor
0 Kudos

You may have to create the component usage in the init method.

Use similar to below code to create a component:

l_ref_cmp_usage = wd_this->wd_cpuse_selec_scr_usage( ).

IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.

l_ref_cmp_usage->create_component( ).

ENDIF.

Regards,

Sharath

Former Member
0 Kudos

Hi Sharath,

I have already done that.

Any other suggestions...

Thanks

Arvind