ABAP: How to create a dynamic internal table and work area

FIELD-SYMBOLS:<fs_table> TYPE STANDARD TABLE, <fs_table_wa> TYPE ANY. DATA: table_ref TYPE REF TO data, wa_ref TYPE REF TO data. DATA: l_structure TYPE dd02l-tabname value ‘VBAP’.   CREATE DATA table_ref TYPE STANDARD TABLE OF (l_structure). ASSIGN table_ref->* TO <fs_table>. CREATE DATA wa_ref LIKE LINE OF <fs_table>. ASSIGN wa_ref->* TO <fs_table_wa>.FIELD-SYMBOLS:<fs_table> TYPE STANDARD Continue Reading

Create Toolbar in Selection Screen

How to create a toolbar in the selection screen, similar to the one below. Refer the sample code TABLES: sscrfields. SELECTION-SCREEN FUNCTION KEY 1.   INITIALIZATION. sscrfields-functxt_01 = ‘Tool bar www.erpdb.info’.   SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000. PARAMETERS: vbeln LIKE vbak-vbeln. SELECTION-SCREEN END OF BLOCK b1. Continue Reading