Form a dynamic Query in SAP ABAP


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

 

Updated on: 12-Jun-2020

383 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements