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 Member
0 Likes
450

Hi all,

please tell me any function module which convert Upper or lower string in to string which have first character always capital.

Thanking you in advance.

Regards

Gurprit Bhatia

5 REPLIES 5
Read only

Former Member
0 Likes
428

HI,

if you have to variables

variable 2 = variable1+0(5).

now variabl2 is a character type and it becomes a string

thanks & regards,

Venkatesh

Read only

Former Member
0 Likes
428

HI,

if you have to variables

variable 2 = variable1+0(5).

use

<b>translate variable2 to upper-case.</b>

now variabl2 is a character type and it becomes a string

thanks & regards,

Venkatesh

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
428

Hi,

DATA: var type String value 'check'.

TRANSLATE var+0(1) TO UPPER CASE.

write: var.

Regards,

Sesh

Read only

varma_narayana
Active Contributor
0 Likes
428

Hi..

This is the FM

STRING_UPPER_LOWER_CASE

Pass the DELIMITER as 1 TO MAKT the first char as UPPER.

And....

You can use Translate command for this.

Data : var(10) value 'INDIA'.

TRANSLATE VAR TO LOWER CASE.

TRANSLATE VAR(1) TO UPPER CASE.

<b>Reward if Helpful.</b>

Read only

Former Member
0 Likes
428

use TRANSLATE statement.

S@meer