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

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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

Paramètre Reférence Type Long. Description
GENPROG TRDIR-NAME C 40 Actual name of program
RC SYST-SUBRC I 4 Return code of called form

Paramètre Reférence Long. Facultatif Description
STATEMENTS 0 Table with statements

Exception Description
OP_FAILURE
PROGRAM_NOT_WRITTEN Program could not be written
SQL_ERROR_OCCURED