Posts

Showing posts with the label ABAP Editor

Breaking it Down: Exploring Modularization Techniques in ABAP Programming

Image
 Welcome back everyone, We have just finished our classical reports in our last blog, So let’s start with Modularization Techniques. Modularization Techniques :- Modularization is a technique used to divide the application program into smaller units. This helps to maintain the code in an easy manner and reduce the code redundancy. The various modularization techniques are as follows :- Includes Function Modules Subroutines Class-Methods 1. Include Programs/Includes :- Include Program is a modularization technique. We use include programs to organize a program code in to smaller units. We can create include programs with the help of SE38(ABAP Editor). The type of include programs is ‘I’. We can not execute a include program. We can reuse the same include program multiple times in our executable reports. The most important use of include programs is for lengthy data declarations used in different programs. The Syntax to use a Include Program in to another type of

Mastering ABAP: In-Depth Analysis of String Operations and Internal Tables for Efficient SAP Development

Image
 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 *****************************************