SAP Reports / Programs | Cross-Application Components | General Application Functions | Print Workbench(CA-GTF-PWB) SAP CA

EFG_TEMPL_GENPROG_SAPSCRIPT SAP ABAP INCLUDE - EFGTEMPLGENPROGSAPSCRIPT







EFG_TEMPL_GENPROG_SAPSCRIPT is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter EFG_TEMPL_GENPROG_SAPSCRIPT into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT EFG_TEMPL_GENPROG_SAPSCRIPT. "Basic submit
SUBMIT EFG_TEMPL_GENPROG_SAPSCRIPT AND RETURN. "Return to original report after report execution complete
SUBMIT EFG_TEMPL_GENPROG_SAPSCRIPT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT EFG_TEMPL_GENPROG_SAPSCRIPT

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING ARCHIVE_INDEX = C-ARCHIVE_INDEX ARCHIVE_PARAMS = C-ARCHIVE_PARAMS DEVICE = X_DEVICE DIALOG = C-DIALOG OPTIONS = C-ITCPO RAW_DATA_INTERFACE = C-RDI MAIL_RECIPIENT = C-RECIPIENT mail_sender = c-sender SPONUMIV = x_sponumiv IMPORTING RESULT = Y_ITCPP EXCEPTIONS CANCELED = 1 DEVICE = 2 FORM = 3 OPTIONS = 4 UNCLOSED = 5 OTHERS = 6.

START_FORM CALL FUNCTION 'START_FORM' EXPORTING ARCHIVE_INDEX = C-ARCHIVE_INDEX FORM = C-SAP_FORM LANGUAGE = C-LANGU STARTPAGE = C-STARTPAGE PROGRAM = '$PROGNAME$' EXCEPTIONS FORM = 1 FORMAT = 2 UNENDED = 3 UNOPENED = 4 UNUSED = 5 OTHERS = 6.

EFG_READ_TEXT CALL FUNCTION 'EFG_READ_TEXT' EXPORTING X_TDNAME = L_TDNAME X_TDSPRAS = L_TDSPRAS X_CLIENT = '$CLIENT$' IMPORTING Y_THEAD = L_THEAD TABLES YT_LINES = LT_LINES EXCEPTIONS NOT_QUALIFIED = 1 FAILED = 2 NOT_FOUND = 3 OTHERS = 99.

WRITE_FORM_LINES CALL FUNCTION 'WRITE_FORM_LINES' EXPORTING FUNCTION = X_FUNCTION HEADER = L_THEAD TYPE = X_TYPE WINDOW = X_WINDOW TABLES LINES = LT_LINES EXCEPTIONS FUNCTION = 1 TYPE = 2 UNOPENED = 3 UNSTARTED = 4 WINDOW = 5 OTHERS = 6.

END_FORM CALL FUNCTION 'END_FORM' EXCEPTIONS UNOPENED = 1 BAD_PAGEFORMAT_FOR_PRINT = 2 SPOOL_ERROR = 3 CODEPAGE = 4 others = 5.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' IMPORTING RESULT = Y_ITCPP RDI_RESULT = Y_RDI_RESULT TABLES OTFDATA = YT_OTF EXCEPTIONS UNOPENED = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name EFG_TEMPL_GENPROG_SAPSCRIPT or its description.