SAP Reports / Programs

SAPRCKM_CONVERT_30_40 SAP ABAP Report - Converter Program for ML Tables and Accounts from Release 3.0 to 4.0







SAPRCKM_CONVERT_30_40 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 SAPRCKM_CONVERT_30_40 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 SAPRCKM_CONVERT_30_40. "Basic submit
SUBMIT SAPRCKM_CONVERT_30_40 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRCKM_CONVERT_30_40 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: R_BWKEY = D Valuation area
Selection Text: P_VERB = Detailed log
Selection Text: P_TEST = D Test run
Selection Text: P_PORT = D Portion int. tables
Title: Converter Program for ML Tables and Accounts from Release 3.0 to 4.0
Text Symbol: 007 = Problem with purchase order
Text Symbol: 006 = ML conversion
Text Symbol: 005 = Message log for converter program - Material Ledger 3.0 -> 4.0 (test run)
Text Symbol: 004 = Processing
Text Symbol: 003 = Message log for converter program - Material Ledger 3.0 -> 4.0
Text Symbol: 002 = Valuation area-selection
Text Symbol: 001 = Converter program - Material Ledger 3.0 -> 4.0


INCLUDES used within this REPORT SAPRCKM_CONVERT_30_40

INCLUDE RCKMU34TOP.
INCLUDE RCKMU34_PARA.
INCLUDE LCKMDTOP_VGART.
INCLUDE RCKMU34F01.
INCLUDE RCKMU34A01.
INCLUDE RCKMU34U01.


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:

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'CKML' object_id = y_objectid no_other_initialize = 'X' EXCEPTIONS OTHERS = 01.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '108' msgty = 'E'.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = f_object object_id = y_objectid.

ENQUEUE_EMMBEWE CALL FUNCTION 'ENQUEUE_EMMBEWE' EXPORTING mandt = sy-mandt bwkey = t_t001k-bwkey EXCEPTIONS foreign_lock = 01 system_failure = 02.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '023' msgty = 'E' msgv1 = t_t001k-bwkey.

MBEW_EXTEND CALL FUNCTION 'MBEW_EXTEND' EXPORTING * KZRFB = ' ' * MAXTZ = ' ' * XVPER = 'X' xvvpr = ' ' * XVJAH = 'X' xvvja = ' ' * IMPORTING * RMBEWH = TABLES mbew_tab = t_mbew * MBEW_EXT_TAB = .

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = f_object object_id = y_objectid.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '100' msgty = 'E' msgv1 = t_t001k-bwkey.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '085' msgty = 'E' msgv1 = t_t001k-bwkey.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = f_object object_id = y_objectid.

CKMH_F_SET_MSG_VARIABLE_MAT CALL FUNCTION 'CKMH_F_SET_MSG_VARIABLE_MAT' EXPORTING i_kalnr = t_ckmlhd-kalnr * I_MATNR = * I_BWTAR = * I_BWKEY = * I_VBELN = * I_POSNR = * I_PSPNR = * I_LIFNR = IMPORTING e_variable_values = h_material_values e_variable_texts = h_material_texts * E_VALUES_LONG = EXCEPTIONS * MISSING_INPUT = 1 * INCONSISTENT_INPUT = 2 * INTERNAL_ERROR = 3 OTHERS = 4 .

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '628' msgty = 'W' msgv1 = h_material_texts msgv2 = h_material_values.

CM_F_MESSAGE * CALL FUNCTION 'CM_F_MESSAGE' * EXPORTING * ARBGB = 'C+' * MSGNR = '004' * MSGTY = 'E' * MSGV1 = T_CKMLHD-MATNR.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = f_object object_id = y_objectid.

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = t_t001k-bwkey.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

CM_F_MESSAGE





CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = t_t001k-bukrs IMPORTING wmarv = t_marv.

CKML_F_TCKM2_EXT_FOR_ONE_VA CALL FUNCTION 'CKML_F_TCKM2_EXT_FOR_ONE_VA' EXPORTING bwkey = t_t001k-bwkey call_by_init_prog = ' ' TABLES t_tckm2_ext = t_tckm2e.

T001_READ CALL FUNCTION 'T001_READ' EXPORTING bukrs = t_t001k-bukrs IMPORTING struct = f_t001 EXCEPTIONS no_entry = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '116' msgty = 'E' msgv1 = t_t001k-bukrs.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

CONVERT_CKML2_TO_CKMLHD_PR CALL FUNCTION 'CONVERT_CKML2_TO_CKMLHD_PR' EXPORTING f_ckml2 = t_ckml2 f_tckm2e = t_tckm2e i_periv = f_t001-periv IMPORTING f_ckmlhd = t_ckmlhd TABLES t_ckmlpr = t_ckmlpr EXCEPTIONS OTHERS = 0.

CKMS_BUFFER_WRITE CALL FUNCTION 'CKMS_BUFFER_WRITE' EXPORTING write_mode = 'I' build_smbew = ' ' TABLES t_ckmlhd = t_ckmlhd_buf t_ckmlpr = t_ckmlpr_buf.

