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

Case conversion while passing URL to a function module

Former Member
0 Likes
823

Hi Gurus,

My problem is i am passing a URL as a parameter to function module but its getting converted to uppper case can any one suggest me how to preserve the case.

7 REPLIES 7
Read only

former_member189059
Active Contributor
0 Likes
784
translate lv_url to lowercase.
Read only

0 Likes
784

But it has some upper case letters and some lower case letters and i want to <i><b>preserve the case</b></i>.

If i convert into lower all the letters get converted to lower which is not what i want.

Read only

0 Likes
784

Hello Venkat,

You want to preserve the upper case letters

Regards,

Phani.

Read only

0 Likes
784

Yes i want to preserve the case

The upper case has to be in upper and the lwer case has to be in lower

Read only

Former Member
0 Likes
784

Hello venkat,

u can use "Translate Url to Lower Case".

Get the length of the URL and convert all the letters into lowercase by using DO& ENDDO depending up on the length of the URL. before you use the URL

<b><REMOVED BY MODERATOR></b>

Regards,

Phani.

Message was edited by:

Alvaro Tejada Galindo

Read only

former_member189059
Active Contributor
0 Likes
784

the variable that you are passing, is it a parameter in the program?

If so, then declare it as follows

  parameter lv_url(300) type c lower case.

in this case, it makes it case sensitive, not lower case

I'm not sure if you can do this with the function module as well

Message was edited by:

Kris Donald

Read only

Former Member
0 Likes
784

Hi venkat,

1. If you are checking this thru SE37, while checking the FM functionality,

2. Then there will be a TICK BOX (in se37 screen),

while executing the function module.

3. This checkbox is for lower case, TICK it, and the execute .

regards,

amit m.