cancel
Showing results for 
Search instead for 
Did you mean: 

WDA select_options

Former Member
0 Kudos

I am using the interface IF_WD_SELECT_OPTIONS in WDA to enable selection options as in SAP ERP GUI.

Is it possible to specify, that it is not allowed to enter wildcards " * " in searches, as this will give my application very bad performance?

I guess I could do it manually after the search action, however it would be much better if the component could handle it, so that the specific field is highligted as when you enter a letter in an alpha-numeric field.

Is this possible? I tried various restrictions using parameter i_complex_restrictions but this is not working:

    ls_restrictions-m_include-np = abap_true.

  wd_this->m_handler->add_selection_field(
    i_id = 'UNAME'
    it_result = lt_range_table
    i_read_only = read_only
    i_within_block = 'RANGE'
    i_complex_restrictions = ls_restrictions
    i_use_complex_restriction = 'X'
    i_description = cl_bsp_runtime=>get_otr_text( 'ZFIE_MM-IV/AUDIT_USER' ) ).

Accepted Solutions (0)

Answers (1)

Answers (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Please check this.

I_COMPLEX_RESTRICTIONS

Restricts what is allowed and what is not, for example, no angle brackets allowed.

To specify options you can use the Dictionary structure RSOPTIONS for including and excluding options.

http://help.sap.com/saphelp_nw70/helpdata/en/45/bf07361248003de10000000a11466f/content.htm

Former Member
0 Kudos

Hi Jayanthi.

I have done so as I mention, and I don't think it is possible to restrict the use of wildcard searches using the *-character.

I can only restrict things as <, >, [] and so on as far as I can tell.