Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with mix case

Former Member
0 Likes
1,215

Hi!

Is there any way to prevent the data to be converted to upper-case without changing it's domain?

I'm trying to insert mix case in a CHAR40 domain, but the text allways returns as upper-case.

Regards,

Andre

> It is possible to do that using code only?

Please give more details: what you want to do programatically. ?

If you check the domain of CHAR40 thru SE11 you can find :lowercase" check box not checked. so it convert to upper case

8 REPLIES 8
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,170

Hello Andre,

You have to change the Domain if you want the data to be "saved" in a certain case in the DB. (May be TEXT40 can help in this case)

If you want the Data to be "displayed" in certain case you can use the TRANSLATE statement.

Hope i am clear.

BR,

Suhas

Read only

former_member194669
Active Contributor
0 Likes
1,170

Instead of using CHAR40 use TEXT40

Read only

0 Likes
1,170

It is possible to do that using code only?

Regards,

Andre

Read only

0 Likes
1,170

> It is possible to do that using code only?

Please give more details: what you want to do programatically. ?

If you check the domain of CHAR40 thru SE11 you can find :lowercase" check box not checked. so it convert to upper case

Read only

0 Likes
1,170

I want to know if it's possible to 'check' that checkbox inside my program... I'm kind of a newbie in ABAP, sorry if my question doesn't make much sense =s

Regards,

Andre

Read only

0 Likes
1,170

Andre,

That check box comes from table DD01L for that domain value. If you want change it you need to change this table value.

Please donot change this table thru programatically, because CHAR40 has been used in many data elements, and also SAP is not suggesting

Read only

0 Likes
1,170

if possible move ur data to local variable

DATA: lv_id TYPE text40.

lv_id = 'askdhlaUUIIU'.

lv_id+7(20) = lv_id.

WRITE lv_id.

Read only

0 Likes
1,170

hello. dont try to change it from program. just use some other data element which has a suitable domain or change that domain.