Form a dynamic Query in SAP ABAP

SAP HANASAPSAP Basis

You can indeed achieve it. You just follow the below steps:

Step 1 − Define the input parameters

DATA:   table_name  TYPE string VALUE  ‘TABLE’, column_name TYPE string VALUE  'COLBNAME',
   name_value  TYPE string VALUE  'COLVALUE'

Step 2 − Create a table type to hold the output results.

DATA:   results TYPE REF TO data, TableType TYPE string
FIELD-SYMBOLS <results> TYPE STANDARD TABLE

Step3 − Create a dynamic query to fill the table

 

raja
Published on 06-Dec-2017 21:27:39
Advertisements