SAP Reports / Programs | Trader's and Scheduler's Workbench | Industry Solution Oil | Trader's and Scheduler's Workbench(IS-OIL-DS-TSW) SAP IS

MOIFAFTX SAP ABAP INCLUDE - Include MRN longtext processing form routines







MOIFAFTX 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 MOIFAFTX 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 MOIFAFTX. "Basic submit
SUBMIT MOIFAFTX AND RETURN. "Return to original report after report execution complete
SUBMIT MOIFAFTX VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include MRN longtext processing form routines


INCLUDES used within this REPORT MOIFAFTX

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:

DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING ID = XTHEAD-TDID LANGUAGE = XTHEAD-TDSPRAS NAME = XTHEAD-TDNAME OBJECT = XTHEAD-TDOBJECT EXCEPTIONS NOT_FOUND = 1.

EDIT_TEXT_INLINE CALL FUNCTION 'EDIT_TEXT_INLINE' EXPORTING DISPLAY = L_DISPLAY HEADER = THEAD INLINE_COUNT = 1 SAVE = C_FLAG_ON TEXTSCREEN = PI_TXTSCREEN IMPORTING FUNCTION = L_TXTFUNCTION NEWHEADER = THEAD TABLES INLINES = TINLINETAB LINES = TLINETAB EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 4.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING HEADER = THEAD INSERT = ' ' IMPORTING FUNCTION = L_TXTFUNCTION NEWHEADER = THEAD TABLES LINES = TLINETAB EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 5.

INIT_TEXT CALL FUNCTION 'INIT_TEXT' EXPORTING ID = XTHEAD-TDID LANGUAGE = XTHEAD-TDSPRAS NAME = XTHEAD-TDNAME OBJECT = XTHEAD-TDOBJECT IMPORTING HEADER = THEAD TABLES LINES = TLINETAB EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 4.

READ_TEXT_INLINE CALL FUNCTION 'READ_TEXT_INLINE' EXPORTING ID = L_TDID INLINE_COUNT = 1 LANGUAGE = XTHEAD-TDSPRAS NAME = L_TDNAME OBJECT = L_TDOBJECT IMPORTING HEADER = THEAD TABLES INLINES = TINLINETAB LINES = TLINETAB EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 NOT_FOUND = 4 OBJECT = 5.

DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING ID = XTHEAD-TDID LANGUAGE = XTHEAD-TDSPRAS NAME = XTHEAD-TDNAME OBJECT = XTHEAD-TDOBJECT EXCEPTIONS NOT_FOUND = 1.

INIT_TEXT CALL FUNCTION 'INIT_TEXT' EXPORTING ID = XTHEAD-TDID LANGUAGE = XTHEAD-TDSPRAS NAME = XTHEAD-TDNAME OBJECT = XTHEAD-TDOBJECT IMPORTING HEADER = THEAD TABLES LINES = L_LINETAB EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 4.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING HEADER = THEAD INSERT = ' ' IMPORTING NEWHEADER = THEAD TABLES LINES = TLINETAB EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 5.

INIT_TEXT CALL FUNCTION 'INIT_TEXT' EXPORTING ID = TL_THEAD-TDID LANGUAGE = TL_THEAD-TDSPRAS NAME = TL_THEAD-TDNAME OBJECT = TL_THEAD-TDOBJECT IMPORTING HEADER = TL_THEAD TABLES LINES = TLINETAB EXCEPTIONS ID = 01 LANGUAGE = 02 NAME = 03 OBJECT = 04.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING CLIENT = SY-MANDT HEADER = TL_THEAD INSERT = ' ' SAVEMODE_DIRECT = ' ' IMPORTING FUNCTION = TL_TXTFUNCTION NEWHEADER = TL_THEAD TABLES LINES = TLINETAB EXCEPTIONS ID = 01 LANGUAGE = 02 NAME = 03 OBJECT = 04.

RENAME_TEXT CALL FUNCTION 'RENAME_TEXT' EXPORTING OBJECT = CATALOG-TDOBJECT NAME = CATALOG-TDNAME ID = CATALOG-TDID LANGUAGE = CATALOG-TDSPRAS NEWNAME = L_CATALOG_NAME_NEU EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT' EXPORTING OBJECT = C_TDOBJECT_PBL.

RENAME_TEXT CALL FUNCTION 'RENAME_TEXT' EXPORTING OBJECT = XTHEAD-TDOBJECT NAME = XTHEAD-TDNAME ID = XTHEAD-TDID LANGUAGE = XTHEAD-TDSPRAS NEWNAME = L_TDNAME EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING OBJECT = C_TDOBJECT_PBL NAME = XTHEAD-TDNAME ID = '* ' LANGUAGE = '*' IMPORTING ENTRIES = SY-TFILL TABLES SELECTIONS = REFTEXT.

DOCUMENT_ASSIGNMENT CALL FUNCTION 'DOCUMENT_ASSIGNMENT' EXPORTING CHECK_EXIST = 'X' DOKOB = DRAD_DOKOB DOKOB_VORLAGE = ' ' OBJKY = DRAD_OBJKY OBJKY_VORLAGE = ' ' OBJTXT = ' ' OPCODE = DRAD_OPCOD REFRESH_FLAG = DRAD_REFRESH VORSCHLAG_DOKAR = ' ' IMPORTING VB_FLAG = DRAD_VB TABLES TABDRAD = XDRAD.

DRAD_CHANGE_OBJECT_KEYS CALL FUNCTION 'DRAD_CHANGE_OBJECT_KEYS' TABLES OLD_NEW = CV01_TAB EXCEPTIONS OTHERS = 1.



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 MOIFAFTX or its description.