Posts

Showing posts with the label SAP ABAP Tutorial

Mastering ABAP Events: Unraveling Interactive Classical Report Events and Control Break Statements

Image
 Welcome back everyone, We were discussing about Interactive Classical Report Events, So let’s continue it. 3. Top of Page During Line-Selection :- This event calls when the first WRITE statement occurs in a program for a page on secondary list. The purpose of this event is to provide title/header at the beginning of a new page on secondary list. Let’s take a requirement to understand it more clearly. Requirement :- I want on the first page my header details should be displayed and on the second page item details should be displayed. Also there should be a title for the secondary list. Code :- ************************************************************* *Start of Program *Declaring Strcutrure for header TYPES: BEGIN OF ty_header, order_number TYPE zar_order_number, order_date TYPE zar_order_date, payment_mode TYPE zar_payment_mode, currency TYPE zar_curency, END OF ty_header. ********************* *Internal table and Wo

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