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

Conversion

Former Member
0 Likes
345

Wat does AIPC_CONVERT_TO_UPPERCASE DO... PLEASE EXPLAIN CLEARLY... I MEAN WAT EXACTLY HAPPENS

1 REPLY 1
Read only

Former Member
0 Likes
323

Hi,

You can use the translate statement instead of an FM.

translate v_str to UPPER-CASE.

translate v_str to LOWER-CASE.

Example:

chk this FM TERM_TRANSLATE_TO_UPPER_CASE

REPORT ztest.

DATA : v_lower(25) VALUE 'abcde',

v_upper(25).

CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'

EXPORTING

langu = sy-langu

text = v_lower

IMPORTING

text_uc = v_upper.

WRITE : v_upper.

OUTPUT is : ABCDE

Regards,

Shiva Kumar