Menu

SAP Function Module WRITE_AND_CALL_DBPROG

Writes a program generated in Fgrp SDB2 and executes it

The Function Module WRITE_AND_CALL_DBPROG (Writes a program generated in Fgrp SDB2 and executes it) is a standard Function Module in SAP ERP and is part of the function group SDB2 within the package SDIC.

Technical Information

Function Module WRITE_AND_CALL_DBPROG
Short Text Writes a program generated in Fgrp SDB2 and executes it
Function Group SDB2
Package SDIC
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ABAP_FLAG LIKE SPACE Execute generated code from ABAP (EXEC-SQL)
MAX_SEVERITY LIKE 'E'
NO_EXEC LIKE SPACE Only write, do not execute
PRID LIKE SY-TABIX 0
PROGNAME LIKE TRDIR-NAME SPACE Required name of the program

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
GENPROG LIKE TRDIR-NAME Actual name of program
RC LIKE SY-SUBRC Return code of called form

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
STATEMENTS LIKE Table with statements

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
PROGRAM_NOT_WRITTEN Program could not be written
SQL_ERROR_OCCURED