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

Uppercase / Lower case Flag in Function Modules

Former Member
0 Likes
3,366

I want the upper case / Lower case flag to be checked active by default when we execute my function module. How can we achieve ?

9 REPLIES 9
Read only

Former Member
0 Likes
1,743

It's probably more important that your import or export parameter domain has the lower case checkbox on. For instance, if you use something like CHAR30, the lower case won't get passed to the FM. But if you create a custom domain of char / 30 and check the lower case box, the data will be passed into the function module as is. At least, that's what's working for me in things like free-form text and desktop filenames.

Read only

0 Likes
1,743

But i want to use the variables of type STRING. Then ?

Read only

0 Likes
1,743

Any updates pls ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,743

> I want the upper case / Lower case flag to be checked active by default when we execute my function module. How can we achieve ?

Do you mean the flag when you execute the FM in test mode from SE37? You can't. Just remember to check it, that's all.

Read only

0 Likes
1,743

But how to handle the same when we call it in the program ?

Read only

0 Likes
1,743

Hi,

You don't need to do the same when you call a function module in a program, it's only relevant when you are entering values into the test transaction that the dynpro converts fields to upper case.

Regards,

Nick

Read only

Former Member
0 Likes
1,743

The checkbox is a part of FM TEST Framework and any changes can't be made to it. Also, while calling through program it will come into picture.

If you want text in specific case

1. Check the domain lowercase property of the data element to be used in import parameters.

2. Use TRANSLATE statement to change case inside the FM.

Read only

Former Member
0 Likes
1,743

Found no Answer ....

Read only

Former Member
0 Likes
1,743

sorry