cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR IN SELECT-OPTIONS COMPONENT

Former Member
0 Kudos

Hi Friends,

Currently, I am working on SELECT-OPTIONS component, Variants.

In component controller WDDOINIT, I have got the instantiated the select-options component.

And I have one more pop-up view, in Get_variant action method ,I will be getting the data of Variants and Using the methods set_range_table_of_sel_filed( ) and set_value_of_parameter_filed( ), I am setting the data to Selection-screen.

  • For select-options fileds.

CALL METHOD wd_comp_controller->m_handler->set_range_table_of_sel_field(

EXPORTING

i_id = l_searchparameter-name

it_range_table = l_dref ).

  • for Parameter fileds.

ALL METHOD wd_comp_controller->m_handler->set_value_of_parameter_field(

EXPORTING

i_id = l_searchparameter-name

i_value = l_dref ).

It runs successfully for all the fileds , and after coming out of this method, I am getting an error like

Subnode WDR_SELECT_OPTIONS#COMPONENTCONTROLLER.CONTEXT.BEGDA does not exist.

But in webdynpro, For select-option fileds we will not be creating any context.

Could you please help me, in solving this issue.

Regards,

Xavier.P

Edited by: Xavier Reddy on Jan 20, 2009 11:07 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

sap note has been raised

Alexbat
Explorer
0 Kudos

For information (I had the same problem), you can use the OSS note 1139403

arjun_thakur
Active Contributor
0 Kudos

Hi Xavier,


CALL METHOD wd_comp_controller->m_handler->set_range_table_of_sel_field(
EXPORTING
i_id = l_searchparameter-name
it_range_table = l_dref ).

Put a break point on the method and check what value is passed in i_id field because here we pass the name of the field for which we want to create the range.

Regards

Arjun

Edited by: Arjun on Jan 20, 2009 4:11 PM

Former Member
0 Kudos

Hi Arjun,

I am passing the Attributes like BEGDA, PERNR---etc. and I do see them in debugging.

but still this error rises.

Regards,

Xavier.p

pranav_nagpal2
Contributor
0 Kudos

True you wont be creating any context for select option but you will be displaying some data in the range of that select option somewhere like in any table or drop down... check out there if you have created any context there...........

regards

Pranav

Former Member
0 Kudos

Hi Pranav,

I have stored the Variant In INDX Table.

And using Import statement, i am getting the Varaiants into a internal table and form there to work-area and based on the filed I am setting to Selection-screen fileds.

but no where I have created the Context, I have Created a Context to Hold the variant name, description, or Global.but not for selection-screen fileds

Regards,

Xavier.P

Edited by: Xavier Reddy on Jan 20, 2009 11:34 AM