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 Upper/Lower Case

Former Member
0 Likes
4,683

Dear Group,

I need your help regarding Function Module Upper/Lower Case option.

My application server is running on AIX OS. That is purely case sensitive. For the Inbound Idoc, I am using the FM EDI_DATA_INCOMING. As an input parameter, when I am passing my file path of application server to this FM, It is converting the path into the upper case. As my OS is case sensitive, it is not recognizing the path bcoz it is converting it to upper case. From SE37, I am able to execute this FM, as we have option for upper/lower case. But when I am calling this FM through my Z program it is converting it to upper case.

For e.g.

My file is stored at following location....

/usr/sap/RD3/SYS/global/

when I am passing this value to FM EDI_DATA_INCOMING, it is converting it to /USR/SAP/RD3/SYS/GLOBAL/

My question is how to avoid this upper case translation.

I want my program to process the path without converting it to upper case.

Kindly help me to resolve this issue.

with regards,

Siddharth Patel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,891

Hi,

create the input parameter like this.

PARAMETERS:file_nam(10) LOWER CASE.

then it will not convert.

rgds,

bharat.

7 REPLIES 7
Read only

Former Member
0 Likes
1,892

Hi,

create the input parameter like this.

PARAMETERS:file_nam(10) LOWER CASE.

then it will not convert.

rgds,

bharat.

Read only

0 Likes
1,891

hi

Try FM : HR_99S_CONV_UPPER_CASE.

or try

Converting to Upper or Lower Case

TRANSLATE text TO UPPER CASE.

TRANSLATE text TO LOWER CASE.

<REMOVED BY MODERATOR>

regards,

rekha

Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:09 PM

Read only

0 Likes
1,891

Hi Bharat,

Thanks for your promt reply.

This what I was looking for.

I have awarded full marks to u.

with regards,

Siddharth Patel

Read only

Former Member
0 Likes
1,891

try this function module

STRING_UPPER_LOWER_CASE

Converts string to proper case

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:08 PM

Read only

Former Member
0 Likes
1,891

Hi,

create the input parameter like this.

PARAMETERS:file_nam(10) LOWER CASE.

then it will not convert.

in case if it converting in the function module the reference type of that field(u can find the option in domain of the ref type) should be changed to lower case.

rgds,

bharat.

Read only

Former Member
0 Likes
1,891

Hi,

Use the below logic.

data: v_path(50).

v_path = '/USR/SAP/RD3/SYS/GLOBAL/'.

translate v_path to lower case.

write:/ v_path.

Read only

Former Member
0 Likes
1,891

before passing this value to FM EDI_DATA_INCOMING, to have to use TRANSLATE <path> TO LOWER CASE.