Posts

Showing posts with the label Internal Tables

Mastering Debugging Techniques: From Breakpoints to Watchpoints

Image
  Debugging is a technique by which we can find the error, Correct the error and detect the error. Always prefer Desktop 3, as it provides more space to see the data more clearly. Ways of Debugging :- Put the breakpoint on any executable statement and program will automatically stop at that point. Any statement that perform some execution is term as executable statement. Note :- The program must be in active state to put a break point on it. We can debug the code with the help of transaction code /h. Execution keys in Debugging :- F5 - Step by Step Execution : Executes the program one line at a time, allowing you to step through each line of code, including stepping into function calls for detailed inspection. F6 - Line by Line Execution : Similar to F5 but skips over function calls, executing only the current line of code and moving to the next line. F7 - Return : Steps out of the current function, allowing you to quickly return to the calling function'...

ABAP Insights: Demystifying Internal Table Operations - Sorting Tricks, Smart Data Summation, and Table Types Unveiled

Image
 Welcome back everyone, So basically we were discussing about internal table operations in our last blog. So let’s continue it. Internal Table Operations - SORT :- It is to sort the internal table. If we are not specifying anything, then by default it sorts in the ascending order. If we want to sort in descending order, then we need to specify the keyword descending. Practical implementation :- ************************************************* *Start of Program SORT lt_header BY order_number. "here we have not specified "anything, then by default it " will sort in ascending order. *Printing data LOOP AT lt_header INTO ls_header. WRITE :/ ls_header-order_number, ls_header-payment_mode. ENDLOOP. *End or Program ******************************************************** Output :- Sorting in Descending Order :- ************************************************* *Start of Program SORT lt_header BY order_number DESCENDING. *Printing data LOOP AT lt_header INTO ...

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