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

Wanted: Popup which allows the user to enter one string

Former Member
0 Likes
3,283

Hello,

as the topic states, I am searching for a (modal) popup which lets the user enter one string in a text field and returns this string.

I am currently using the function module 'POPUP_TO_GET_ONE_VALUE' for this purpose which works quite good - BUT it has one major drawback: the string that is returned is entirely in capital letters. This is not acceptable as I want to build a case-sensitive search based on the input...

Any suggestions are greatly appreciated !

Best regards,

Patrick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,555

Hi Patrick,

If this is the only issue of caps, then use,

TRANSLATE <VALUE1> TO LOWER CASE.

Regards,

Prabhu Rajesh.

Hello,

as the topic states, I am searching for a (modal) popup which lets the user enter one string in a text field and returns this string.

I am currently using the function module 'POPUP_TO_GET_ONE_VALUE' for this purpose which works quite good - BUT it has one major drawback: the string that is returned is entirely in capital letters. This is not acceptable as I want to build a case-sensitive search based on the input...

Any suggestions are greatly appreciated !

Best regards,

Patrick

10 REPLIES 10
Read only

Former Member
0 Likes
2,556

Hi Patrick,

If this is the only issue of caps, then use,

TRANSLATE <VALUE1> TO LOWER CASE.

Regards,

Prabhu Rajesh.

Read only

0 Likes
2,555

Prabhu,

as I mentioned in my first post, the search I want to program is case-sensitive, so converting an all uppercase string to an all lowercase string does not help here

Thanks anyway, any suggestion is appreciated.

Regards,

Patrick

Read only

Former Member
0 Likes
2,555

Hi Patrick,

Have you had a look at POPUP_TO_SEARCH_VALUE ? Tell me if that cannot be used in your case for some reason.

Regards,

Anand Mandalika.

Read only

0 Likes
2,555

Hi,

Also, Look at POPUP_TO_GET_VALUE. Here you can specify the table anme and the field name from DDIc for which you need a value. Even if in your case you do not refer to a DDIC element, you can always use something like KNA1 and NAME1 etc., where the domain of the field has got the LOWERCASE attribute set.

lemme know what you think.

regards,

anand mandalika.

Read only

0 Likes
2,555

Anand,

I'm just finished with your first reply - checked out 'POPUP_TO_SEARCH_VALUE' - and you already gave a second option - marvellous !

Will try the other one out right now.

You are right, the parameters that reference to the DDIC made me wonder and decide against this FM when I searched through all the available popups some time ago.

To your first reply:

the popup is quite good. It does indeed deliver a 'case preserved' string. What I don't like is the checkbox and the fact, that the confimation button is labeled 'search' rather than just the 'ICON_OK'. I should mention at this point that I reuse the popup in other scenarios where the string is not used for a search but to name certain objects. Again an all uppercase string (or all lowercase string as well) is unwanted.

Now on to the second popup...

Regards,

Patrick

Read only

Former Member
0 Likes
2,555

Hi,

Check the following Function Module

GRM_POPUP_TO_GET_ONE_VALUE

This does the Job.

Read only

Former Member
0 Likes
2,555

You can use POPUP_TO_GET_VALUE which uses a DDIC-reference for the input field. If you use a DDIC-type which is case-sensitive, the input will be case-sensitive to.

Regards, Torsten

Read only

0 Likes
2,555

Hi torsten,

That was exactly what I had said in my a few hours ago.

Regards,

Anand Mandalika.

Read only

0 Likes
2,555

Anand,

I tried the FM you suggested 'POPUP_TO_GET_VALUE' but there was some message like 'this function module is deprecated'.

There was a reference though to the 'replacement' FM named 'POPUP_GET_VALUES'. This works as desired (using an appropriate ddic reference) so you got 6 points for the hint

Thanks to everybody who contributed to this thread !

Regards,

Patrick

Read only

0 Likes
2,555

Hi Patrick,

What ddic reference you used to make it work?

Thanks