cancel
Showing results for 
Search instead for 
Did you mean: 

How to deal with four select-options

Former Member
0 Kudos

Hi Experts,

I have one requriment in my selection screen of web dynpro abap I  have one input fields and one drop down and four select options

and I have to hide the select-options based on the conditions which user is selected in drop down

how deal with this functionally

and secondly how  to bind more then one select-options in BIND_TABLE.

i am pasting here code for one select option, please help me to modified this for Four select options

  DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
  DATA: RT_CARRID TYPE REF TO DATA.
  DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
  DATA: WSFLIGHT TYPE SFLIGHT.
  FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
* Retrieve the data from the select option
  RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
* Assign it to a field symbol
  ASSIGN RT_CARRID->* TO <FS_CARRID>.
  CLEAR ISFLIGHT. REFRESH ISFLIGHT.
  SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                       WHERE CARRID IN <FS_CARRID>.
  NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
  NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).

Need the valueable help.

Thanks in advance.

Prakhar

Accepted Solutions (0)

Answers (3)

Answers (3)

Shivesh
Advisor
Advisor
0 Kudos

Hi Prakhar,

    The way u r handling single select option, same way u can handle multiple select options.

Regard's,

Shivesh Ranjan.

Former Member
0 Kudos

Hi Prakhar,

To hide the Select-options go through this post where i have already discussed  about this.

http://scn.sap.com/thread/3244902

Hope this help you.

Regards

Madhukiran M.

amy_king
Active Contributor
0 Kudos

Hi Prakhar,

You can control the visibility of a select-option's ViewContainerUIElement by binding its visible property to a context attribute. Then in the dropdown's onSelect event, you can write your action handler method to set the bound context attribute to either true or false.

Cheers,

Amy