SAP Reports / Programs

SAPRCKM_PRMT_RUN_TYPE SAP ABAP Report - Maintenance of Future Prices with Date and Costing Run Profile







SAPRCKM_PRMT_RUN_TYPE 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_PRMT_RUN_TYPE 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

CKMPRP2 - Maintain Future Prices by Profile


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_PRMT_RUN_TYPE. "Basic submit
SUBMIT SAPRCKM_PRMT_RUN_TYPE AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRCKM_PRMT_RUN_TYPE 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_STORE = D Save log
Selection Text: P_RUNTYP = D Costing run
Selection Text: P_RUNDAY = D Last Day of Period
Selection Text: P_RADIO1 = D Manual date
Selection Text: P_POPER = D Posting period
Selection Text: P_PERIOD = D Beginning of following period
Selection Text: P_GJAHR = D Fiscal year
Selection Text: P_DATE = D Price valid from
Selection Text: P_BATCH = D Background processing
Title: Maintenance of Future Prices with Date and Costing Run Profile
Text Symbol: 006 = Previous Period
Text Symbol: 005 = Current Period
Text Symbol: 004 = Target Period
Text Symbol: 003 = Validity of marking
Text Symbol: 002 = Error log for marking prices
Text Symbol: 001 = Processing options


INCLUDES used within this REPORT SAPRCKM_PRMT_RUN_TYPE

INCLUDE RKASMAWF.
INCLUDE SCHEDMAN_EVENTS.
INCLUDE RCKMATOP_RUN_SELECTION.
INCLUDE RCKMATOP_RUN_SELECTION_PERIOD.
INCLUDE CKML_RUN_SELSCREEN_F4_EVENTS .


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:

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING p_status = 'EINSTIEG' p_program = 'SAPRCKM_PRMT_RUN_TYPE' TABLES p_exclude = t_excluding.

CKML_RUN_PERIOD_GET * CALL FUNCTION 'CKML_RUN_PERIOD_GET' * EXPORTING ** I_RUN_ID = * I_RUN_TYPE = P_RUNTYP * I_LAST_DAY = P_RUNDAY * I_LANGU = SY-LANGU * IMPORTING * ES_RUNPERIOD = F_PERIOD_DATA.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING aplid = 'CKML' object_id = 'CKML'.

CKML_RUN_PEP_RECORD_OPEN * CALL FUNCTION 'CKML_RUN_PEP_RECORD_OPEN' * EXPORTING * i_function = ckru0_pepfunction-ml10 * i_activity = ckru0_pepaction-n16 * i_repid = prog_name "#EC DOM_EQUAL * i_run_type = p_runtyp * i_last_day = p_runday * EXCEPTIONS * no_pflid_created = 1 * pflid_already_exists = 2 * OTHERS = 3.

CKML_SCHEDMAN_RECORD_OPEN CALL FUNCTION 'CKML_SCHEDMAN_RECORD_OPEN' EXPORTING i_function = ckru0_sm_function-mark_price i_activity = ckru0_pepaction-n16 I_SCMA_WITEM = ls_witem i_repid = prog_name "#EC DOM_EQUAL * I_TCODE = SY-TCODE * I_TEST = ' ' i_run_id = my_runid .

CKML_RUN_VALAREAS_GET CALL FUNCTION 'CKML_RUN_VALAREAS_GET' EXPORTING i_run_id = my_runid IMPORTING et_valareas = t_bwkeys.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'CKPRCH' "note788185 msgno = '039' "note788185 msgty = 'E'.

T001K_SINGLE_READ CALL FUNCTION 'T001K_SINGLE_READ' EXPORTING bwkey = f_bwkeys-bwkey IMPORTING wt001k = f_t001k.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = f_t001k-bukrs IMPORTING wmarv = f_marv.

T001_SINGLE_READ CALL FUNCTION 'T001_SINGLE_READ' EXPORTING bukrs = f_t001k-bukrs IMPORTING wt001 = f_t001.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = f_marv-lfgja i_periv = f_t001-periv i_poper = temp_poper IMPORTING e_date = p_date.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'C+' msgno = '406' msgty = 'i'.

CM_F_COLLECT_MESSAGE CALL FUNCTION 'CM_F_COLLECT_MESSAGE' EXPORTING msgid = 'C+' msgno = '114' msgty = 'E'.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '101' msgty = 'I' msgv1 = s_msgvar-msgv1 msgv2 = s_msgvar-msgv2 msgv3 = cnt_changed_mats msgv4 = space EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '101' msgty = 'I' msgv1 = s_msgvar-msgv1 msgv2 = s_msgvar-msgv2 msgv3 = cnt_changed_prices msgv4 = space EXCEPTIONS OTHERS = 0.

CM_F_ANALYSIS CALL FUNCTION 'CM_F_ANALYSIS' EXPORTING aplid = 'CKML' headline = ' ' ocs_activ = ' ' ocs_send_immediate = ' ' EXCEPTIONS not_active = 01.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING aplid = 'CKML' headline = text-002 * with_info = 'X' EXCEPTIONS OTHERS = 0.

GET_BWKEY_CURRENCY_INFO CALL FUNCTION 'GET_BWKEY_CURRENCY_INFO' EXPORTING bwkey = my_bwkey TABLES t_curtp_for_va = t_curtp EXCEPTIONS bwkey_not_found = 1 OTHERS = 2.

CM_F_STORE





CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = 'CKML' in_update_task = 'X' IMPORTING e_cmf_nr = l_protocol_number EXCEPTIONS OTHERS = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '718' msgty = 'I' msgv1 = l_protocol_number EXCEPTIONS OTHERS = 0.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'C+' msgnr = '719' msgty = 'E' EXCEPTIONS OTHERS = 0.

CM_F_INFO CALL FUNCTION 'CM_F_INFO' EXPORTING aplid = 'CKML' object_id = 'CKML' IMPORTING max_severity_pro = severity EXCEPTIONS wrong_object_id = 1 OTHERS = 2.

CKML_RUN_PEP_RECORD_CLOSE * CALL FUNCTION 'CKML_RUN_PEP_RECORD_CLOSE' * EXPORTING * i_aplstat = aplstat * i_aplid = 'CKML' * i_object_id = 'CKML' * i_nr = l_protocol_number * EXCEPTIONS * wrong_pflid = 1 * no_pflid = 2 * OTHERS = 3.

CKML_SCHEDMAN_RECORD_CLOSE CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE' EXPORTING * I_OBJECTS = i_aplication_status = aplstat i_prot_number = l_protocol_number i_aplid = 'CKML' " note 331185 i_objid = 'CKML' " note 331185 i_scma_event = ls_scma_event. "#EC ARGCHECKED

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = 'X' par_jname = l_jobname par_print = 'X' par_rname = prog_name "#EC DOM_EQUAL par_sdmsg = 'X' par_abend = 'X' TABLES tab_selpa = lt_selektionen.



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