SAP Reports / Programs | Controlling | Profitability Analysis(CO-PA) SAP CO

MGPSPI10 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

ENQUEUE_EG821SE CALL FUNCTION 'ENQUEUE_EG821SE' EXPORTING SPRED = T821S-SPRED EXCEPTIONS FOREIGN_LOCK = 4 SYSTEM_FAILURE = 8.

POPUP_TO_CONFIRM_WITH_VALUE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_VALUE' EXPORTING TEXT_AFTER = TEXT-220 OBJECTVALUE = T821S-SPRED TEXT_BEFORE = TEXT-210 TITEL = TEXT-200 DEFAULTOPTION = 'N' IMPORTING ANSWER = CHANGE.

DEQUEUE_EG821SE CALL FUNCTION 'DEQUEUE_EG821SE' EXPORTING SPRED = T821S-SPRED.

ENQUEUE_EG821SE CALL FUNCTION 'ENQUEUE_EG821SE' EXPORTING SPRED = T821S-SPRED EXCEPTIONS FOREIGN_LOCK = 4 SYSTEM_FAILURE = 8.

COPA_GET_ERK CALL FUNCTION 'COPA_GET_ERK' EXPORTING MODE = 'P' IMPORTING ERKRS = COPA_ERKRS OK_CODE = COPA_OK.

RKE_READ_ERKRS_MESSAGE CALL FUNCTION 'RKE_READ_ERKRS_MESSAGE' EXPORTING I_ERKRS = COPA_ERKRS IMPORTING E_V_TKEB = L_S_V_TKEB.

RKE_GET_ASPECT CALL FUNCTION 'RKE_GET_ASPECT' EXPORTING MODE = 'P' IMPORTING ASPET = ECEIS_ASPECT OK_CODE = ECEIS_OKCODE.

RKC_ASPET_INFO CALL FUNCTION 'RKC_ASPET_INFO' EXPORTING ASPET = ECEIS_ASPECT IMPORTING FYVCHA = ECEIS_FYVCHA FYVAR0 = T821S-PERIV EXCEPTIONS OTHERS = 4.

VERSION_GET CALL FUNCTION 'VERSION_GET' EXPORTING I_VERSO = ECEIS_VERSO IMPORTING E_VERSO = ECEIS_VERSO.

ENQUEUE_EG821SE CALL FUNCTION 'ENQUEUE_EG821SE' EXPORTING SPRED = T821S-SPRED EXCEPTIONS FOREIGN_LOCK = 4 SYSTEM_FAILURE = 8.

G_DISPLAY_SELECTION_DYNPRO CALL FUNCTION 'G_DISPLAY_SELECTION_DYNPRO' EXPORTING DYNP_TITLE = RGSEL-DYNP_TITLE SEL_TITLE1 = RGSEL-SEL_TITLE1 SEL_TITLE2 = RGSEL-SEL_TITLE2 WITHOUT_SELECTION = WORK(1) IMPORTING SEL_INDEX = SY-TABIX TABLES SEL_TABLE = SEL_TABLE EXCEPTIONS NO_LINES = 6 NO_LINE_PICKED = 8.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = DYNAME DYNUMB = DYNUMB TRANSLATE_TO_UPPER = 'X' TABLES DYNPFIELDS = DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 01 INVALID_DYNPROFIELD = 02 INVALID_DYNPRONAME = 03 INVALID_DYNPRONUMMER = 04 INVALID_REQUEST = 05 NO_FIELDDESCRIPTION = 06 UNDEFIND_ERROR = 07.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = DYNAME DYNUMB = DYNUMB TABLES DYNPFIELDS = DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 01 INVALID_DYNPROFIELD = 02 INVALID_DYNPRONAME = 03 INVALID_DYNPRONUMMER = 04 INVALID_REQUEST = 05 NO_FIELDDESCRIPTION = 06 UNDEFIND_ERROR = 07.



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