Component Usage in Select Options
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
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
Similar Messages
-
Hi all,
I have create a select-options with 5 fields and alv and a button(get list) in webdynpro, i have to retrieve the values into alv from table through select-options by clicking on button.
and i have written a function module for select options. so based on input, the values are fetched from table in function module.
i am getting confused with the coding part, so can anybody tel me the coding part for alv by calling function module nd how to pass the values to function module(i,e select-option fields.)
( written code for select-options in wddoinit)
Thanks all in advanceHi VANI,
I hope you have declared the component usage for select option properly.
Now do as follows:-
1. Add 2 attributes in the tab 'Attribute' to implement select option for a particular field.
Like i want to implement select option in PO_NO ( EKPO-EBELN) & ITEM_NO( EKPO-EBELP).
Declare usage in properties in particular view:-
Declare attributes :- M_HANDLER_Report - Type ref to - IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS_Report - Type ref to - IWCI_WDR_SELECT_OPTIONS
In WDDOINIT :-
create instantiate component usage from code wizard.
then set normal properties for display:-
WD_THIS->M_WD_SELECT_OPTIONS_REPORT = WD_THIS->WD_CPIFC_SELECT_OPTION_REPORT( ).
init the select screen
WD_THIS->M_HANDLER_REPORT = WD_THIS->M_WD_SELECT_OPTIONS_REPORT->INIT_SELECTION_SCREEN( ).
WD_THIS->M_HANDLER_REPORT->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
To assign a field in select option code like below:-
create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER_REPORT->CREATE_RANGE_TABLE( I_TYPENAME = 'EBELN' ). " enter the data element of the field
add a . field to the selection
WD_THIS->M_HANDLER_REPORT->ADD_SELECTION_FIELD( I_ID = 'EBELN' "field name
IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
to add more field proceed as above again with different field.
create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER_REPORT->CREATE_RANGE_TABLE( I_TYPENAME = 'EBELP' ). " enter the data element of the field
add a . field to the selection
WD_THIS->M_HANDLER_REPORT->ADD_SELECTION_FIELD( I_ID = 'EBELP' "field name
IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
Now in particular action by which you want to get values bind to your alv table:-
Declare variable and field symbol to hold values from selection
DATA: RT_PO_NO TYPE REF TO DATA.
DATA: RT_ITEM_NO TYPE REF TO DATA.
FIELD-SYMBOLS: <FS_PO_NO> TYPE TABLE,
<FS_ITEM_NO> TYPE TABLE,
Retrieve the data from the select option
RT_PO_NO = WD_THIS->M_HANDLER_REPORT->GET_RANGE_TABLE_OF_SEL_FIELD(
I_ID = 'EBELN' ).
Assign it to a field symbol
ASSIGN RT_PO_NO->* TO <FS_PO_NO>.
Retrieve the data from the select option
RT_ITEM_NO = WD_THIS->M_HANDLER_REPORT->GET_RANGE_TABLE_OF_SEL_FIELD(
I_ID = 'EBELP' ).
Now use select statement to get data from table
Select < field name > FROM < table name > INTO CORRESPONDING FIELDS OF TABLE < internal table to hold data > WHERE
PO_NO IN <FS_PO_NO> AND
ITEM_NO IN <FS_ITEM_NO> .
Regards,
Monishankar C -
Integrate Freely Programmed Value Help in Select option WDR_SELECT_OPTION
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 AMhi 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
How to integrate a Search Help in a dynamically created Select-Option?
Regards
Srinivas
Edited by: sanasrinivas on Aug 3, 2011 12:06 PM
Edited by: sanasrinivas on Aug 3, 2011 12:10 PM -
Freely Programed Help for select-option field
Hi,
how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
i used parameter i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
Please suggest where i am doing wrong??
Edited by: kranthi kumar on Dec 29, 2010 6:19 PM>
kranthi kumar wrote:
> Hi,
>
> how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
>
> i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
>
> i used parameter i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
>
> View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
>
> Please suggest where i am doing wrong??
>
> Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
Hi Kranthi,
Please help me to understand your design.
Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ? -
Web Dynpro ABAP - Select Option and ALV Component Usage
Hi,
I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
Web Dynpro ABAP - Select Option and ALV Component Usage
In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
I implemented and generated the web dynpro with success but when i execute a test i get a dump on select-option definition.
Note
The following error text was processed in the system ECD : Exception condition "TYPE_NOT_FOUND" raised.
The error occurred on the application server ITAWSECCS01D_ECD_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
I went in debug and the piece of code dumping is:
lt_range_table =
wd_this->m_handler->create_range_table( i_typename = 'S_PROJ' ).
Is there someone who can help me?
Thanks in advance,
Stefano.Hi,
I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
Web Dynpro ABAP - Select Option and ALV Component Usage
In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
I implemented and generated the web dynpro with success but when i execute a test i get
an error as
Note
The following error text was processed in the system EI6 : Exception condition "TYPE_NOT_FOUND" raised.
The error occurred on the application server EC6IDES_EI6_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
I have created a table zmy_table and trying to make USERID field as a select-options.I've written the code as shown below .
data: itab type standard table of zmy_table,
wa type zmy_table.
data:
node_employee type ref to if_wd_context_node,
elem_employee type ref to if_wd_context_element,
stru_employee type wd_this->element_employee ,
item_userid like stru_employee-userid.
navigate from <CONTEXT> to <EMPLOYEE> via lead selection
node_employee = wd_context->get_child_node( name = wd_this->wdctx_employee ).
@TODO handle not set lead selection
if ( node_employee is initial ).
endif.
get element via lead selection
elem_employee = node_employee->get_element( ).
@TODO handle not set lead selection
if ( elem_employee is initial ).
endif.
alternative access via index
Elem_Employee = Node_Employee->get_Element( Index = 1 ).
@TODO handle non existant child
if ( Elem_Employee is initial ).
endif.
get single attribute
elem_employee->get_attribute(
exporting
name = `USERID`
importing
value = item_userid ).
select *
from zmy_table
into table itab
where userid = item_userid.
node_employee = wd_context->get_child_node( 'EMPLOYEE' ).
node_employee->bind_elements( itab ).
Is there someone who can help me and can tell am i doing wrong?
Thanks in advance,
Dheeraj -
Passing select options for component usage
Hi,
I have a working component that has a selection screen with three select options on.
I want to use this component from a new component (as a drill down from an ALV list in the new component).
Anyone know of a sample in SAP or a blog anywhere that provides a sample of how to do this?
Cheers,
RossHi,
you can refer http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm
and http://www.****************/Tutorials/WebDynproABAP/Reusability/demo.htm
Thanks,
Chandra -
Select-options are not destroyed while calling view of used component popup
Hi Friends ,
I'm facing a unique problem. I'm calling a view of a component within another component. the view that I'm calling has some select-options. When I close the popup window ( using close 'X' of popup ) and then try to reopen the popup system give me a dump. I debugged and found that select-options are not destroyed by system and once it tries to create the select-options again it dumps because they are already there.
This is the source code extract of that dump for your reference .
1 method if_wd_select_options~add_selection_field.
2
3 data:
4 lr_table_descr type ref to cl_abap_tabledescr,
5 lr_struct_descr type ref to cl_abap_structdescr,
6 lr_value_field_descr type ref to cl_abap_elemdescr,
7 added_field like line of mt_added_fields,
8 dfies type dfies,
9 description type string,
10 complex_restrictions type if_wd_select_options=>t_complex_restrictions.
11
12 field-symbols:
13 <it_result> type index table.
14
15 * check of someone wants to add a field that already exists
16 read table mt_fields
17 with key m_id = i_id
18 transporting no fields.
19 if sy-subrc = 0.
20 * might be deleted - recreating a field with different setting is of course allowed
21 read table mt_all_removed_fields
22 with key table_line = i_id
23 transporting no fields.
24 if sy-subrc <> 0.
>>> message x000(00).
26 endif.
27
28 * remove the existing field in order to avoid duplicates
29 delete table mt_fields with table key m_id = i_id.
30 endif.
I've already tried using REMOVE_ALL_SEL_SCREEN_ITEMS( ) method of interface IF_WD_SELECT_OPTIONS before creating new elements ( select-options ). If any one can help me in this It would really help and I'll appreciate it.
Thanks in advance,
LaeeqI've sloved the problem
-
Select-Options in web ui component
Hi All,
I am new to crm7.I need to create the select-options in web ui component(BSP_WD_CMPWB).Please let me know the how to do this.
Thanks,
SanthoshHi Santosh
do one thing access the BP_HEAD_SEARCH component, from there access the Main search view there go to EH_ONSEARCH method . Here in this method it is clearly given how to instantiate and how to use this method, for your reference I'm giving here again
data: lr_advanced_query TYPE REF TO cl_crm_bol_dquery_service,
lr_bp_head_coll type ref to if_bol_bo_coll.
1) lr_advanced_query = cl_crm_bol_dquery_service=>get_instance( 'BuilHeaderAdvancedSearch' ).
Get the instance of cl_crm_bol_dquery_service instance .
2) lr_advanced_query->add_selection_param( iv_attr_name = 'PARTNER'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = lv_partner
iv_high = '' ).
On the returned instance (lr_advanced_query) call the method add_selection_param ( ) method
3) lr_bp_head_coll = lr_advanced_query->get_query_result( ).
call the query result
after doing the above steps , the view coding will support you to build the screen , it will looks like below.
<thtmlb:advancedSearch id = "advs0"
fieldMetadata = "<%= controller->GET_DQUERY_DEFINITIONS( ) %>"
header = "<%= SEARCH->get_param_struct_name( ) %>"
fieldNames = "<%= controller->GET_POSSIBLE_FIELDS( ) %>"
values = "//SEARCH/PARAMETERS"
maxHits = "//SEARCH/MAX_HITS"
ajaxDeltaHandling = "false"
onEnter = "search" />
remember your controller class must inherit from CL_BSP_WD_ADVSEARCH_CONTROLLER , other wise advanced search controller functionality will not work, for this pls check the inheritace of main search view controller class.\
Thanks & Regards
Raj
after doing this -
ERROR IN SELECT-OPTIONS COMPONENT
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 AMHi 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 -
Select-options for date field.
Hi all,
i need to give select options for Date field.How can i give that.
Thanks & Regards
Ravi.Hi Ravi,
Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
3. View: Properties Tab:Create Controller Usage and select
SELECT_OPTIONS WDR_SELECT_OPTIONS
SELECT_OPTIONS WDR_SELECT_OPTIONS INTERFACECONTROLLER
4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
5. View Attributes Tab: Create Following two attributes:
M_HANDLER type IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
7:CREATE_SELECTION_SCREEN: Write following Code:
* Data Declaration
data:
lt_range_table TYPE REF TO DATA.
data:
lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
* Execution
* Create Used Component
lr_componentusage = wd_this->wd_cpuse_select_options( ).
if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
lr_componentusage->create_component( ).
endif.
* Get pointer to interface controller of select options
wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
* initialize selction screen
wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
* Create Range Table for: Date
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'DATS'
RECEIVING
RT_RANGE_TABLE = lt_range_table.
* Add Selection Field for: Date
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = '<name of date attribute in the context>'
* I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
* I_DESCRIPTION =
* I_IS_AUTO_DESCRIPTION = ABAP_TRUE
IT_RESULT = lt_range_table
* I_OBLIGATORY = ABAP_FALSE
* I_COMPLEX_RESTRICTIONS =
* I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
* I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
* I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
* I_VALUE_HELP_ID =
* I_VALUE_HELP_MODE =
* I_VALUE_HELP_STRUCTURE =
* I_VALUE_HELP_STRUCTURE_FIELD =
* I_HELP_REQUEST_HANDLER =
* I_LOWER_CASE =
* I_MEMORY_ID =
* I_NO_EXTENSION = ABAP_FALSE
* I_NO_INTERVALS = ABAP_FALSE
* I_AS_CHECKBOX = ABAP_FALSE
* I_AS_DROPDOWN = ABAP_FALSE
* IT_VALUE_SET =
* I_READ_ONLY = ABAP_FALSE
* I_DONT_CARE_VALUE =
* I_EXPLANATION =
I_TOOLTIP = 'Select Date'.
8: To Fetch Data entered in the selection field, write following code on action of button click:
data:
lt_date type REF TO DATA.
FIELD-SYMBOLS:
<fs_date> TYPE table.
* retrieve Date from Select Options
CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = '<attrib_name>'
RECEIVING
RT_RANGE_TABLE = lt_date.
* assign Date Field Symbol
ASSIGN lt_date->* to <fs_date>.
9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of WDR_SELECT_OPTIONS component.
Regards,
Reema. -
Select-options in WEB UI View on SAP CRM7
Hello,
I wanted to know how to make a u2018select-optionu2019 on a view in Web UI on CRM7.
Is there a standard BSP application that I can use in component usage for this?
I need to have show only one value but for one field I may have several values filled like a multivalues in select-options as in Transaction SE16.
I can't use an advanced search page because for some criteria I can have more 100 different values.
Tank you for your response.Thank you Kiran for your response, but you misunderstand my question.
In my process I can't use a ADVANCED SEARCH PAGE for these reason :
- the display of fields depends on a value selected from a dropdown list on a first view
- Some fields can contain multiple values (value list) not a range value like Between, but i can't show all theses values in a view like in an ADVANCED SEARCH PAGE
I need to know if exist a standard BSP application that can used in USAGE COMPONENT for my specific BSP application like a Popup to put several values and associate this value list to a field of my specific view.
Regards.
David Méloux -
Select-options in Webdynpro abap
Hi,
I want to use select options in webdynpro abap ,I checked links available in net but want a simple step by step procedure .
-SandeepHi,
What do you mean by simple steps? You need to write little code to add select options in WDA. You can check this wiki for reference: Web Dynpro ABAP - Complex select-options component usages - Code Gallery - SCN Wiki
And there are lot more documents available in SCN. search here
Regards,
Kiran -
Reusing select option in different tabstrips of same view
Hi Experts,
I have a view. In this i have two tabstrips namely tab1 and tab2.
I have created one select option and i am using it twice inside (two fields- one for date and one for register no.) one view controller of tab1.
Now is it possible to use the same select option twice inside tab2. Note that here i have to create another view controller for tab2.
Can u plz explain in details.
Thanks in advanceHi,
When you create the 2 viewcontainer Ui elements inside the 2tabs repsectively. Use the same instance of the Select options
in both tabs would throw the error that same instance of Selectoptions already exists.
You need to create the 2 select options instances, i mean Component usages to achieve the same.
Is this dynamic. I mean embeding view inside the view container of Window context is dynamic or static.
Regards,
Lekha. -
Select-Options and check box on Selection Screen
Hi Guru's,
I have to develop a webdynpro report(static). I have a combination of select options and checkboxes on the selection screen. Can you please help me how to design this static selection screen.
Thanks,
PradeepHi Pradeep,
WDP ABAP does not directly provide the selection screen options as in ABAP programming.
You can achieve the selection screen functionality using the WDR_SELECT_OPTIONS component usage. Go through the WDP component WDR_TEST_SELECT_OPTIONS.
Regards
Wenonah -
Requirement to maintain select-options for multiple fileds in webdynpro aba
Hello Gurus,
We have a requirement to maintain select-options for multiple fileds in webdynpro abap.
now we are able to create select-options for a single field using wdr_select_options componet usage.
how can we achive this select-options feature for multiple fields.
Could anyone please suggest solutions?
and if possible send me the sample code for this requirement.
Thanks in Advance for your replies.
Regards,
ShyamHi,
Nothing different for more fields, same. some declaration changes.
For example code i am using.. in WDDOINIT method.
TYPES:
fiscal_year TYPE RANGE OF GJAHR,
S_KUNNR TYPE RANGE OF J_3RS_KUNNR,
S_VKORG TYPE RANGE OF VKORG_RAN,
status type PVWTY-RETPA,
ty_r_date TYPE RANGE OF s_date,
ty_s_date TYPE LINE OF ty_r_date.
DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_cmp_sel_opt( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
* Reference variable used instantiate the select-options component
DATA
lr_cmp_usage TYPE REF TO if_wd_component_usage.
* Variables used to create the select-options fields and
* define its initial values
DATA:
lr_field TYPE REF TO data,
ls_date TYPE ty_s_date.
FIELD-SYMBOLS:
<fs_field> TYPE ANY,
<fs_range> TYPE INDEX TABLE.
* Instantiate the select-options component
lr_cmp_usage = wd_this->wd_cpuse_cmp_sel_opt( ).
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
lo_interfacecontroller = wd_this->wd_cpifc_cmp_sel_opt( ).
wd_this->m_sel_opt = lo_interfacecontroller->init_selection_screen( ).
data : vhelp type wdy_md_value_help_mode_enum .
* Sets the helper reference
wd_this->m_sel_opt1 = wd_this->wd_cpifc_cmp_sel_opt( ).
wd_this->m_helper = wd_this->m_sel_opt1->init_selection_screen( ).
* Hide the standard select-options components.
wd_this->m_helper->set_global_options(
i_display_btn_cancel = abap_false
i_display_btn_check = abap_false
i_display_btn_reset = abap_false
i_display_btn_execute = abap_false
lr_field = wd_this->m_helper->create_range_table( `KUNNR` ).
wd_this->m_helper->add_selection_field(
i_id = `KUNNR`
I_DESCRIPTION = 'Customer Code'
* i_within_block = `BL01`
it_result = lr_field ).
FREE lr_field.
lr_field = wd_this->m_helper->create_range_table( `VKORG` ).
wd_this->m_helper->add_selection_field(
i_id = `VKORG`
I_DESCRIPTION = 'Sales Organization'
* i_within_block = `BL01`
it_result = lr_field ).
FREE lr_field.
Go through this..
http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages
Cheers,
Kris.
Maybe you are looking for
-
HT1198 How can I get a volume to mount on startup?
mcp 10.8.2 (june 2012), latest iPhoto I followed article, created volume, will not automount, must go to disk utility to 'attach', then open iPhoto For other users it does not even show up on disk utility....library will not open
-
Good nigth! I have to do a job in what I have to read integer numbers from the standard input. When the user wants to finalize entering numbers, he indicates it with a EOF (end of file). I want to know how to do that. What is the representation of th
-
Cisco Prime: Event Larm Port 'x' is down on device.
Hi, I'm writing regarding; event-larms; that is reporting from Cisco Prime; connected to controller. Interfaces is reporting via event-larm; that they are down. "Virtual Domain: ROOT-DOMAIN PI has detected a change in one or more alarms of category C
-
Console logging best practices?
All, I just had a guest "LDom" crash. There was no system crash dump recovered and nothing in /var/adm/messages. Is there a best practice for sending virtual console output to some sort of log server? Any insight would be appreciated. Regards, Gene
-
Support dates GRC 5.2 & 5.3
Hi, I am trying to find details of the dates up to which it is expected that GRC 5.2 and 5.3 will be supported. If anybody has information on this or where I can find out I would be grateful. Thanks, Gary