RM06CUMS_UPDATE 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 RM06CUMS_UPDATE 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: Include RM06CUMS_UPDATE
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SWE_REQUESTER_TO_UPDATE CALL FUNCTION 'SWE_REQUESTER_TO_UPDATE'.
CHANGEDOCUMENT_OPEN CALL FUNCTION 'CHANGEDOCUMENT_OPEN' EXPORTING objectclass = 'EINKBELEG ' objectid = l_objectid planned_change_number = ' ' planned_or_real_changes = ' ' EXCEPTIONS sequence_invalid = 1 OTHERS = 2.
CHANGEDOCUMENT_MULTIPLE_CASE CALL FUNCTION 'CHANGEDOCUMENT_MULTIPLE_CASE' EXPORTING tablename = 'EKPO ' reftablename = 'WEKPO ' change_indicator = 'U' docu_delete = ' ' TABLES table_old = lt_old_uekpo table_new = lt_new_uekpo EXCEPTIONS nametab_error = 1 open_missing = 2 position_insert_failed = 3 OTHERS = 4.
CHANGEDOCUMENT_CLOSE CALL FUNCTION 'CHANGEDOCUMENT_CLOSE' EXPORTING objectclass = 'EINKBELEG ' objectid = l_objectid date_of_change = sy-datum time_of_change = sy-uzeit tcode = sy-tcode username = sy-uname object_change_indicator = 'U' EXCEPTIONS header_insert_failed = 1 object_invalid = 2 open_missing = 3 no_position_inserted = 4 OTHERS = 5.
ME_GET_GR_QUANTITY CALL FUNCTION 'ME_GET_GR_QUANTITY' EXPORTING ebeln =
-ebeln ebelp = -ebelp webre = -webre datum = pabdat pstr_cpu = pstr_cpu pstr_bud = pstr_bud pstr_bld = pstr_bld IMPORTING grcmg = l_abftz.
ME_GET_GR_QUANTITY CALL FUNCTION 'ME_GET_GR_QUANTITY' EXPORTING ebeln =
-ebeln ebelp = -ebelp webre = -webre datum = sy-datum pstr_cpu = pstr_cpu pstr_bud = pstr_bud pstr_bld = pstr_bld IMPORTING grcmg = l_abftz.
ME_GET_GR_QUANTITY CALL FUNCTION 'ME_GET_GR_QUANTITY' EXPORTING ebeln = ls_pos-ebeln ebelp = ls_pos-ebelp webre =
-webre datum = pabdat pstr_cpu = pstr_cpu pstr_bud = pstr_bud pstr_bld = pstr_bld IMPORTING grcmg = l_abftz.
ME_GET_GR_QUANTITY CALL FUNCTION 'ME_GET_GR_QUANTITY' EXPORTING ebeln = ls_pos-ebeln ebelp = ls_pos-ebelp webre =
-webre datum = sy-datum pstr_cpu = pstr_cpu pstr_bud = pstr_bud pstr_bld = pstr_bld IMPORTING grcmg = l_abftz.
/SPE/INB_INTRANSIT_CALCULATE CALL FUNCTION '/SPE/INB_INTRANSIT_CALCULATE' EXPORTING i_ebeln =
-ebeln i_ebelp = -ebelp * I_MEINS = * IS_LIPS = * IS_LIKP = i_date = pabdat i_option = 'F' IMPORTING e_menge = l_summe1 * E_MEINS = * TABLES * T_EXCLUDED_DOCUMENTS = EXCEPTIONS calculation_not_possible = 1 no_uom_found = 2 no_import_uom_found = 3 uom_conversion_not_possible = 4 OTHERS = 5.
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING INPUT = l_subrc IMPORTING OUTPUT = l_subrc.
/SPE/INB_INTRANSIT_CALCULATE CALL FUNCTION '/SPE/INB_INTRANSIT_CALCULATE' EXPORTING i_ebeln =
-ebeln i_ebelp = -ebelp * I_MEINS = * IS_LIPS = * IS_LIKP = i_date = sy-datum i_option = 'F' IMPORTING e_menge = l_summe2 * E_MEINS = * TABLES * T_EXCLUDED_DOCUMENTS = EXCEPTIONS calculation_not_possible = 1 no_uom_found = 2 no_import_uom_found = 3 uom_conversion_not_possible = 4 OTHERS = 5.
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING INPUT = l_subrc IMPORTING OUTPUT = l_subrc.
ME_GET_GR_QUANTITY CALL FUNCTION 'ME_GET_GR_QUANTITY' EXPORTING ebeln =
-ebeln ebelp = -ebelp webre = -webre datum = sy-datum pstr_cpu = pstr_cpu pstr_bud = pstr_bud pstr_bld = pstr_bld IMPORTING grcmg = l_abftz.
/SPE/INB_INTRANSIT_CALCULATE CALL FUNCTION '/SPE/INB_INTRANSIT_CALCULATE' EXPORTING i_ebeln =
-ebeln i_ebelp = -ebelp * I_MEINS = * IS_LIPS = * IS_LIKP = i_date = sy-datum i_option = 'F' IMPORTING e_menge = l_summe2 * E_MEINS = * TABLES * T_EXCLUDED_DOCUMENTS = EXCEPTIONS calculation_not_possible = 1 no_uom_found = 2 no_import_uom_found = 3 uom_conversion_not_possible = 4 OTHERS = 5.
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING INPUT = l_subrc IMPORTING OUTPUT = l_subrc.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.