cancel
Showing results for 
Search instead for 
Did you mean: 

Lower case and upper case -> NODE

Former Member
0 Kudos

Hi all,

I have a problem in webdynpro ..

when I typed in a field in a form it's converted to uppercase.

exemple of the code generated by the wizard :



  DATA lo_nd_NODE TYPE REF TO if_wd_context_node.
  DATA lo_el_NODE TYPE REF TO if_wd_context_element.
  DATA wa_structure TYPE wd_this->element_NODE.

  lo_nd_NODE = wd_context->get_child_node( name = wd_this->wdctx_NODE ).


  lo_el_NODE= lo_nd_NODE->get_element( ).

  lo_el_NODE->get_static_attributes(
    IMPORTING
      static_attributes =wa_structure ).

the structure wa_structure is converted to upper case.

how should I do to respect the case before ?

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I had a simillar issue earlier,where i had to get the values of the varibales in lower case. There is a check box in the domain (In the definition tab, if you check the domain in SE11) which says "Lower Case". If you select that then values would appear in lower case. But i had used all Z data elements and domains, so it worked for me.

Still looking for a solution if the domain is standard one..!!

Regards,

Runal

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

As you have seen this setting comes from the DDic Domain. The vast majority of domains are case insensitive and therefore convert everything to upper case. That way you don't have problems when performing SQL WHERE statements against the data having mixed case.

In addition to using domains that have the Lower Case setting, you can consider using STRING as the data type. You give up the DDic labels, but STRING is always treated as though it has the Lower Case setting.

Former Member
0 Kudos

Tank You all for replaying !

The solution using the STRING as Data Type can work , but not for SQL queries, especially in the WHERE clause. (String has a large size ~ 256).

The alternative solution for creating domains and assign the box Lower Case is working but i must redo all work for all fields

Thank you a lot

Best regards

Answers (1)

Answers (1)

Former Member
0 Kudos

For standard domains you can check the check box LOWER CASE as checked.

Otherwise you can use the statement TRANSLATE <Field Name> TO LOWER CASE in the WDDOINIT/WDDOMODIFYVIEW as per your requirement.

Hope it helps you.