‎2008 Apr 07 1:55 PM
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
‎2008 Apr 07 1:59 PM
use this FM "STRING_UPPER_LOWER_CASE"
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:45 PM
‎2008 Apr 07 1:57 PM
Hi jack,
1. use the FM
SWA_STRING_TO_UPPERCASE
which has the option for Title case also.
regards,
amit m.
‎2008 Apr 07 1:59 PM
use this FM "STRING_UPPER_LOWER_CASE"
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:45 PM
‎2008 Apr 07 2:02 PM
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
‎2008 Apr 07 3:26 PM
As you know Translate statement , use that statement to make intial capital.
check the sample program .
I hope that it helps u.
Regards,
Venkat.O
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.