on 12-14-2009 12:44 PM
Hi,
I am using Freely Programmed Search help and I created a component for provision of F4 values.
This Component works fine Individually.
But when I am using this component in another component The pop up I am getting is a Blank.
Please help me in this issue
It is impossible to say what is wrong without knowing more about your component. I suspect there is something wrong in the processing, but since we know absoutely nothing about your component, how could we possibly begin to diagnose the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>Could you please let me know What info I must provide so that you could help me.
Well you haven't told us anything yet. How are you testing standalone? How is you data selection performed? Do you have the IWD_VALUE_HELP component interface implemented? Are you using the SET_VALUE_HELP_LISTENER method of the interface? What internal processing are you doing with the LISTENER object? Basically what is your component supposed to be doing?
HI Thomas,
How are you testing standalone?
Yes I am testing by directly executing the Application in the component.
I created the time component for providing Value help , I created a application for it and its working fine.
but when I am using it in another its not working showing just a blank pop up.
How is you data selection performed?
I have a table which will be filled using select options for a Date range.
In the table I have the Time field for which I have to provide the time Value Help.
after providing the Values I have to Save to database
Do you have the IWD_VALUE_HELP component interface implemented? Are you using the SET_VALUE_HELP_LISTENER method of the interface? What internal processing are you doing with the LISTENER object?
I have done exactly the same as you described in the Document.
code of my Set_value_help_listener Method
wd_this->value_help_listener = listener.
IF wd_this->value_help_listener->f4_attribute_info-rtti->type_kind NE 'T'.
DATA: error TYPE string.
error = wd_assist->if_wd_component_assistance~get_text(
key = 'E01' ).
* get message manager
DATA: l_current_controller TYPE REF TO if_wd_controller,
l_message_manager TYPE REF TO if_wd_message_manager.
l_current_controller ?= wd_this->wd_get_api( ).
l_message_manager =
l_current_controller->get_message_manager( ).
* report message
l_message_manager->report_fatal_error_message( message_text = error ).
ENDIF.
DATA: item_time TYPE syuzeit.
wd_this->value_help_listener->f4_context_element->get_attribute(
EXPORTING name = wd_this->value_help_listener->f4_attribute_info-name
IMPORTING value = item_time ).
DATA: node_internal_node TYPE REF TO if_wd_context_node,
elem_internal_node TYPE REF TO if_wd_context_element,
stru_internal_node TYPE if_componentcontroller=>element_internal_node .
* navigate from <CONTEXT> to <INTERNAL_NODE> via lead select
node_internal_node = wd_context->get_child_node(
name = if_componentcontroller=>wdctx_internal_node ).
* get element via lead selection
elem_internal_node = node_internal_node->get_element( ).
* get all declared attributes
elem_internal_node->get_static_attributes( IMPORTING static_attributes = stru_internal_node ).
stru_internal_node-time = item_time.
* set all declared attributes
elem_internal_node->set_static_attributes( EXPORTING static_attributes = stru_internal_node ).
me->set_ddlb_values( ).
Basically what is your component supposed to be doing?
My component has a Table and in one of columns I have a time field . I need to Provide value help for that field.
Hope I am clear
Regards
Edited by: SAP LEARNER on Dec 14, 2009 2:28 PM
What window did you create the test application for? The interface should create a window named WD_VALUE_HELP that is marked as an interface window. Make sure that this window has your view embedded within it.
Also if you are using SET_VALUE_HELP_LISTENER to get the soucre values, then how are you able to test OK standalone? This object won't be populated as you test.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.