2005 Jul 07 8:48 AM
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
2005 Jul 07 9:05 AM
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
2005 Jul 07 9:05 AM
Hi Patrick,
If this is the only issue of caps, then use,
TRANSLATE <VALUE1> TO LOWER CASE.
Regards,
Prabhu Rajesh.
2005 Jul 07 9:26 AM
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
2005 Jul 07 9:13 AM
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.
2005 Jul 07 9:17 AM
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.
2005 Jul 07 9:34 AM
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
2005 Jul 07 12:21 PM
Hi,
Check the following Function Module
GRM_POPUP_TO_GET_ONE_VALUE
This does the Job.
2005 Jul 07 3:20 PM
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
2005 Jul 07 3:24 PM
2005 Jul 07 5:23 PM
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
2014 Dec 12 3:25 PM
Hi Patrick,
What ddic reference you used to make it work?
Thanks
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |