on 01-16-2007 8:32 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.