Application Development 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: 

field to be converted to upper case in input and output

Former Member
0 Kudos

Hi All I want to create new field in a z table which should be a three character field

but in capital letters with defined values.

I mean i need input and out in capital latters and want to save data in upper case.

can any one suggest any idea. or which Convers. routinei must use to perform this.

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos

Use lowercase checkbox on definition at domain level of your field.

SAP help for that field.


If this indicator is set, upper case and lower case are distinguished 
when you enter values with screen masks.

Otherwise all the letters entered will be converted to upper case when
you enter values with a screen mask.

This mechanism is in effect for all the fields referring to this domain.

Former Member
0 Kudos

When no case is specified, SAP will convert the text into CAPITALS and store it in upper case.

However, you can convert the text into upper case using the statement TRANSLATE <text> INTO UPPER CASE and store the data.

Former Member
0 Kudos

Create new domain with on the definition tab uncheck the lower case checkbox and use it for your fields. You fields will always have data in capital letters.

Please refer to SAP Help Link for [Creating Domains|http://help.sap.com/saphelp_webas620/helpdata/en/cf/21edf2446011d189700000e8322d00/content.htm]