If you want to delete every records of those tables, don't delete each record with the dynamic option for DELETE statement, same dbtab syntax, but use following FM in sequence (performance)
- DB_STORAGE_SAVE " save current attributes of database table
- DD_DROP_TABLE " delete database table
- DD_GET_NAMETAB " read nametab
- DD_CREATE_TABLE " recreate database table
For other requirements:
- OPEN-SQL requirements, press F1 on open-sql statement look for dynamic options like dbtab syntax or sql cond.
- dynamic internal tables, use scn or sap search tool, or for ddic structure look at syntax of CREATE DATA statement.
Regards,
Raymond