SAP Reports / Programs

SAPRCK32 SAP ABAP Report - Print Error Logs for Costing Run







SAPRCK32 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 SAPRCK32 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

CK31 - Print Log of Costing Run


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 SAPRCK32. "Basic submit
SUBMIT SAPRCK32 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRCK32 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: WITHINFO = With Overview Information
Selection Text: ONLYINFO = Overview Information Only
Selection Text: MSGTY = Message Type
Selection Text: KALFVORM = Log for Marking
Selection Text: KALFSTRU = Log for Structure Explosion
Selection Text: KALFSELE = Log for Selection
Selection Text: KALFKALK = Log for Costing
Selection Text: KALFFREI = Log for Release
Selection Text: KALAID = Costing Run
Selection Text: KALADAT = Costing Run Date
Selection Text: BACKGR = Background Processing
Title: Print Error Logs for Costing Run
Text Symbol: 001 = Print Parameters
Text Symbol: 010 = Processing Opts
Text Symbol: 011 = Selection
Text Symbol: 012 = Costing
Text Symbol: 013 = Marking
Text Symbol: 014 = Release
Text Symbol: 015 = Struct. Explosion
Text Symbol: 901 = Log for Selection of Costing Run & & :
Text Symbol: 902 = Log for Costing of Costing Run & & :
Text Symbol: 903 = Log for Marking of Costing Run & & :
Text Symbol: 904 = Log for Release of Costing Run & & :
Text Symbol: 905 = Log for BOM Explosion of Costing Run & &:


INCLUDES used within this REPORT SAPRCK32

INCLUDE MC64SNTD.
INCLUDE MC64SCON.
INCLUDE FCK01COM.
INCLUDE FCK06COM.


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:

CK_F_COSTINGRUN_HEADER_READ CALL FUNCTION 'CK_F_COSTINGRUN_HEADER_READ' EXPORTING KALAID = KALA-KALAID KALADAT = KALA-KALADAT IMPORTING KLVAR = T_TCK03-KLVAR F_KALA = KALA KALA_FOUND = S_KALA_FOUND KALS_FOUND = S_KALD_FOUND KALF_FOUND = S_KALF_FOUND KALV_FOUND = S_KALV_FOUND KALV_ERROR = S_KALV_ERROR TABLES T_KALST_EXP = T_KALST T_KALF_EXP = T_KALF.

CK_F_TCK03_HIERARCHY_READING CALL FUNCTION 'CK_F_TCK03_HIERARCHY_READING' EXPORTING P_KLVAR = T_TCK03-KLVAR IMPORTING F_TCK03 = T_TCK03.

CK_F_K_KEKO_AUTHORITY_CHECK CALL FUNCTION 'CK_F_K_KEKO_AUTHORITY_CHECK' "P30K030479 EXPORTING "P30K030479 I_BUKRS = KALA-BUKRS "P30K030479 I_KOKRS = KALA-KOKRS "P30K030479 I_KLVAR = T_TCK03-KLVAR "P30K030479 I_ACTVT = '03'. "Anzeigen "P30K030479

GET_PRINT_PARAMETERS * CALL FUNCTION 'GET_PRINT_PARAMETERS' * EXPORTING * IN_PARAMETERS = lf_PRI_PARAMS * MODE = 'CURRENT' * IMPORTING * OUT_PARAMETERS = lf_pri_Params * VALID = l_VALID.

CM_F_INITIALIZE_AND_LOAD CALL FUNCTION 'CM_F_INITIALIZE_AND_LOAD' EXPORTING APLID = Y_CMF-ID_CK CMF_NR = F_KALF_SELE-CMF_NR EXCEPTIONS LOG_NOT_FOUND = 4.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING APLID = Y_CMF-ID_CK HEADLINE = H_HEADLINE ONLY_MSGTYP = MSGTY WITH_INFO = WITHINFO * print_parameter_dialog = ' ' EXCEPTIONS NO_PROTOCOL = 02.

CM_F_INITIALIZE_AND_LOAD CALL FUNCTION 'CM_F_INITIALIZE_AND_LOAD' EXPORTING APLID = Y_CMF-ID_CK CMF_NR = F_KALF_STRU-CMF_NR EXCEPTIONS LOG_NOT_FOUND = 4.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING APLID = Y_CMF-ID_CK HEADLINE = H_HEADLINE ONLY_MSGTYP = MSGTY WITH_INFO = WITHINFO * print_parameter_dialog = ' ' EXCEPTIONS NO_PROTOCOL = 02.

CM_F_INITIALIZE_AND_LOAD CALL FUNCTION 'CM_F_INITIALIZE_AND_LOAD' EXPORTING APLID = Y_CMF-ID_CK CMF_NR = F_KALF_KALK-CMF_NR EXCEPTIONS LOG_NOT_FOUND = 4.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING APLID = Y_CMF-ID_CK HEADLINE = H_HEADLINE ONLY_MSGTYP = MSGTY WITH_INFO = WITHINFO * print_parameter_dialog = ' ' EXCEPTIONS NO_PROTOCOL = 02.

CM_F_INITIALIZE_AND_LOAD CALL FUNCTION 'CM_F_INITIALIZE_AND_LOAD' EXPORTING APLID = Y_CMF-ID_CK CMF_NR = F_KALF_VORM-CMF_NR EXCEPTIONS LOG_NOT_FOUND = 4.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING APLID = Y_CMF-ID_CK HEADLINE = H_HEADLINE ONLY_MSGTYP = MSGTY WITH_INFO = WITHINFO * print_parameter_dialog = ' ' EXCEPTIONS NO_PROTOCOL = 02.

CM_F_INITIALIZE_AND_LOAD CALL FUNCTION 'CM_F_INITIALIZE_AND_LOAD' EXPORTING APLID = Y_CMF-ID_CK CMF_NR = F_KALF_FREI-CMF_NR EXCEPTIONS LOG_NOT_FOUND = 4.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING APLID = Y_CMF-ID_CK HEADLINE = H_HEADLINE ONLY_MSGTYP = MSGTY WITH_INFO = WITHINFO * print_parameter_dialog = ' ' EXCEPTIONS NO_PROTOCOL = 02.

CK_PROCESS_IN_BACKGROUND CALL FUNCTION 'CK_PROCESS_IN_BACKGROUND' EXPORTING i_program = p_program i_variant = sy-slset I_KALAID = p_kalaid I_KALADAT = p_kaladat I_PROCESS = p_process * I_RFC_GROUP = .



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