SAP Reports / Programs | Structures Workbench | Defense Forces and Public Security | Structures Workbench(IS-DFS-OF-FDP) SAP IS

/ISDFPS/ACCHIERPREP SAP ABAP Report - Prepare CO Hierarchy (Hierarchy Areas)







/ISDFPS/ACCHIERPREP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use report /ISDFPS/ACCHIERPREP to create cost center and profit center groups or hierarchy areas that you require for planned cost centers (cost center standard hierarchy) and planned profit centers (profit center standard hierarchy)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter /ISDFPS/ACCHIERPREP 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

/ISDFPS/ACCHIERPREP - Prepare CO Hierarchy in Operation


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 /ISDFPS/ACCHIERPREP. "Basic submit
SUBMIT /ISDFPS/ACCHIERPREP AND RETURN. "Return to original report after report execution complete
SUBMIT /ISDFPS/ACCHIERPREP 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: P10SAVDB = Save Application Log
Selection Text: P11SIMUL = Simulation
Selection Text: P2KHINR = Cost Center Group
Selection Text: P3PHINR = Profit Center Group
Selection Text: P4DUMPC = Create Dummy Profit Center
Selection Text: P4DUMPCG = Create Dummy Profit Center Grp
Selection Text: P9APPLOG = Application Log
Title: Prepare CO Hierarchy (Hierarchy Areas)
Text Symbol: 000 = Standard Hierarchy
Text Symbol: 001 = Selection
Text Symbol: 002 = Processing Options
Text Symbol: 003 = Cost Centers in Planning
Text Symbol: 004 = Profit Centers in Planning
Text Symbol: 005 = (Test Run)
Text Symbol: 006 = (Errors Occurred)
Text Symbol: 007 = Additional Options
Text Symbol: FC1 = Set CO Area
Text Symbol: FC2 = Create Dummy Profit Center


INCLUDES used within this REPORT /ISDFPS/ACCHIERPREP

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:

/ISDFPS/AC_CHECK_PRESET_CUST CALL FUNCTION '/ISDFPS/AC_CHECK_PRESET_CUST' EXPORTING coarea = p1coarea IMPORTING preset_customizing = ls_preset_customizing EXCEPTIONS no_entry_in_preset_customizing = 1 OTHERS = 2.

/ISDFPS/AC_COAREA_READ CALL FUNCTION '/ISDFPS/AC_COAREA_READ' EXPORTING coarea = p1coarea IMPORTING e_tka01 = ls_tka01 EXCEPTIONS not_found = 1 OTHERS = 2.

BAPI_COSTCENTERGROUP_GETLIST CALL FUNCTION 'BAPI_COSTCENTERGROUP_GETLIST' EXPORTING controllingareamask = p1coarea groupnamemask = l_g12 IMPORTING return = ls_return TABLES grouplist = lt_grouplist.

BAPI_COSTCENTERGROUP_CREATE CALL FUNCTION 'BAPI_COSTCENTERGROUP_CREATE' EXPORTING controllingareaimp = p1coarea IMPORTING return = ls_return TABLES hierarchynodes = lt_hierarchynodes hierarchyvalues = lt_hierarchyvalues.

BAPI_COSTCENTERGROUP_ADDNODE CALL FUNCTION 'BAPI_COSTCENTERGROUP_ADDNODE' EXPORTING controllingarea = p1coarea groupname = l_g1 subgroupname = l_g2 IMPORTING return = ls_return.

BAPI_PROFITCENTERGRP_GETLIST CALL FUNCTION 'BAPI_PROFITCENTERGRP_GETLIST' EXPORTING controllingareamask = p1coarea groupnamemask = l_g22 IMPORTING return = ls_return TABLES grouplist = lt_grouplist.

BAPI_PROFITCENTERGRP_CREATE CALL FUNCTION 'BAPI_PROFITCENTERGRP_CREATE' EXPORTING controllingareaimp = p1coarea IMPORTING return = ls_return TABLES hierarchynodes = lt_hierarchynodes hierarchyvalues = lt_hierarchyvalues.

BAPI_PROFITCENTERGRP_ADDNODE CALL FUNCTION 'BAPI_PROFITCENTERGRP_ADDNODE' EXPORTING controllingarea = p1coarea groupname = l_g1 subgroupname = l_g2 IMPORTING return = ls_return.

/ISDFPS/BAL_MSG_SAVE CALL FUNCTION '/ISDFPS/BAL_MSG_SAVE' EXPORTING is_log_header = ls_bal_log it_log_msg = lt_appl_log_msg if_display_log = p9applog if_save_log = p10savdb IMPORTING ef_loghandle = ls_log_handle EXCEPTIONS import_para_error = 1 bal_log_error = 2 OTHERS = 3.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING i_kokrs = p_kokrs popup = p_popup IMPORTING e_kokrs = p_kokrs EXCEPTIONS not_found = 1 OTHERS = 2.

/ISDFPS/MSG_TO_BAL_MSG CALL FUNCTION '/ISDFPS/MSG_TO_BAL_MSG' EXPORTING if_msgid = '/ISDFPS/ACCMSG' if_msgty = l_msgty if_msgno = '041' if_msgv1 = l_msg1 CHANGING ct_appl_log_msg = lt_appl_log_msg.

/ISDFPS/MSG_TO_BAL_MSG CALL FUNCTION '/ISDFPS/MSG_TO_BAL_MSG' EXPORTING if_msgid = '/ISDFPS/ACCMSG' if_msgty = 'E' if_msgno = '039' if_msgv1 = ls_return-message_v1 if_msgv2 = ls_return-message_v2 if_msgv3 = ls_return-message_v3 if_msgv4 = l_msg2 CHANGING ct_appl_log_msg = lt_appl_log_msg.

/ISDFPS/MSG_TO_BAL_MSG CALL FUNCTION '/ISDFPS/MSG_TO_BAL_MSG' EXPORTING if_msgid = '/ISDFPS/ACCMSG' if_msgty = 'E' if_msgno = '040' if_msgv1 = ls_return-message_v1 if_msgv2 = ls_return-message_v2 if_msgv3 = ls_return-message_v3 if_msgv4 = l_msg2 CHANGING ct_appl_log_msg = lt_appl_log_msg.

/ISDFPS/AC_TCODE_AUTH_CHECK CALL FUNCTION '/ISDFPS/AC_TCODE_AUTH_CHECK' EXPORTING ac_cctr_hier_maint = 'X' ac_prctr_hier_maint = 'X' IMPORTING ac_authorization = ac_auth.



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 /ISDFPS/ACCHIERPREP or its description.