RMCP6AKO is a standard Executable ABAP Report 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 RMCP6AKO into the relevant SAP transactions such as SE38 or SE80
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.
Title: Program for Aggregate Copy Between Info Structures
INCLUDE MMCP6TO1.
INCLUDE MMCP6TP1.
INCLUDE RMCP6F02.
No SAP DATABASE tables are accessed within this REPORT code!
MCP_MESSAGE_INIT CALL FUNCTION 'MCP_MESSAGE_INIT'.
MC_PERIODE_ZUM_DATUM CALL FUNCTION 'MC_PERIODE_ZUM_DATUM' " INSERT 3.1g
MC_PERIO_GET_FIRST_AND_LASTDAY CALL FUNCTION 'MC_PERIO_GET_FIRST_AND_LASTDAY' " INSERT 3.1g
MC_GSTRU_PRUEFEN CALL FUNCTION 'MC_GSTRU_PRUEFEN' EXPORTING I_GSTRU = INT_KZAZU-QSTRU IMPORTING * O_DATFCNT = O_KEYCNT = KEYCNT_Q * O_SUBRC = * O_UNITCNT = TABLES T_DATF = DATENFELDER_Q T_KEYS = KEYFELDER_Q T_UNITS = IP_EINH_Q.
MC_PERIODE_ZUM_DATUM CALL FUNCTION 'MC_PERIODE_ZUM_DATUM' " INSERT 3.1g
MC_PERIO_GET_FIRST_AND_LASTDAY CALL FUNCTION 'MC_PERIO_GET_FIRST_AND_LASTDAY' " INSERT 3.1g
MC_PERIODE_ZUM_DATUM CALL FUNCTION 'MC_PERIODE_ZUM_DATUM' EXPORTING IDATE = PGABV-ERTAG IPERKZ = PGABV-PERKZ IPERIV = PGABV-PERIV IMPORTING EPERID = PGABV-PERID.
MC_UEBERNAHME_ALLGEMEIN CALL FUNCTION 'MC_UEBERNAHME_ALLGEMEIN' EXPORTING IBISTG = BIS_DAT IGSTRU_Z = GSTRU_Z IGSTRU_Q = GSTRU_Q IVERSI = VRSIO_Q IVONTG = VON_DAT IFABKL = SAV_T445A-FABKL IFLG_DIALOG = FLG_DIALOG IFLG_AGGREG = 'X' * importing * eflg_quellpl = TABLES IKENNZAHLEN = KENNZAHLEN_UEBERG IKEYFELDER_Z = KEYFELDER_COPY IKEYFELDER_Q = KEYFELDER_Q IPGABV = PGABV IPGABV_ALLG = INT_PGABV_ALLG EXCEPTIONS DATE_INVALID_FOR_WEEK_CALC = 1 FACTORY_CAL_READ_NOT_POSSIBLE = 2 PERIOD_READ_NOT_POSSIBLE = 3 PG_FOR_MATERIAL_NOT_FOUND = 4 PG_STRUCTURE_NOT_POSSIBLE = 5 PLANTCODE_NOT_IN_T001W = 6 WEEK_INVALID_FOR_DATE_CALC = 7 IPGABV_FALSCH_GEFUELLT = 8 ABBRECHEN_GEDRUECKT = 9 SELECTION_NOT_IN_SOURCE_IS = 10 "ins H 891059 OTHERS = 11. "cha H 891059
MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.