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

Initial Capital

Former Member
0 Likes
506

Dear All,

I am searching for a function that would enable me to change "JACK" to "Jack". In oracle there is a way initcap(X). But here I want the user to input say JACK and the report should show Jack. this should be achieved without using a table. Basically I know the function Translate c to lowercase. I am searching something similar which would give me the string with initial letter capital instantly.

Regards,

Jack Silverz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

use this FM "STRING_UPPER_LOWER_CASE"

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:45 PM

4 REPLIES 4
Read only

Former Member
0 Likes
471

Hi jack,

1. use the FM

SWA_STRING_TO_UPPERCASE

which has the option for Title case also.

regards,

amit m.

Read only

Former Member
0 Likes
472

use this FM "STRING_UPPER_LOWER_CASE"

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:45 PM

Read only

Former Member
0 Likes
471

there is no direct fm for this u have to do this with the help of fm STRING_UPPER_LOWER_CASE and WRITE statement.

S@meer

Read only

venkat_o
Active Contributor
0 Likes
471

As you know Translate statement , use that statement to make intial capital. check the sample program .

DATA:
      g_string(6000) TYPE c VALUE 'JACK'.

TRANSLATE g_string to lower case.
TRANSLATE g_string+0(1) to UPPER CASE.
Write g_string.
I hope that it helps u. Regards, Venkat.O