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

Convert data to Proper Case

Former Member
0 Likes
5,104

Is there a function module, etc. to help convert names, etc. from UPPER CASE to Proper Case existing within SAP already?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,361

Hi,

Check this :

*Capitalization conversion

CALL FUNCTION 'STRING_UPPER_LOWER_CASE' 
 EXPORTING  
   DELIMITER = P_DEM 
   STRING1   = P_STR                   " Lower case 'String' 
 IMPORTING 
   STRING    = P_STR                   " Upper case 'String' 
 EXCEPTIONS
   NOT_VALID = 1 
   TOO_LONG  = 2  
   TOO_SMALL = 3  
   OTHERS    = 4.

Regards

Adil

Is there a function module, etc. to help convert names, etc. from UPPER CASE to Proper Case existing within SAP already?

3 REPLIES 3
Read only

Former Member
0 Likes
2,361

Hi Steve,

As far as i know i dont think SAP has a function module for that.

To convert given string go through this link which uses TRANSFER command.

[Converting to Upper or Lower Case|http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb33a5358411d1829f0000e829fbfe/content.htm]

Its better you create a function module including this statement as shown in the above link and use it as per your requirement or directly use as stated in the above link.

Hope this would help you.

Regards

Narin Nandivada

Read only

Former Member
0 Likes
2,361

Hi Steve,

Try FM 'STRING_UPPER_LOWER_CASE'

Regards

Nisarg

Read only

Former Member
0 Likes
2,362

Hi,

Check this :

*Capitalization conversion

CALL FUNCTION 'STRING_UPPER_LOWER_CASE' 
 EXPORTING  
   DELIMITER = P_DEM 
   STRING1   = P_STR                   " Lower case 'String' 
 IMPORTING 
   STRING    = P_STR                   " Upper case 'String' 
 EXCEPTIONS
   NOT_VALID = 1 
   TOO_LONG  = 2  
   TOO_SMALL = 3  
   OTHERS    = 4.

Regards

Adil