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

String Conversion in Smartform

Former Member
0 Likes
578

Hi,

I am displaying some colours in SF

For eg : ERYTHROSINE

I want to display in this format ' Erythrosine'.

Can any one......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

hi

U can try it using the TRANSLATE statement

data : TEXT(10) type C.

data : T type C.

TEXT = 'gopi'.

move TEXT+0(1) to T.

translate T to upper case.

concatenate T TEXT+1(9) into TEXT.

write : TEXT.

Just try the above example.

Regards

Deva

3 REPLIES 3
Read only

Former Member
0 Likes
533

hi

U can try it using the TRANSLATE statement

data : TEXT(10) type C.

data : T type C.

TEXT = 'gopi'.

move TEXT+0(1) to T.

translate T to upper case.

concatenate T TEXT+1(9) into TEXT.

write : TEXT.

Just try the above example.

Regards

Deva

Read only

Former Member
0 Likes
532

Hi,

Use Translate syntex apprpriate up to ur requirment and for first letter u can use

g_str = ERYTHROSINE.

g_len(g_str)

offset -> translate g_str+0(1) to upper case

offset -> translate g_str+1(g_len) to lower case case

Read only

Former Member
0 Likes
532

Hi,

Thanx for ur reply...