ABAP DESCRIBE statement keyword to get information about tables and fields
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.
data: it_ekko type STANDARD TABLE OF ekko, wa_ekko like line of it_ekko, ld_lines type i. DESCRIBE TABLE it_ekko LINES ld_lines KIND ld_kind "T = standard, "S" = sorted, "H" = hashed OCCURS ld_occurs "initial memory requirement.
Use the DESCRIBE command to get information about a field
This statement captures several properties of a field and assigns them to the specified variables.
Properties that can be captured include LENGTH, TYPE, OUTPUT-LENGTH, DECIMALS, HELP-ID, EDIT MASK
data: it_ekko type STANDARD TABLE OF ekko, wa_ekko like line of it_ekko, ld_len type string, ld_type type string, ld_ol type string, ld_dec type string, ld_hlp type string, ld_msk type string. DESCRIBE field wa_ekko-ebeln LENGTH ld_len IN CHARACTER MODE TYPE ld_type OUTPUT-LENGTH ld_ol DECIMALS ld_dec HELP-ID ld_hlp EDIT MASK ld_msk.
Related Articles
ABAP DELETE statement keyword to delete data from SAP internal and database tables
PERFORM TABLES command passing internal table as parameter
ABAP read command to read line of internal table in SAP
ABAP UPDATE command to modify database field values
AUTHORITY-CHECK abap Statement / command
ABAP delete command in SAP
ABAP MODIFY statement to update SAP data within database and internal tables
ABAP WRITE statement command with in SAP to display data report to users
SAP ABAP Statement syntax including basic implementation code
Concatenate ABAP statement syntax for concatenating data objects, sting values or rows of an SAP internal table
ABAP EXPORT data TO MEMORY ID and import it back again
IF, CHECK & WHEN ABAP commends example source code and information
Call Function module IN BACKGROUND TASK - Execute abap code in seperate background process
Function module IN UPDATE TASK statement - Execute abap code in seperate unit of work
ABAP STRLEN command to get the value length of a SAP field
SAP ABAP SELECT command and its different uses
SELECT..ENDSELECT command
ABAP FOR ALL ENTRIES SELECT statement addition in SAP data retrieval
ABAP SELECT inner join statement to select from two tables at the same time
SELECT directly into an internal table
SELECT directly into an internal table when field order is different
Function module STARTING NEW TASK statement - Execute abap code in seperate work process