‎2008 Mar 31 8:07 AM
Hi all,
I have declared Recipient of the good (wempf) which is a text field as a parameter in my selection screen. I have to output the recipient as per user entry for example:
if the user enter wempf = AI , the report should display all the AI recipient only.
if the user enter wempf = ai , the report should display all the ai recipient only.
if the user enter wempf = space , the report should display all the recipients in both upper and lower cases.
Thanks .
‎2008 Mar 31 8:11 AM
use this for the screen fields.
1. TRANSLATE c TO UPPER CASE.
2. TRANSLATE c TO LOWER CASE.
it may help u.
give points if satisfied.
‎2008 Mar 31 8:11 AM
use this for the screen fields.
1. TRANSLATE c TO UPPER CASE.
2. TRANSLATE c TO LOWER CASE.
it may help u.
give points if satisfied.
‎2008 Mar 31 8:21 AM
This is what i did but still not working as required.
AT SELECTION-SCREEN ON pa_wempf.
IF pa_wempf CA sy-abcde.
Translate pa_wempf to lower case.
else.
Translate pa_wempf to upper case.
endif.
‎2008 Mar 31 8:24 AM
hi,
better u create a list box instead of text box so that u can easily get rid of this problem.
find the procedure below to create list box.
TYPE-POOLS vrm.
parameters:
p_list(5) as listbox visible length 20,
at selection-screen output.
vrm_values1-key = 'AI'.
vrm_values1-text = 'AI'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = 'ai'.
vrm_values1-text = 'ai'.
APPEND vrm_values1 TO t_table.
vrm_values1-key = ' '.
vrm_values1-text = ' '.
APPEND vrm_values1 TO t_table.
t_table1[] = t_table.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'p_month'
values = t_table1
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
reward if useful...................