What is OCCURS 10 in sap?
What is OCCURS 10 in sap?
OCCURS 10 will allocate initial size of internal table as 10 records. If any more records are added then the size of internal table is again increased to another 10 lines to accomdate. This size does not belong to the data type of the internal table, and does not affect the type check.
What is OCCURS in abap?
The OCCURS clause is used to define the body of an internal table by declaring the fields for the table. When the OCCURS clause is used, you can specify a numeric constant ‘n’ to determine additional default memory if required. The default size of memory that is used by the OCCUR 0 clause is 8 KB.
What is the use of occurs 0 in SAP ABAP?
OCCURS 0 specifies that it is an internal table which as 0 lines allocated to memory, and the HEADER LINE, means that there is an implicit header line or work area, so you do not need to create a separate explicit workarea in which to read the data into.
What is the use of like line of in SAP ABAP?
LIKE LINE OF means that the variable will be of the table line type. LIKE means that the variable will be exactly of the same type as the one sitting after this key word.
What is Sy Tabix in SAP ABAP?
sy-tabix is used to count the current row of an internal table.
What is hash table in SAP ABAP?
Hashed table. Table category of an internal table whose rows are stored internally in accordance with a hash algorithm and can be accessed using a unique hash key. A hashed table does not have a primary table index, but it can be assigned a secondary table index using a secondary table key.
What are modularization techniques in ABAP?
The application program in ABAP can be divided into smaller units using the technique called Modularization. Modularization is a technique used to divide the application program into smaller units to maintain easily and reduce the code redundancy.
What is the use of Sy-Subrc in SAP ABAP?
It is an integer value like 0, 4, 8 or other. This value is used to determine the status of the execution of an ABAP statement. If SY-SUBRC is 0, the ABAP statement has been executed successfully. If the value is different from 0, than the statement has raised an error or warning.
What is CLNT data type in SAP?
From a technical perspective, the data type CLNT describes objects of the type CHAR with length 3. If the data type CLNT is used for the first key field of a database table, this makes the database table client-specific. LANG for text language.
What is difference between type and like?
Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.
What is difference between Sy-Tabix and Sy-index?
Both are meant for index values only. But the Sy-tabix is used when you loop an internal table and the Sy-index can be used in case of Do/while loops.