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

Selection Screen

Former Member
0 Likes
367

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
347

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.

3 REPLIES 3
Read only

Former Member
0 Likes
348

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.

Read only

0 Likes
347

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.

Read only

Former Member
0 Likes
347

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...................