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

Select option without Ranges

Hi,

I have to create Select option without Ranges in ABAP Webdyn pro, coould you guide me how to do that?

Best regards

Gaurav

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 09:10 AM

    Hi Gaurav,

    Use the following code to hide intervals and extension options.

    
     DATA : i_complex_restrictions TYPE if_wd_select_options=>t_complex_restrictions.
     DATA : wa_rsoptions TYPE rsoptions.
     DATA : lt_range_table TYPE REF TO data.
    
     wd_this->m_wd_select_options = wd_this->wd_cpifc_selopt( ).
     wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
    
      i_complex_restrictions-m_include = wa_rsoptions.
      i_complex_restrictions-m_exclude = wa_rsoptions.
    
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_CARR_ID' ).
      wd_this->m_handler->add_selection_field(
                          i_id = 'S_CARR_ID'
                          it_result = lt_range_table
                          i_complex_restrictions = i_complex_restrictions
                          i_use_complex_restriction = 'X'
                           I_NO_COMPLEX_RESTRICTIONS = 'X'
                            I_NO_INTERVALS = 'X' ).
    

    Thanks.

    Chitrali

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I have one more further requirement, as in SAP GUI our user should be able to copy paste multiple value from a notepad/excel to Selection option , right now user can only type values in selection and user has to type multiple values while in SAP GUI they have option of copying data from notepad etc.

      is it possible in WDA if yes , any help on this?

      Regards

      Gaurav

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2008 at 11:57 AM

    Hello Gaurav Goel,

    In order to work with Select Options, you can make reuse of component WDR_SELECT_OPTIONS.

    To remove the ranges, you can access the following methods from interface IF_WD_SELECT_OPTIONS

    SET_RANGE_TABLE_OF_SEL_FIELD - Resets Range Table for Selection Field

    RESET_ALL_SELECTION_FIELDS - Resets Range Table of All Selection Fields

    I hope it should work.

    Thanks,

    Bharath.K

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2008 at 11:47 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2008 at 11:47 AM

    Hi Gaurav,

    TRY USING

    DATA: BEGIN OF rtab OCCURS {10|n},

    sign TYPE c LENGTH 1,

    option TYPE c LENGTH 2,

    low LIKE dobj,

    high LIKE dobj,

    END OF rtab.

    Best Regards...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 12:35 PM

    I still need help for copy pasting date from notepad to Selection option.

    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.