SAP Reports / Programs | Financial Accounting | Special Purpose Ledger | Information System(FI-SL-IS) SAP FI

MGRWDF40 SAP ABAP INCLUDE - documentation and ABAP source code







MGRWDF40 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 MGRWDF40 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 MGRWDF40. "Basic submit
SUBMIT MGRWDF40 AND RETURN. "Return to original report after report execution complete
SUBMIT MGRWDF40 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 MGRWDF40

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:

G_RP_GR31_SET_COPY_PARAMETERS CALL FUNCTION 'G_RP_GR31_SET_COPY_PARAMETERS' EXPORTING TARGET_LIB = CR_LIB2 TARGET_RNAME = CR_RNAME2.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING SETNAME = RRD-SETNR IMPORTING INFO = LOC_SETINFO EXCEPTIONS OTHERS = 1.

G_SET_AUTHORITY_CHECK CALL FUNCTION 'G_SET_AUTHORITY_CHECK' EXPORTING ACTVT = '03' AUTHGR = LOC_SETINFO-AUTHGR.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING SETNAME = RCD-SETNR IMPORTING INFO = LOC_SETINFO EXCEPTIONS OTHERS = 1.

G_SET_AUTHORITY_CHECK CALL FUNCTION 'G_SET_AUTHORITY_CHECK' EXPORTING ACTVT = '03' AUTHGR = LOC_SETINFO-AUTHGR.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING SETNAME = RSD-SETNR IMPORTING INFO = LOC_SETINFO.

G_SET_AUTHORITY_CHECK CALL FUNCTION 'G_SET_AUTHORITY_CHECK' EXPORTING ACTVT = '03' AUTHGR = LOC_SETINFO-AUTHGR.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING OBJECT = TEXT-071.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING OBJECT = TEXT-071.

G_RW_TEXTNAME_GET CALL FUNCTION 'G_RW_TEXTNAME_GET' EXPORTING RW_REPORT = CR_RNAME1 RW_LIBRARY = CR_LIB1 IMPORTING TEXT_NAME = REPORT_TEXT_NAME.

REPORT_TEXT_SELECT CALL FUNCTION 'REPORT_TEXT_SELECT' EXPORTING APPLICATION = APPLICATIONS-FI_GLX_RW TEXT_NAME = REPORT_TEXT_NAME TEXT_TYPE = '*' TABLES TEXT_HEADER = I_RTXTH TEXT_LINES_HEADER = I_RTXTT EXCEPTIONS NO_TEXT_FOUND = 01 OTHERS = 99.

G_RW_TEXTNAME_GET CALL FUNCTION 'G_RW_TEXTNAME_GET' EXPORTING RW_REPORT = CR_RNAME2 RW_LIBRARY = CR_LIB2 IMPORTING TEXT_NAME = REPORT_TEXT_NAME.

REPORT_TEXT_INIT CALL FUNCTION 'REPORT_TEXT_INIT' EXPORTING APPLICATION = APPLICATIONS-FI_GLX_RW TEXT_NAME = REPORT_TEXT_NAME TEXT_TYPE = I_RTXTT-TEXT_TYPE LANGU = I_RTXTT-TEXT_LANGU MODEL_TEXT_NAME = I_RTXTT-TEXT_NAME MODEL_LANGU = I_RTXTT-TEXT_LANGU PAGE_WIDTH = TEXT_WIDTH EXCEPTIONS INVALID_APPLICATION = 01 INVALID_TEXT_TYPE = 02 NEW_LANGUAGE = 03 NEW_TEXT = 04 OTHERS = 99.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING LANGUAGE = '*' OBJECT = DOCU_OBJECT ID = RW_TEXTS-ID_REPORT NAME = CUR_TEXT_NAME IMPORTING ENTRIES = TXT_COUNT TABLES SELECTIONS = TEXT_HEADER.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING LANGUAGE = TEXT_HEADER-TDSPRAS OBJECT = TEXT_HEADER-TDOBJECT ID = TEXT_HEADER-TDID NAME = TEXT_HEADER-TDNAME IMPORTING HEADER = TEXT_HEADER TABLES LINES = TMP_LINES.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING HEADER = TEXT_HEADER IMPORTING FUNCTION = TXT_FUNCTION NEWHEADER = TEXT_HEADER TABLES LINES = TMP_LINES.



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