cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Freely Programmed Value Help in Select option WDR_SELECT_OPTION

Former Member
0 Kudos

Hello All,

I have created Freely Programmed Value Help name (ZVALUE_HELP) by using IWD_VALUE_HELP.I have develop an application(ZSELECT_OPTION) which uses the resubale component WDR_SELECT_OPTION for select option.i want search help for one of my select option input field .

i wrote the following code.


*initalise the used component
data lo_cmp_usage type ref to if_wd_component_usage.

lo_cmp_usage =   wd_this->wd_cpuse_ci_serach_help( ).
if lo_cmp_usage->has_active_component( ) is initial.
  lo_cmp_usage->create_component( ).
endif.

* add a new field to the selection
  WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
  I_ID = 'ZCI_STATUS'
  IT_RESULT = LT_RANGE_TABLE
  I_READ_ONLY = READ_ONLY
  I_OBLIGATORY = ABAP_FALSE
  I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_APPLDEV
  I_VALUE_HELP_ID   = 'ZVALUE_HELP'
).

when i execute the select option application n click on search help button i got error "Component usage ZVALUE_HELP does not exist.

Edited by: Abhilasha Dahare on Aug 3, 2011 11:10 AM

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

hi Abhsilasha,

I think your code is some thing wrong.

you have to assign free value help like below method.

in the attribute( the select option field ) properties, you will find input help mode property, in that select 'freely programmed'.

then you willl get some more fields, there you have to provide ZVALUE_HELP

of follow reema suggestion in below link

).

Regards

Srinivas

Edited by: sanasrinivas on Aug 3, 2011 12:06 PM

Edited by: sanasrinivas on Aug 3, 2011 12:10 PM

Former Member
0 Kudos

hi Srinivas

i didnt understand the number 121 and 131.what are they releted to?

Former Member
0 Kudos

solved my problem.

Answers (0)