SAP Reports / Programs | Materials Management | Purchasing | Vendor Outline Agreements(MM-PUR-OA) SAP MM

MMBSI_CONTRACT_MIGRATION SAP ABAP Report - Migration Report for Central Contracts







MMBSI_CONTRACT_MIGRATION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is only relevant for central contract management in SRM 7...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 MMBSI_CONTRACT_MIGRATION 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 MMBSI_CONTRACT_MIGRATION. "Basic submit
SUBMIT MMBSI_CONTRACT_MIGRATION AND RETURN. "Return to original report after report execution complete
SUBMIT MMBSI_CONTRACT_MIGRATION VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_SIM = Simulation Mode
Selection Text: P_RFCDS = SRM System RFC Destination
Selection Text: P_PACK = Package Size
Selection Text: P_OBJID = Contract Number
Title: Migration Report for Central Contracts
Text Symbol: 022 = Results of simulation run
Text Symbol: 021 = Contract not relevant for migration
Text Symbol: 020 = SRM not yet upgraded to 7.0
Text Symbol: 019 = ) RFC destination. Please check the RFC destination entered
Text Symbol: 018 = Communication error with given (
Text Symbol: 017 = Error while closing the background job
Text Symbol: 016 = Error while opening the background job
Text Symbol: 015 = Required business function 'LOG_MM_P2PSE_1' is not switched on
Text Symbol: 014 = Migration Report
Text Symbol: 013 = scheduled. Plase check the spool.
Text Symbol: 012 = Background job
Text Symbol: 011 = Error with ALV report
Text Symbol: 010 = No Authorization to run migration report
Text Symbol: 009 = RFC destination not maintained
Text Symbol: 008 = No migration relevant contracts exist
Text Symbol: 007 = Contract migrated successfully
Text Symbol: 006 = Contract cannot be migrated. GOA is not yet migrated in SRM
Text Symbol: 005 = Contract cannot be migrated. ERP contract is locked
Text Symbol: 004 = Contract cannot be migrated. Additional service line in ERP contract
Text Symbol: 003 = Contract cannot be migrated. Additional item in ERP contract
Text Symbol: 001 = Input Data


INCLUDES used within this REPORT MMBSI_CONTRACT_MIGRATION

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:

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'MMBSI_S_CC_MIGRATION_STATUS' TABLES t_outtab = me->mt_msg EXCEPTIONS program_error = 1 OTHERS = 2.

ENQUEUE_EMEKKOS CALL FUNCTION 'ENQUEUE_EMEKKOS' EXPORTING mode_ekko = 'S' ebeln = me->mv_contract EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_EMEKKOS CALL FUNCTION 'DEQUEUE_EMEKKOS' "#EC * EXPORTING mode_ekko = 'S' ebeln = me->mv_contract.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' DESTINATION me->mo_util->mv_rfc_dest EXPORTING funcname = '/SAPSRM/CHECK_GOA_CONV_STATUS' EXCEPTIONS function_not_exist = 1 communication_failure = 2.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' DESTINATION me->mo_util->mv_rfc_dest EXPORTING funcname = '/SAPSRM/GET_CC_ADDITIONAL_INFO' EXCEPTIONS function_not_exist = 1 communication_failure = 2.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = me->mo_util->mv_rfc_dest EXCEPTIONS destination_not_open = 0 OTHERS = 0.

/SAPSRM/CHECK_GOA_CONV_STATUS CALL FUNCTION '/SAPSRM/CHECK_GOA_CONV_STATUS' DESTINATION me->mo_util->mv_rfc_dest CHANGING ct_goa_status = lr_status->* EXCEPTIONS communication_failure = 0.

/SAPSRM/GET_CC_ADDITIONAL_INFO CALL FUNCTION '/SAPSRM/GET_CC_ADDITIONAL_INFO' DESTINATION me->mo_util->mv_rfc_dest CHANGING ct_additional_info = lr_addit->* EXCEPTIONS communication_failure = 0.

ME_UPDATE_DOCUMENT CALL FUNCTION 'ME_UPDATE_DOCUMENT' IN UPDATE TASK EXPORTING nekko = ls_nekko oekko = ls_oekko TABLES xeket = lt_eket xekkn = lt_ekkn xekpo = lt_nekpo xkomv = lt_komv yeket = lt_eket yekkn = lt_ekkn yekpo = lt_oekpo ykomvi = lt_komv xekbes = lt_ekbes.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = me->mo_util->mv_rfc_dest EXCEPTIONS destination_not_open = 0 OTHERS = 0.



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