Skip to Content
author's profile photo Former Member
Former Member

Issue in Select Options

Hi all,

Iam doing a development in which iam using select option component. i have 4 selection para meters. When i use the Component iam getting 4 default buttons RESET, COPY etc.

Is this 4 buttons mandatory? i also know we can remove the buttons via abap code but stil when i remove Copy button my select options doesnt get any input from screen . Same PO when i use with Copy button (after pressing copy button) its recognising.

Kindly help me in resolving this issue

thanks

dhinesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 23, 2011 at 04:51 AM

    Hi Dhinesh ,

    As far as concerned about SELECT-OPTION in ABAP WEBDYNPRO, I dont think, if we use SELECT-OPTION, it comes with any button.

    For select option ,

    1. we use SELECT-OPTIONS type WDR_SELECT_OPTIONS IN your COMPOENET, under USED COMPONENT

    2. we use VIEW_CONTAINER_UI_ELEMENT and we write code -generally in WD_INIT METHOD

    3. M_HANDLER and M_WD_SELECT_OPTIONS attribute

    Please Follow below link for better example.

    http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages

    I hope it will be helpful for you.

    Regards.

    Gyanendra

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Dhinesh,

      Hope the below snippet solves your purpose

      DATA: LT_RANGE_TABLE TYPE REF TO DATA,

      RT_RANGE_TABLE TYPE REF TO DATA,

      LT_RANGE_TABLE1 TYPE REF TO DATA,

      RT_RANGE_TABLE1 TYPE REF TO DATA,

      READ_ONLY TYPE ABAP_BOOL,

      TYPENAME TYPE STRING.

      DATA: LR_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER,

      L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.

      • create the used component

      L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_ZSELECT_OPTION( ).

      IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.

      L_REF_CMP_USAGE->CREATE_COMPONENT( ).

      ENDIF.

      WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_ZSELECT_OPTION( ).

      • init the select screen

      WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECTION_SCREEN( ).

      WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(

      I_DISPLAY_BTN_CANCEL = ABAP_False

      I_DISPLAY_BTN_CHECK = ABAP_False

      I_DISPLAY_BTN_RESET = ABAP_true

      I_DISPLAY_BTN_EXECUTE = ABAP_False ).

      • create a range table that consists of this new data element

      LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'Your Feild' ).

      WD_THIS->M_HANDLER->ADD_SELECTION_FIELD( I_ID = 'Your Feild'

      IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).

  • author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2011 at 04:00 AM

    hi sri,

    That solved my problem

    thanks guys!!!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.