12-21-2006 11:36 AM
Hi,
Is there any function module available to change a string (upper or lower)
into sentence case. Thanks in advance
12-21-2006 11:38 AM
12-21-2006 11:38 AM
12-21-2006 11:39 AM
check the fm<b> SWA_STRING_TO_UPPERCASE</b>
set this parameter PRESERVE_EXISTING_CAPITALS = SPACE
12-21-2006 12:25 PM
12-21-2006 11:39 AM
Check
<b>STRING_UPPER_LOWER_CASE</b>
DATA: DELIM(40) TYPE C VALUE ' '.
DATA: CON_ANREX LIKE Q0002-ANREX.
CALL FUNCTION 'STRING_UPPER_LOWER_CASE'
EXPORTING
DELIMITER = DELIM
STRING1 = RECORD-ANREX
IMPORTING
STRING = CON_ANREX
EXCEPTIONS
NOT_VALID = 1
TOO_LONG = 2
TOO_SMALL = 3.
IF SY-SUBRC EQ 0.
RECORD-ANREX = CON_ANREX.
ENDIF.
12-21-2006 11:39 AM
Try this:
STRING_UPPER_LOWER_CASE
REPORT ZRTTEST.
data string(50).
CALL FUNCTION 'STRING_UPPER_LOWER_CASE'
EXPORTING
delimiter = ' '
string1 = 'this is for test'
IMPORTING
STRING = STRING
EXCEPTIONS
NOT_VALID = 1
TOO_LONG = 2
TOO_SMALL = 3
OTHERS = 4
.
write:/ string.
Regards,
ravi
Message was edited by:
Ravi Kanth Talagana
12-21-2006 11:39 AM