SAPMACOP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use the SAPMACOP utility to generate or delete the function modules required for the program interface...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter SAPMACOP 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.
Selection Text: FUNKTION = Function (GEN,FBD)
Selection Text: MCONAME = Matchcode object name
Title: Asynchronous matchcode handling for an MC object
Text Symbol: 001 = Delete and create
Text Symbol: 002 = Delete
Text Symbol: 003 = Delete marked records from
Text Symbol: 004 = Restart at the
Text Symbol: 005 = Matchcode object
Text Symbol: 010 = MC IDs for matchcode object
Text Symbol: 020 = No active MC IDs exist for this MC object
Text Symbol: 021 = No active MC IDs with deletion indicator found for this MC object
Text Symbol: 022 = Caution: MC ID set-up can be continued with 'restart'
Text Symbol: 023 = Warning: no MC IDs available for 'restart'
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
MC_CREATE_ABAP_MCO CALL FUNCTION 'MC_CREATE_ABAP_MCO' EXPORTING MCONAME = MCONAME IMPORTING RC = RC EXCEPTIONS ERROR_MCO_DEFINITION = 1 MCO_NOT_FOUND = 1 MCO_NOT_ACTIVE = 1 * mco_no_mcid = 3 MCO_NO_LANG_FIELD = 1 MCO_NO_FOREIGN_KEY_FIELD = 1 MCO_MISSING_FIELD_DESC = 1 MCO_INTERNAL_ERROR = 1 TOO_MANY_FUNCTIONS = 2 FUNCTION_ALREADY_EXISTS = 2 INVALID_FUNCTION_POOL = 2 MCO_NO_MIPTYPE_FOUND = 3 ERROR_FUNCTION_CR = 4 MCO_DEF_ERROR = 5 NO_FUNCTION_GENERATED = 6 OTHERS = 7.
MC_DELETE_ABAP_MCO CALL FUNCTION 'MC_DELETE_ABAP_MCO' EXPORTING MCONAME = MCONAME EXCEPTIONS MCO_NOT_FOUND = 1 MCO_NOT_ACTIVE = 1 MCO_NO_MCID = 1 MCO_NO_LANG_FIELD = 1 MCO_NO_FOREIGN_KEY_FIELD = 1 MCO_MISSING_FIELD_DESC = 1 MCO_INTERNAL_ERROR = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.