Posts

Showing posts with the label Programming Tips

Unlocking the Power of HIDE Statements in Interactive Classical Reports: A Practical Guide with Examples

Image
 Welcome back everyone, We were discussing about Interactive Classical Event and We had seen the functionality of At line Selection. Now, Before jumping to next event, let’s discuss some important interactive classical report statements. 1. HIDE Statement :- The HIDE statement is one of the fundamental statements for interactive reporting. We can use HIDE statement to store the line-specific information while creating a basic list. This stored information will be used while creating secondary list. Syntax : HIDE<f>. The above statement places the contents of the variable <f> into the HIDE area. We can consider hide area as a table which stores the field name, field value and line number ( system variable SY-LINNO). Pre-requisites for HIDE statements :- HIDE statement must be written after the WRITE statement. HIDE statement must be called inside the loop. Working of the HIDE Statement :- The user selects a line for which data has been stored in the HIDE

Diving Deeper into ABAP: Exploring String Operations - Concatenate, Split, Condense, and More!

Image
 Welcome back everyone, We have discussed the different types of loops and system variables in our previous blog, Today We will continue with String operations. String Operations :- A string is a collection of characters. String is an elementary data type of variable length. String Operations :- CONCATENATE The purpose of concatenate is to combine the strings. Syntax : concatenate <c1> ———— <cn> into <c> separated by <s>. In the above syntax : concatenate = keyword, <c1>————<cn> = individual strings, into = keyword, <c> = final result string, separated by = keyword, <s> = separated. Create a executable program in SE38. *********************************************************************** *Start of Program *Declaring variables DATA : lv_input1(10) type c value 'Welcome', lv_input2(10) type c value 'To', lv_input3(10) type c value 'Home', lv_output type string. "No