‎2007 Aug 24 12:37 PM
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
‎2007 Aug 24 12:42 PM
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
‎2007 Aug 24 12:42 PM
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
‎2007 Aug 24 12:46 PM
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
‎2007 Aug 24 12:48 PM
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
‎2015 Apr 22 3:50 AM
Hi Amit,
Now I have same your problem. Did you have solution !? Pls share to me ...
‎2007 Aug 24 12:43 PM
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
‎2007 Aug 24 12:44 PM
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
‎2007 Aug 24 12:54 PM
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
‎2007 Aug 24 12:56 PM
Sorry Guys for bothering you..It was my mistake of type mismatch which caused the issue.
Thanks a lot for helping though.
‎2007 Aug 24 1:25 PM
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