cancel
Showing results for 
Search instead for 
Did you mean: 

Select-options Code in WDDOINIT

Former Member
0 Kudos

HI ,

The code which we put in the WDDOINIT metod is as follows



  l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).                " What is  WD_CPUSE

  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.                  "What is active component
    l_ref_cmp_usage->create_component( ).
  ENDIF.

  lr_interfacecontroller = wd_this->wd_cpifc_select_options( ).             " What is WD_CPIFC

  wd_this->m_select_options =
          lr_interfacecontroller->init_selection_screen( ).

could any one please explain what is happening actually with the above code

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

the first three line

l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).               
 
  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.                  
    l_ref_cmp_usage->create_component( ).

of your code is creating the used component.

then this line

lr_interfacecontroller = wd_this->wd_cpifc_select_options( ).

is used to get a pointer to the interface controller of the select options component.

regards,

anand

Former Member
0 Kudos

Hi,

Can u explain what is meant by creating a component.

As the Select options component is already present,

Former Member
0 Kudos

hi ,

it means USING the component which we have declared for SELECT OPTIONS

rgds,

amit

Former Member
0 Kudos

HI Saini,

Then what is the CREATE we do in the Properties tab of the View

where we get something like below



SELECT_OPTIONS	WDR_SELECT_OPTIONS	                    
SELECT_OPTIONS	WDR_SELECT_OPTIONS	INTERFACECONTROLLER

regards

Former Member
0 Kudos

Hi,

go thru the tutorial on component usage where you can get the steps on doing it.

search for tutrial6 - component usage .

use this link to get the tutorial 6 on component usage

[original link is broken]

regards,

anand

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

SELECT_OPTIONS	WDR_SELECT_OPTIONS	                    
SELECT_OPTIONS	WDR_SELECT_OPTIONS	INTERFACECONTROLLER

this means that we are re using the comp WDR_SELECT_OPTIONS in the view of your component.

to access all the methods of the component WDR_SELECT_OPTIONS we need to add it in the view which u want to use selection options methods

i.e you are using the method add_selection_field to populate the field on th screen.

to access this method we need to embed them in the view.

Priya

Former Member
0 Kudos

HI,

In the tutorail there is a component TECHED_05S_CUSTOMER_DATA to be used.

But its not present in my system.

could you please help.

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

you can refer this tutorial

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e&overridelayout=true]

Priya

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

HI,

Amit

The document downloaded is getting encoded , and It is not readable.

Please help me

Former Member
0 Kudos

hi

the tutorial is getting opened for me

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d&override...

or search for

WDA Tutorial II: Using Select Options in a WDA Application

on SDN , the code is expalined step by step in the tutorial

cheers:)

regards,

amit