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

Function Module

former_member225631
Active Contributor
0 Likes
612

Hi,

Is there any function module available to change a string (upper or lower)

into sentence case. Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

check this Fm

STRING_UPPER_LOWER_CASE

Reragds,

vijay

6 REPLIES 6
Read only

Former Member
0 Likes
564

check this Fm

STRING_UPPER_LOWER_CASE

Reragds,

vijay

Read only

0 Likes
563

check the fm<b> SWA_STRING_TO_UPPERCASE</b>

set this parameter PRESERVE_EXISTING_CAPITALS = SPACE

Read only

0 Likes
563

This FM SWA_STRING_TO_UPPERCASE produces exact result. Thanks.

Read only

Former Member
0 Likes
563

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.

Read only

Former Member
0 Likes
563

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

Read only

Former Member
0 Likes
563

STRING_UPPER_LOWER_CASE