Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow
List SAP Table Fields and Properties using ABAP Function Module
SAP programmers especially using dynamic programming features of ABAP can use DDIF_NAMETAB_GET function module to list table columns and get field properties of a SAP database table.
Following ABAP code fetches SAP table properties for requested table and returns data in a table.
It is possible for ABAP developers to get missing information about the table field name from data element information by calling ABAP class method cl_abap_typedescr=>describe_by_name( )