In the selection window, the user needs to insert the table name, and I need to get the first 3 fields from this table and display them in ALV for output. From the reading tutorials, I understand that I need to call the cl_alv_table_create=>create_dynamic_table , but I don't know how to create a field directory.
DATA: t_newtable TYPE REF TO data, t_fldcat TYPE lvc_t_fcat, CALL METHOD cl_alv_table_create=>create_dynamic_table EXPORTING it_fieldcatalog = t_fldcat IMPORTING ep_table = t_newtable.
sap abap
usesser
source share