SAP Reports / Programs | Controlling | Profitability Analysis(CO-PA) SAP CO

RKE_CORRECT_ACTIVITY_COST SAP ABAP Report - RKECORRECTACTIVITYCOST







RKE_CORRECT_ACTIVITY_COST 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 RKE_CORRECT_ACTIVITY_COST 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 RKE_CORRECT_ACTIVITY_COST. "Basic submit
SUBMIT RKE_CORRECT_ACTIVITY_COST AND RETURN. "Return to original report after report execution complete
SUBMIT RKE_CORRECT_ACTIVITY_COST 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: VERSN = D Version
Selection Text: TESTRUN = Test Run
Selection Text: SELPRZNR = D Selection Variant
Selection Text: SELKOSTL = D Selection Variant
Selection Text: PRZNR = D Business Process
Selection Text: PLAN = Planned Values
Selection Text: PERIOD = D Period
Selection Text: KOSTL = D Cost Center
Selection Text: GRPRZNR = D Business Process Group
Selection Text: GRKOSTL = D Cost Center Group
Selection Text: FISYEAR = D Fiscal Year
Selection Text: CONAREA = D Controlling Area
Selection Text: ACTUAL = Actual Values
Text Symbol: 017 = CO Line Items for which the Valuation Failed:
Text Symbol: 016 = Subseq.-Posted CO-PA Delta Line Items:
Text Symbol: 015 = Upd. Run
Text Symbol: 014 = Test Run
Text Symbol: 013 = Business Process Grp
Text Symbol: 012 = Cost Center Group
Text Symbol: 011 = Selection Variant
Text Symbol: 010 = Business proc.
Text Symbol: 009 = Cost Center
Text Symbol: 008 = Bus. Processes from
Text Symbol: 007 = All Business Processes
Text Symbol: 006 = No Business Processes
Text Symbol: 005 = Bus. Processes
Text Symbol: 004 = Cost Centers from
Text Symbol: 003 = All Cost Centers
Text Symbol: 002 = No Cost Center
Text Symbol: 001 = Cost Centers
Text Symbol: 018 = Plan/Act
Text Symbol: 019 = Document No.
Text Symbol: 020 = Message
Text Symbol: 021 = And others...


INCLUDES used within this REPORT RKE_CORRECT_ACTIVITY_COST

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:

RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = 'RKPRZSEL' IMPORTING sel_variant = selprznr.

RS_VARIANT_CATALOG CALL FUNCTION 'RS_VARIANT_CATALOG' EXPORTING report = 'RKKSTSEL' IMPORTING sel_variant = selkostl.

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING class = '0101' field_name = 'KOSTL' IMPORTING set_name = grkostl EXCEPTIONS no_set_picked = 1.

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING class = '0107' field_name = 'PRZNR' IMPORTING set_name = grprznr EXCEPTIONS no_set_picked = 1.

RKE_CORRECT_ACTIVITY_COST CALL FUNCTION 'RKE_CORRECT_ACTIVITY_COST' EXPORTING i_kokrs = conarea i_gjahr = fisyear i_test = testrun IMPORTING e_erkrs = erkrs TABLES t_schichtung = schichtung.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = fisyear * I_MONMIT = 00 i_periv = tka01-lmona i_poper = period-low IMPORTING e_date = first_day.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = fisyear * I_MONMIT = 00 i_periv = tka01-lmona i_poper = period-hoch IMPORTING e_date = last_day.

K_PROCESSES_SELECT CALL FUNCTION 'K_PROCESSES_SELECT' EXPORTING kokrs = conarea * BP_FROM = * BP_TO = bp_group = selp date_from = first_day date_to = last_day * LANGU = SY-LANGU * ONLY_COMPLETE = ' ' * WITH_TEXT = 'X' * BYPASSING_BUFFER = ' ' * FILL_BUFFER = 'X' tabname = 'OBJNR' TABLES it_result = bp_result EXCEPTIONS no_record_found = 1 group_not_found = 2 * OTHERS = 3 .

K_COSTCENTERS_SELECT CALL FUNCTION 'K_COSTCENTERS_SELECT' EXPORTING kokrs = conarea * CC_FROM = * CC_TO = cc_group = selc date_from = first_day date_to = last_day * LANGU = SY-LANGU * ONLY_COMPLETE = ' ' * WITH_TEXT = 'X' * BYPASSING_BUFFER = ' ' * FILL_BUFFER = 'X' tabname = 'OBJNR' * WITH_ROUGH_ENTRY = ' ' TABLES it_result = cc_objnr EXCEPTIONS no_record_found = 1 group_not_found = 2 * OTHERS = 3 .

K_CSSL_KL_FOR_KS CALL FUNCTION 'K_CSSL_KL_FOR_KS' EXPORTING kokrs = conarea gjahr = fisyear with_ks = ' ' TABLES it_objnr = cc_objnr * IT_CSSL = EXCEPTIONS no_record_found = 1 * OTHERS = 2 .

K_QUANTITY_EVAL_WITH_RECEIVER call function 'K_QUANTITY_EVAL_WITH_RECEIVER' exporting receiver = p_rece_obj read_components = 'X' importing costcomponent_structure = eschema changing co_valuation = p_coval t_cocom_prc = t_schichtung exceptions price_not_found = 1 sender_not_valid = 2 receiver_not_valid = 3 unit_conversion_error = 4 currency_error = 5 illegal_quantity = 6 others = 7.

K_QUANTITY_EVALUATE call function 'K_QUANTITY_EVALUATE' exporting read_components = 'X' importing costcomponent_structure = eschema CHANGING pd_coval = p_coval t_cocom_prc = t_schichtung EXCEPTIONS price_not_found = 1 illegal_policy = 2 object_not_valid = 3 unit_conversion_error = 4 currency_error = 5 illegal_quantity = 6 others = 7.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_header_line.

ENQUEUE_E_RKE_CORRECT CALL FUNCTION 'ENQUEUE_E_RKE_CORRECT' EXPORTING bp = bp_help cc = cc_help kokrs = conarea gjahr = fisyear perio = perio_help versn = versn_help planwerte = plan istwerte = actual _scope = '3'.

ENQUEUE_E_RKE_CORRECT CALL FUNCTION 'ENQUEUE_E_RKE_CORRECT' EXPORTING bp = bp_help cc = cc_help kokrs = conarea gjahr = fisyear perio = perio_help * versn = versn_help planwerte = plan istwerte = actual _scope = '3'.



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