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

translate

Former Member
0 Likes
1,327

Dear Friends,

I have a select-option: ltxa1 like plpo-ltxa1.

if i give the lowercase value noting is picked up from the select query. i need to translate to uppercase before retriveing the table.

can anyone suggest the code for do the above

regards

karthik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,264

INITIALIZATION.
translate ltxa1-low to upper case.
translate ltxa1-high to upper case.

Message was edited by:

Chandrasekhar Jagarlamudi

Dear Friends,

I have a select-option: ltxa1 like plpo-ltxa1.

if i give the lowercase value noting is picked up from the select query. i need to translate to uppercase before retriveing the table.

can anyone suggest the code for do the above

regards

karthik

10 REPLIES 10
Read only

Former Member
0 Likes
1,265

INITIALIZATION.
translate ltxa1-low to upper case.
translate ltxa1-high to upper case.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

0 Likes
1,264

Dear sekar,

I used the code like below

IF ltxa1 NE space.

translate ltxa1-low to upper case.

translate ltxa1-high to upper case.

but it is affecting only the header line of ltxa1 not the option table.

how to modify the option table.

regards

karthik

Read only

0 Likes
1,264

Hi Karthik ,

In case of select-options you need to loop on the select options and get the low and high value into the worl area , convert them into upper case and then modify the internal table.

Looping is very important becase select-options gives your the freedom to input more than one set of values.

Do revert back in case of any queries.

Regards

Arun

Read only

0 Likes
1,264

loop at ltxa1.

translate ltxa1-low to upper case.

translate ltxa1-high to upper case.

modify ltxa1 index sy-tabix.

endloop.

Read only

0 Likes
1,264

you can loop at the table

if not ltxa1[] is initial.
loop at ltxa1 into wa_ltxa1.
  translate ltxa1-low to upper case.
 translate ltxa1-high to upper case.
 modify ltxal from wa_ltxa1.
endif.

Read only

Former Member
0 Likes
1,264

use translate syntax.

TRANSLATE LTAX1 TO UPPERCASE

then write ur query

Read only

Former Member
0 Likes
1,264

hi,

if ltxa1 is not initial.

translate ltxa1 to uppercase.

select * from dbtable where xyz in ltxa1.

endif.

regards,

keerthi

Read only

Former Member
0 Likes
1,264

Hi,

U can do like this :

TRANSLATE s_test TO UPPER CASE.

select * from ybsp into table itab where userid in s_test.

-Regard,

Satya Priya

Read only

Former Member
0 Likes
1,264

hi karthik,

int he message u mentioned as

I have a select-option: ltxa likeplpo-ltxa1.

according to me we have to mention select-option : ltxa for plpo-ltxa1.

and as long as u dont mention the paramameter value in ' ', independent of the case of the text, the data is retrieved from the data base.

hope helps and make sense.

regards.

Read only

Former Member
0 Likes
1,264

Hi Karthik ,

I should be handled automatically by the select options , but incase if it does not , then in the event at selection-screen , use the command TRANSLATE text to upper case.

Regards

Arun