SAP Function WRITE_AND_CALL_DBPROG - Writes a program generated in Fgrp SDB2 and executes it

Parameter Reference Type Length Default Optional Text
ABAP_FLAG 0 SPACE X Execute generated code from ABAP (EXEC-SQL)
MAX_SEVERITY 0 'E' X
NO_EXEC 0 SPACE X Only write, do not execute
PRID SYST-TABIX I 4 0 X
PROGNAME TRDIR-NAME C 40 SPACE X Required name of the program

Parameter Reference Type Length Text
GENPROG TRDIR-NAME C 40 Actual name of program
RC SYST-SUBRC I 4 Return code of called form

Parameter Reference Length Optional Text
STATEMENTS 0 Table with statements

Exception Text
OP_FAILURE
PROGRAM_NOT_WRITTEN Program could not be written
SQL_ERROR_OCCURED