SAP Reports / Programs | Controlling | Product Cost Controlling | Actual Costing/Material Ledger(CO-PC-ACT) SAP CO

CKML_QSTREE SAP ABAP Report - Valuated Quantity Structure (Multilevel)







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

CKMLQS - Valuated Quantity Structure(M-level)


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 CKML_QSTREE. "Basic submit
SUBMIT CKML_QSTREE AND RETURN. "Return to original report after report execution complete
SUBMIT CKML_QSTREE 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_SOBKZ = D .
Selection Text: P_APPL = D .
Selection Text: P_BDATJ = D .
Selection Text: P_BWTAR = D .
Selection Text: P_LAUF = D .
Selection Text: P_LGJA = D .
Selection Text: P_LPOP = D .
Selection Text: P_MATNR = D .
Selection Text: P_POPER = D .
Selection Text: P_POSNR = D .
Selection Text: P_PSPNR = D .
Selection Text: P_VBELN = D .
Selection Text: P_WERKS = D .
Title: Valuated Quantity Structure (Multilevel)
Text Symbol: F01 = Selection By
Text Symbol: F02 = @9T@Costing Run
Text Symbol: F03 = @9T@Period
Text Symbol: P01 = Sales Document
Text Symbol: P02 = Period/ Application
Text Symbol: P03 = /


INCLUDES used within this REPORT CKML_QSTREE

INCLUDE CKML_QSTREE_TOP.
INCLUDE CKML_QSTREE_P01.


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:

CKML_MGV_KALNR_SHOW CALL FUNCTION 'CKML_MGV_KALNR_SHOW' EXPORTING i_kalnr = is_mlkey-kalnr.

CKM8N_ML_DATA_DISPLAY CALL FUNCTION 'CKM8N_ML_DATA_DISPLAY' EXPORTING i_matnr = is_mlkey-matnr i_bwkey = is_mlkey-bwkey i_bwtar = is_mlkey-bwtar i_vbeln = is_mlkey-vbeln i_posnr = is_mlkey-posnr i_pspnr = is_mlkey-pspnr i_bdatj = is_mlkey-bdatj i_poper = is_mlkey-poper i_run_id = is_mlkey-run_id i_sobkz = is_mlkey-sobkz. "SIT ML

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING P_STATUS = sy-pfkey TABLES P_EXCLUDE = fcode.

CKML_RUN_PERIOD_GET CALL FUNCTION 'CKML_RUN_PERIOD_GET' EXPORTING i_run_type = p_lauf i_langu = sy-langu i_poper = p_lpop i_gjahr = p_lgja i_appl = p_appl IMPORTING es_runperiod = gs_runperiod EXCEPTIONS run_not_existent = 1 OTHERS = 2.

MARA_SINGLE_READ call function 'MARA_SINGLE_READ' exporting * KZRFB = ' ' * MAXTZ = 0 matnr = mlkey-matnr * SPERRMODUS = ' ' * STD_SPERRMODUS = ' ' importing wmara = ls_mara exceptions lock_on_material = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 others = 5.

TP_VALUATION_AUTHORITY CALL FUNCTION 'TP_VALUATION_AUTHORITY' EXPORTING * I_KOKRS = * I_VALUTYP = * I_BUKRS = * I_WERKS = i_bwkey = mlkey-bwkey * I_VERSN = i_cvtyp = mlkey-curtp * I_ACTVT = '03' IMPORTING e_xauth = l_xauth EXCEPTIONS kokrs_finding_error = 1 valutyp_finding_error = 2 insufficient_input_for_kokrs = 3 insufficient_input_for_valutyp = 4 activity_not_allowed = 5 OTHERS = 6.

CKML_MGV_SET_PERIOD CALL FUNCTION 'CKML_MGV_SET_PERIOD' EXPORTING i_bwkey = is_mlkey-bwkey i_perio = is_mlkey-poper i_gjahr = is_mlkey-bdatj IMPORTING e_datum = h_datum.

CKML_LA_ACTIVITY_INFO CALL FUNCTION 'CKML_LA_ACTIVITY_INFO' EXPORTING i_kalnr = is_mlkey-kalnr i_date = h_datum IMPORTING e_text = ls_info.



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