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

Simple Logic...Upper case and lower case..

Former Member
0 Likes
842

GUru's..

I need your advise..

I have a parameter and I declared it as type c with a lenght of 20 characters. that parameter will be using to input names , whole to be exact..

Example: Ms. Clara Yeshi.

Now my problem is when I enter it or execute it the whole name/string becomes capital letters.which should'nt. it capital letter should only start at the beginning of every name.like in my example..

the reason why I needed it to be like that bacause whatever the user will input on the paramter will be display on my form as name.that's why i need ito to be a bit formal.

Again this is what I want to happen in my font.

Ms. Claire Jane Yeshi.

the upper case letter should only start at the beginning of every name.

Hope you can help me...

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:13 AM

4 REPLIES 4
Read only

Former Member
0 Likes
722

hi

actually i dont hav my system now

but i think the following code wil b helpful to make a custom FM

or make a sub routine in ur report

data : text(50) value 'this is a test for upper lower case'.

data : itab(50) occurs 0 with header line.

data : result(50).

split text at space into table itab.

loop at itab.

translate itab+0(1) to upper case.

concatenate result itab into result separated by space.

endloop.

write : / result.

<REMOVED BY MODERATOR>

regards

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:14 AM

Read only

former_member225631
Active Contributor
0 Likes
722

Use function module SWA_STRING_TO_UPPERCASE and keep PRESERVE_EXISTING_CAPITALS as space. It will fullfil your requirement.

Read only

nivin_varkey
Active Participant
0 Likes
722

Hi,

use a field from any table wherein the the field "Lowercase" is "checked" in the domain for its data element .

eg: parameters: p_name like bseg_sgtxt.

your problem will be solved.

Regards,

Nivin Joseph.

Read only

Former Member
0 Likes
722

Hello

I have the same problem, but using the LDAPMAP transaction, I want the username as you explain: John Smith, no JOHN SMITH.

Have you solved this issue?

Best regards.

Rubén García (not RUBEN GARCIA)