CKML_F_MARK_COST_ESTIMATE CALL FUNCTION 'CKML_F_MARK_COST_ESTIMATE' EXPORTING f_ckiwerk = f_ckiwerk f_mack4 = f_mack4 i_startup = 'X' TABLES t_ckmlpr_in = t_ckmlpr_10 t_ckmlpr_out = t_ckmlpr.

CONVERT_CKML3_TO_CKMLPP_CR CALL FUNCTION 'CONVERT_CKML3_TO_CKMLPP_CR' EXPORTING f_ckml3 = t_ckml3 f_tckm2e = t_tckm2e IMPORTING f_ckmlpp = t_ckmlpp TABLES t_ckmlcr = t_ckmlcr.

CKMS_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.

CONVERT_CKML3_TO_CKMLPP_CR CALL FUNCTION 'CONVERT_CKML3_TO_CKMLPP_CR' EXPORTING f_ckml3 = t_ckml3 f_tckm2e = t_tckm2e IMPORTING f_ckmlpp = t_ckmlpp TABLES t_ckmlcr = t_ckmlcr.

CKMS_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '110' msgty = 'S' msgv1 = t_t001k-bwkey.

CM_F_MESSAGE call function 'CM_F_MESSAGE' exporting arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = f_object object_id = y_objectid.

CKML_F_SET_BWKEY CALL FUNCTION 'CKML_F_SET_BWKEY' EXPORTING bwkey = t_t001k-bwkey.

CKML_F_GET_WWO CALL FUNCTION 'CKML_F_GET_WWO' IMPORTING wwo = f_wwo.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING * KZRFB = ' ' * MAXTZ = 0 bukrs = t_t001k-bukrs IMPORTING wmarv = t_marv.




CKML_F_TCKM2_EXT_FOR_ONE_VA CALL FUNCTION 'CKML_F_TCKM2_EXT_FOR_ONE_VA' EXPORTING bwkey = t_t001k-bwkey call_by_init_prog = ' ' TABLES t_tckm2_ext = t_tckm2e.

T001_READ CALL FUNCTION 'T001_READ' EXPORTING bukrs = t_t001k-bukrs IMPORTING struct = f_t001 EXCEPTIONS no_entry = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '116' msgty = 'E' msgv1 = t_t001k-bukrs.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

CONVERT_CKML2_TO_CKMLHD_PR CALL FUNCTION 'CONVERT_CKML2_TO_CKMLHD_PR' EXPORTING f_ckml2 = t_ckml2 f_tckm2e = t_tckm2e i_periv = f_t001-periv IMPORTING f_ckmlhd = t_ckmlhd TABLES t_ckmlpr = t_ckmlpr EXCEPTIONS OTHERS = 0.

CKMS_BUFFER_WRITE CALL FUNCTION 'CKMS_BUFFER_WRITE' EXPORTING write_mode = 'I' build_smbew = ' ' TABLES t_ckmlhd = t_ckmlhd_buf t_ckmlpr = t_ckmlpr_buf.

CKML_F_MARK_COST_ESTIMATE CALL FUNCTION 'CKML_F_MARK_COST_ESTIMATE' EXPORTING f_ckiwerk = f_ckiwerk f_mack4 = f_mack4 i_startup = 'X' TABLES t_ckmlpr_in = t_ckmlpr_10 t_ckmlpr_out = t_ckmlpr.

CONVERT_CKML3_TO_CKMLPP_CR CALL FUNCTION 'CONVERT_CKML3_TO_CKMLPP_CR' EXPORTING f_ckml3 = t_ckml3 f_tckm2e = t_tckm2e IMPORTING f_ckmlpp = t_ckmlpp TABLES t_ckmlcr = t_ckmlcr.

CKMS_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.

CONVERT_CKML3_TO_CKMLPP_CR CALL FUNCTION 'CONVERT_CKML3_TO_CKMLPP_CR' EXPORTING f_ckml3 = t_ckml3 f_tckm2e = t_tckm2e IMPORTING f_ckmlpp = t_ckmlpp TABLES t_ckmlcr = t_ckmlcr.

CKMS_BUFFER_REFRESH_COMPLETE CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '110' msgty = 'S' msgv1 = t_t001k-bwkey.

CM_F_MESSAGE call function 'CM_F_MESSAGE' exporting arbgb = 'C+' msgnr = '086' msgty = 'E' msgv1 = t_t001k-bwkey.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = f_object object_id = y_objectid.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '319' msgty = 'S' msgv1 = t_t001k-bwkey.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '632' msgty = 'S' msgv1 = t_t001k-bwkey.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_EMMBEWE CALL FUNCTION 'DEQUEUE_EMMBEWE' EXPORTING mandt = sy-mandt bwkey = t_t001k-bwkey EXCEPTIONS OTHERS = 1.

CM_F_MESSAGE * CALL FUNCTION 'CM_F_MESSAGE' * EXPORTING * arbgb = 'C+' * msgnr = '023' * msgty = 'E' * msgv1 = lt_t001k-bwkey.



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