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 - Case-Sensitive Text

amit_bajaj
Product and Topic Expert
Product and Topic Expert
0 Likes
5,601

Hello Folks,

I have a question in function Module. How can i set the Upper/Lower Case parameter to Yes while calling the function module remotely.

The problem is:

I would like to handle the case-sensitive text for my import parameters in my FM. As you know, FM converts all the lower case characters to Upper case when you execute it, but i dont want to convert them to Upper case at all. I wanted to receive whatever the case-sensitive letters been entered in the import parameter.

Can anyone Please suggest me getting resolved this problem.

Thanks, Meraj

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
3,008

Hello Amit

The function module does not at all convert lower to upper case but this is a <b>GUI property</b>. If you mark the <i>checkbox </i><b>Uppercase/Lowercase</b> (SE37, top of screen) no conversion takes places.

Regards

Uwe

9 REPLIES 9
Read only

uwe_schieferstein
Active Contributor
0 Likes
3,009

Hello Amit

The function module does not at all convert lower to upper case but this is a <b>GUI property</b>. If you mark the <i>checkbox </i><b>Uppercase/Lowercase</b> (SE37, top of screen) no conversion takes places.

Regards

Uwe

Read only

amit_bajaj
Product and Topic Expert
Product and Topic Expert
0 Likes
3,008

Hello Ume,

Thank you for your response, but yes we can set the parameter to yes. But we need to call FM inside the prg. In this case, how do you make the <b>Uppercase/Lowercase</b> parameter to yes.

FM1(passing parameter P1='Amit Bajaj') and calls FM2

FM2 receives the parameter as 'AMIT BAJAJ'

I dont want the case conversion to happen.

Amit

Read only

0 Likes
3,008

Hi,

Then the Dataelement of the IMPORTNIG parameter of the FM2 is not Case Sensitive.

You can make that case sensitive by making the DOmain of that IMPORTING parameter as case sensitive.

For that Open the Domain in SE11, and Mark the checkbox "Lowercase".

If that Exporting parameter does not use any Data element then create one and use.

Regards,

Sesh

Read only

0 Likes
3,008

Hi Amit,

Now I have same your problem. Did you have solution !? Pls share to me ...

Read only

Former Member
0 Likes
3,008

Hi Amit,

I'm afraid that SAP only converts to upper case when you test-run a function module via transaction SM37 (unless you check flag "Upper/lower case"). It does not make any conversion when calling the function itself from within a program. Have you tried the call from a report, instead from test running from SM37?

I hope it helps. Best regards,

Alvaro

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
3,008

Hi,

FM will not convert the data to upper case on its own.

Check the DOMAIN of the IMPORT PARAMETER.

In SE11 for the domain mark the checkbox "Lower case" as X.

Regards,

Sesh

Read only

former_member582701
Contributor
0 Likes
3,008

I have had same problem when i wanted to use a path like a string. Function parameter was sap\FolDer and function receives SAP\FOLDER. It was because i was using a string type.

You have to look for a type that his domain has Lowe Case marked.

In my case, i changed string for rlgrap-filename (if you go to his domain you could see lower case marked)

regards

Read only

0 Likes
3,008

Sorry Guys for bothering you..It was my mistake of type mismatch which caused the issue.

Thanks a lot for helping though.

Read only

Former Member
0 Likes
3,008

Hello Amit Bajaj,

Are you using "PARAMETERS"?

If yes, try it:

Parameters:

p1(15) type C,

p2(15) type C lower case.

Write: p1, / p2.

*Writing 'Amit Bajaj' at the two parameters, the answer is:

AMIT BAJAJ

Amit Bajaj

Post your results please.

regards,

Allan Cristian