SAP Reports / Programs

RMSERI40 SAP ABAP Report - Creation of Preliminary Cost Estimates for Product Cost Collectors







RMSERI40 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 RMSERI40 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MF30 - Create PrelimCostEst - ProdCostColl.


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 RMSERI40. "Basic submit
SUBMIT RMSERI40 AND RETURN. "Return to original report after report execution complete
SUBMIT RMSERI40 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: PA_CALC = Always Recost
Selection Text: PA_KADAT = Costing Date
Selection Text: RFCGROUP = Server Group
Selection Text: SO_MATNR = D Material
Selection Text: SO_PROCN = Production Process
Selection Text: SO_VERID = D Production Version
Selection Text: SO_WERKS = D Plant
Title: Creation of Preliminary Cost Estimates for Product Cost Collectors
Text Symbol: 001 = Error Log: Preliminary Cost Estimates for Product Cost Collectors


INCLUDES used within this REPORT RMSERI40

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:

SPTA_PARA_PROCESS_START_2 call function 'SPTA_PARA_PROCESS_START_2' exporting server_group = rfcgroup max_no_of_tasks = 0 " keine Einschränkung before_rfc_callback_form = 'BEFORE_RFC' in_rfc_callback_form = 'IN_RFC' after_rfc_callback_form = 'AFTER_RFC' callback_prog = ld_repid "P9CK113192 * SHOW_STATUS = ' ' * RESOURCE_TIMEOUT = 600 * TASK_CALL_MODE = 1 * CHANGING * USER_PARAM = exceptions invalid_server_group = 1 no_resources_available = 2 others = 3.

CP_DU_TSK_CHANGE_DATE_PROVIDE call function 'CP_DU_TSK_CHANGE_DATE_PROVIDE' "P45K076436 exporting "P45K076436 i_plnty = lt_routing-plnty "P45K076436 i_plnnr = lt_routing-plnnr "P45K076436 i_plnal = lt_routing-plnal "P45K076436 importing "P45K076436 e_change_date = l_aedat. "P45K076436

KK_F_PROCESS_COSTING call function 'KK_F_PROCESS_COSTING' EXPORTING i_matnr = pt_pkosa_data-matnr i_werks = pt_pkosa_data-werks i_procnr = pt_pkosa_data-procnr i_pkosa = pt_pkosa_data-aufnr i_kalkdat = pa_kadat i_klvarp = pt_pkosa_data-klvarp i_objnr = pt_pkosa_data-objnr "P9CK008103 i_kalsm = pt_pkosa_data-kalsm " 0164506 i_u_kalsm = charx IMPORTING e_keko = ls_keko e_no_reppoint_update = l_no_reppoint_update e_locked = l_locked e_mf70_error = l_mf70_error "P9CK083426 e_version_locked = l_version_locked.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE'.

CM_F_STORE call function 'CM_F_STORE' EXPORTING aplid = 'CK' IMPORTING e_cmf_nr = g_cmf_nr.

CM_F_STORE call function 'CM_F_STORE' EXPORTING aplid = 'CK' i_cmf_nr = g_cmf_nr i_append_mode = 'X'.

CM_F_INITIALIZE call function 'CM_F_INITIALIZE' "HW1416241 exporting "HW1416241 aplid = 'CK' "HW1416241 no_other_initialize = ' ' "HW1416241 refresh_old_log = 'X' "HW1416241 exceptions "HW1416241 others = 1. "HW1416241

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '208' msgty = 'E' msgv1 = pt_pkosa_data-aufnr.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'KOSA' msgnr = '154' msgty = 'E' msgv1 = pt_pkosa_data-verid "note644829 msgv2 = pt_pkosa_data-matnr "note644829 msgv3 = pt_pkosa_data-werks. "note644829

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE'. "P9CK083426

CO_ZF_DATA_RESET_COMPLETE call function 'CO_ZF_DATA_RESET_COMPLETE'. "P9CK064110

CM_F_INITIALIZE call function 'CM_F_INITIALIZE' exporting aplid = 'CK' * aplid = 'KOSA' object_id = 'CK3' "P9CK113192 refresh_old_log = space.

