Mastering ABAP: In-Depth Analysis of String Operations and Internal Tables for Efficient SAP Development
Welcome back everyone, we were discussing about String operations in our last blog, So let’s continue it. String Operations : TRANSLATE The purpose of translate is to convert the string to uppercase or lowercase.. Syntax : TRANSLATE <string> TO UPPER CASE / LOWER CASE. In the above syntax : TRANSLATE = keyword, <string> = the string which needs to be converted, TO = keyword, UPPER CASE / LOWER CASE = keyword. *********************************************************** *Start of Program DATA : lv_input(50) type C value 'Welcome to Home', lv_input1(50) type c value 'welcome to home'. translate lv_input to LOWER CASE. "Display the first input. write : 'First input after translating to lower case : ', / lv_input. TRANSLATE lv_input1 TO UPPER CASE. *Displaying the second input. write :/ 'Second input after translating too upper case : ', / lv_input1. *End of Program *****************************************