For more detailed information about an internal table, it is best to use the methods of the RTTS instead of the statement DESCRIBETABLE. If no addition is specified, the statement DESCRIBETABLE only sets the system fields sy-tfill and sy-tleng.
Today, we’re going to unravel the "DESCRIBETABLE" keyword, an essential element when you're navigating the vast ocean of SAPABAP programming. This guide will help you understand how to effectively use the DESCRIBETABLE function, making your coding life smoother and more efficient.
Latest notes: For more detailed information about an internal table, use the RTTS methods of the DESCRIBETABLE statement. If an addition is not specified, the DESCRIBETABLE statement sets system fields sy-tfill and sy-tleng only.
The statement DESCRIBE is mainly suitable for determining the properties of data objects of elementary data types. When DESCRIBE is used for structures or data objects of deep data types like strings, internal tables, or reference variables, only elementary properties can be determined.
In connection with ABAP Objects, SAP has introduced a RTTI concept based on system classes to determine type attributes at runtime. This concept applies to all ABAP types and as such covers all the functions of the DESCRIBETABLE statement.
For detailed information about an internal table, you should use the methods of RTTS instead of the statement DESCRIBETABLE. Without the specification of an addition, the statement DESCRIBETABLE only sets the system fields sy-tfill and sy-tleng.
Use the DESCRIBE statement to get information about an internal table such as number of lines in an itab. This statement captures several properties of an internal table and assigns them to the specified variables, such LINES, KIND, OCCURS.
For more detailed information about an internal table, it is best to use the methods of the RTTS of the statement DESCRIBETABLE. If no addition is specified, the statement DESCRIBETABLE only sets the system fields sy-tfill and sy-tleng.
Here is a list of possible New syntax for describetableabap related tables in SAP. You will get more details about each SAPtable by clicking on the table name.