CM_F_MESSAGES_GET call function 'CM_F_MESSAGES_GET' EXPORTING aplid = 'CKTP' TABLES e_msgprot = lt_msgprot EXCEPTIONS others = 1.

CM_F_CMFMSG_MESSAGES_PUT call function 'CM_F_CMFMSG_MESSAGES_PUT' EXPORTING aplid = 'CK' TABLES i_msgprot = lt_msgprot EXCEPTIONS others = 1.

CM_F_LOAD call function 'CM_F_LOAD' EXPORTING cmf_nr = g_cmf_nr exceptions others = 99.

CM_F_LOAD call function 'CM_F_LOAD' EXPORTING cmf_nr = -cmfnr exceptions others = 99.

CM_F_INITIALIZE_AND_LOAD * call function 'CM_F_INITIALIZE_AND_LOAD' * exporting * aplid = 'CK' * cmf_nr = pt_keko_data-cmf_nr * exceptions * unknown_aplid = 1 * unknown_object_id = 2 * log_not_found = 3 * others = 4.

CM_F_LOAD call function 'CM_F_LOAD' EXPORTING cmf_nr = pt_keko_data-cmf_nr EXCEPTIONS not_active = 1 protocol_not_found = 2 wrong_object_id = 3 others = 4.

CM_F_DISPLAY_LOG





call function 'CM_F_DISPLAY_LOG' exporting grid_display = 'X'.

CM_F_PROTOCOL_PRINT call function 'CM_F_PROTOCOL_PRINT'.

SPTA_INDX_PACKAGE_ENCODE call function 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = ld_task_data IMPORTING indxtab = pt_rfcdata.

SPTA_INDX_PACKAGE_DECODE call function 'SPTA_INDX_PACKAGE_DECODE' EXPORTING indxtab = p_rfcdata IMPORTING data = ld_taskdata.

KK_F_PROCESS_COSTING call function 'KK_F_PROCESS_COSTING' EXPORTING i_matnr = ls_taskdata-matnr i_werks = ls_taskdata-werks i_procnr = ls_taskdata-procnr i_pkosa = ls_taskdata-aufnr i_kalkdat = ls_taskdata-kadat i_klvarp = ls_taskdata-klvarp i_objnr = ls_taskdata-objnr "P9CK114145 IMPORTING e_keko = ls_keko e_no_reppoint_update = l_no_reppoint_update "P9CK083426 e_locked = l_locked "HW 1470298 e_mf70_error = l_mf70_error "P9CK083426 e_version_locked = l_version_locked.

CM_F_COLLECT_MESSAGE call function 'CM_F_COLLECT_MESSAGE'.

CM_F_STORE call function 'CM_F_STORE' EXPORTING aplid = 'CK' IMPORTING e_cmf_nr = ld_taskdata-cmfnr.

CM_F_STORE call function 'CM_F_STORE' EXPORTING aplid = 'CK' i_cmf_nr = ld_taskdata-cmfnr i_append_mode = 'X'.

CO_ZF_DATA_RESET_COMPLETE call function 'CO_ZF_DATA_RESET_COMPLETE'. "P9CK064110

SPTA_INDX_PACKAGE_ENCODE call function 'SPTA_INDX_PACKAGE_ENCODE' EXPORTING data = ld_taskdata IMPORTING indxtab = p_rfcdata.

SPTA_INDX_PACKAGE_DECODE call function 'SPTA_INDX_PACKAGE_DECODE' EXPORTING indxtab = p_rfcdata IMPORTING data = ld_taskdata.

CM_F_MESSAGE call function 'CM_F_MESSAGE' EXPORTING arbgb = 'SPTA' msgnr = '003' msgty = 'E' msgv1 = ld_obj_in_process-obj_id msgv2 = p_after_rfc_imp-taskdest msgv3 = p_rfcsubrc msgv4 = p_rfcmsg.

CK_F_KEKO_KEPH_DIRECT_READ call function 'CK_F_KEKO_KEPH_DIRECT_READ' exporting f_kekokey = pt_kekokey read_keko = 'X' read_keph = space * READ_ONLY_BUFFER = ' ' * READ_ONLY_DB = ' ' * CACHED_READ = ' ' importing f_keko = ls_keko "P9CK064110 exceptions "P9CK064110 others = 1. "P9CK064110



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