cancel
Showing results for 
Search instead for 
Did you mean: 

Select-Options upper case only

0 Kudos

Hi,

I'm using the WDR_SELECT_OPTIONS WebDynpro and I would like to prohibit lower case input.

My source code looks like the following but the Input fields still allow lower case input...

    typename = cl_abap_typedescr=>typekind_char.
    lt_range_table = wd_this->m_handler->create_range_table(
                       i_typename = typename
                       i_length   = 40 ).

CALL METHOD wd_this->m_handler->add_selection_field
  EXPORTING
    i_id = 'OBJ_NAME'
    i_description = 'Bezeichnung'
    it_result = lt_range_table
    i_lower_case = abap_false

.

What am I doing wrong?

Kind Regards,

Maximilian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

OPTION A)

kept as is, and translate result to uppercase before using.

Option b)

The ABAP class type RUN TIME TYPE INFO (RTTI) tool treats

char as upper and lowercase as you discovered.

So If you want specifically UPPER case only.

1. Create a new or use existing domain where the Lowercase is not selected.

eg CHAR40.

2 Create or use and existing data element that uses this domain in 1.

eg CHAR40

3 Call "create_range_table" with typename from 2. eg CHAR40.

Looks like Thomas catered for this nicely looking at the code.

Not tested, just looked at code to see if it accepts DDIC types not just internals.

It appears to handle scalar types.

regards

Phil

Answers (1)

Answers (1)

0 Kudos

Hi,

thanks, I used CHAR40 and it solved the problem.

But I'm still curious about:

i_lower_case = abap_false

Does this parameter have any effect?

Regards,

Maximilian

thomas_szcs
Active Contributor
0 Kudos

Hi Maximilian,

I just verified it. You are right, the value of the parameter is currently not taken into account. I was wondering, if you could open an oss ticket please? I will fix the problem asap then.

Best regards,

Thomas