Cost/Profit Center Hierarchies
Hi
Are Cost/Profit Center Hierarchies standard objects in MDM. My Client is looking to maintain these centrally and dictribute accross the landsacape.
If not how easy(?) would it be to set them up?
Naveed
Klaus,
Is there any supporting documentation that shows best practices and methodologies for implementing a security strategy in support of the profit center hierarchy? Best practices for developing the hierarchy and then for supporting the hierarchy from a security standpoint to allow various levels of viewing based on the hierarchy (profit center).
Thanks,
Shaf
Similar Messages
-
Assigning Manual Cost/Profit Center in Sales/Purchase Order
I don't really know how to describe my problem, so I will instead describe my situation of what I need to do.
We have all our G/L accounts associated with Cost elements with no Cost/Profit centers set as default. The cost elements represent our services (ex: internet sale, hardware sale, software sale) and our cost/profit centers represent our employees. My question is how/where do I assign a cost/profit center manually when creating the sales/purchase order? Basically I would preferably like to assign the cost/profit center based on the corresponding sales person to the sales order. For the purchase order we are acting as a middle man between vendor and customer, so how would we assign a manual cost/profit center that pertains to us?
If you have a good solution to this, please provide detailed steps or instructions with t-codes and walkthroughs as I have very little knowledge about how the cost/profit centers work. I do understand sales/purchase orders though.Hi Lee
There is a transaction code OKB9 for automatic assignment of Cost Element, Cost Center, Profit Center for a Company Code. There you have to assign the Cost Center and Profit Center combination to a particular cost element.
I hope this will work out for your problem
Please let me know it is working or not
Regards
Surya -
SAP BPC - Legal entity/Profit Center hierarchies - Time dependency
Hello,
Usually Organizational structure (legal entity/ Profit center) hierarchies are time dependent in EC-CS and BCS.
Are these hierarchies time dependent in BPC?
If yes, How these settings should be made in BPC?
Kind regards,
RJBPC NW does NOT support time dependent hierarchies. However in 7.5NW, you can use dynamic hierarchy editor that will enable you to do time dependent BPC reports.
http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=XDP_STRUCT&_SLOIO=66348113C47B4AE7B2F068B88047D02B&TMP_IWB_TASK=PREVIEW2&RELEASE=610&LANGUAGE=EN&_SEQNUM=307&_LOIO=6983A56B1CE34F89A016C8E795C773BF&_CLASS=BCO_COMMON
Regards
Pravin -
The Company Codes do not match with cost/profit center.
We are using custom designed ZIBIZA_DOC_POST transaction code for uploading text files to company code 0303
I am getting the following error.
The Company Codes do not match with cost/profit center.
what configuration do i need to do to resolve the following issue.
Any help will be appreciated
waiting for your reply.
Regards
LakshmanI have checked in ks13 and se 16 everthing is fine still iam facing the same problem.
i am explaning the question in more detailed manner
Hi
We are using custom designed ZIBIZA_DOC_POST transaction code for uploading text files to company code 0303. We are able to upload the data using the above transaction code for the G/L account 24221030 (Non-Guaranteed Accommodation Balance sheet account) profit centre FXXX.
Where as for G/l account 41141010 (Handling cost a/c profit and loss account) profit center FXXX, I am unable to upload the same data, it shows the following error.
The Company Codes do not match with cost/profit center.
Where as for the same G/l accounts in company code 0311 it is getting uploaded correctly for the above two accounts i.e.
24221030 (Non-Guaranteed Accommodation Balance sheet account) with different profit center G730
41141010 (Handling cost a/c profit and loss account) with different profit center G730
We are not getting the above error in the company code 0311.
Any help will be appreciated.
Thanks & Regards
Lakshman -
Hi,
I have some question need your advise. How to relate between cost center and profit center in SAP? Pls kindly advise.
Regard
BirdHi,
Cost and Profit Centres are used for different purposes but both are for management reporting and control. Former is structured on internal view of the org whereas the latter is structured to the external view of org. Cost Centres are typcially departments/functional areas where costs can identified and allocated to, the latter is more from responsibility accounting (segments of business).
Cost Centre Master has Profit centre as an assignment field.
Rgds. -
HI
I have only done FI part. wnt to learn smething abt Co
Can you tell me wht do u mean by -
1 Cost element
2 Cost Center
3 Cost Center Accounting
4 Profit Center
5 Profit Center Accounting.
6 wht is the difference between Cost center & Profit Center?
Is there any concept of FI-CO integration? If yes how is it done?
Thanks<b>Cost element</b> It tells you on what item u r incurring cost Ex salary,rent .
<b>Cost Center</b> It defines a location of cost.It tells you where u r incurring cost.Ex canteen dept, paint shop, maintenance dept.
<b>Cost center A/Cing</b> Cost center a/cing makes it possible to analyze cost accordibg to where they were occurred in organization
<b>Profit center</b> It is an organizational sub-unit that bears responsibility for revenues as well as cost.
<b>Profit center A/Cing</b> it is used to know
product wise profitability
Location wise profitability(Factory, sales,Branch)
Function wise profitability(R&D function, sales function)
<b>Difference</b>
Major difference is cost center collects only cost profit center collects cost as well as revenue and give u the profit.
<b>Intergration</b> data flow form FI to CO through G/L account which are treated as cost elements in CO
Assign points if useful -
Hi Experts,
For this design only profit centers under the following level 4 nodes will need to be extracted and sent to PROS SOI7CR0326 , SOI7FU0763 , SOI7FU0764 , SOI7FU0765. All profit centers under these nodes will need to be sent although only level 4, level 6, and level 7 descriptions should be sent for each profit center. I used transaction KCH3 to view the hierarchy below.
I need descriptions for all the profit centers for the above mentioned nodes, please see the code and give me some solution.
5 SOI_STREAM Downstream
4 SOI4000011 DOWNSTREAM (OIL)
4 SOI5000001 DOWNSTREAM REFINING 1 PEER GRP
4 SOI5000002 DOWNSTREAM REFINING 2 PEER GRP
4 SOI5000003 DOWNSTREAM COMMERCIAL PEER GRP
5 SOI5000004 DOWNSTREAM RETAIL PEER GROUP
4 SOI6AC0001 ACCELERATOR BUSINESS UNIT
4 SOI6CR0001 US CONVENIENCE OPERATIONS
5 SOI6FU0001 US FUELS OPERATING UNIT
5 SOI7FU0692 SECONDARY TRANS / PIPELINE
5 SOI7FU0762 RESTRUCTURING HIERARCHY
5 <b> SOI7FU0763</b> US FUELS MARKETING - EAST/GULF COAST <-- Level 4 Description
5 SOI7FU0766 EGC FUELS SUPPLY GEOGRAPHY
5 SOI7FU0017 NORTHEAST GEOGRAPHY <-- Level 6 Description
18026650 EAST S&H OPPORTUNITY PROJECTS EXPENSE <-- Level 7 Description
5 SOI7FU0033 NEW YORK HARBOR - SUPPLY ENVELOPE
5 SOI7FU0034 TERMINALS&SUPPLYPLANTS -NEW YORK HARBOR
5 SOI7FU0174 GASOLINE - NEW YORK HARBOR
18000063 MA FIELD DISTRIBUTION
18000070 WASHINGTON DC-20003 (LPOB)
18000361 WILMINGTON DE-19801 (LPOB)
18000371 CORAOPOLIS PA-15108 (LPOB)
18000396 PHILADELPHIA PA-EXXON (LTOZ)
18004753 BROOKLYN TERMINAL
* This program can be used to export profit center hierarchies or other groups in a level table (format used by RGSIMPH1)
* To actively use this program:
* - copy it to a local object
* - adapt DATA_TAB to the data structure in your foreign system
* (change positions, length of fields, remove TOVALUE if
* hierarchies contain single values only, ...)
* - write an export routine for DATA_TAB if you don't want to
* download it to the presentation server
* Example hierarchy that will be exported by this program
* HIER-TOP Top node
* |
* |---- HIER-010 Node 10
* | |
* | |---- HIER-011 Node 11
* | | - CC 1 Profit center 1
* | | - CC 2 Profit center 2
* | |
* | ---- HIER-012 Node 12
* | - CC 3 Profit center 3
* | - CC 4 Profit center 4
* |
* ---- HIER-020 Node 20
* - CC 5 Profit center 5
* The level table DATA_TAB will look like this:
* Level Groupname Fromvalue Tovalue Descript
* 0001 HIER-TOP Top node
* 0002 HIER-010 Node 10
* 0003 HIER-011 Node 11
* 0004 CC 1 CC 1
* 0004 CC 2 CC 2
* 0003 HIER-012 Node 12
* 0004 CC 3 CC 3
* 0004 CC 4 CC 4
* 0002 HIER-020 Node 20
* 0003 CC 5 CC 5
* Standard Architecture Data Structures
INCLUDE: zbiod001,
zbiud002,
zbiud007.
DATA: c_text_write(5) TYPE c VALUE 'Write'.
TABLES: CEPC,
CEPCT.
*------------------------ Data ---------------------------------*
DATA: I_CEPCT LIKE CEPCT OCCURS 0 WITH HEADER LINE,
WA_CEPCT LIKE CEPCT,
I_CEPC LIKE CEPC OCCURS 0 WITH HEADER LINE,
WA_CEPC LIKE CEPC.
DATA: W_OBJECTID LIKE CDHDR-OBJECTID,
W_LEVEL_CODE(30) TYPE C,
W_LEVEL_NAME(50) TYPE C,
W_LEVEL_CODE1(30) TYPE C,
W_LEVEL_NAME1(50) TYPE C.
DATA: BEGIN OF I_PROFIT OCCURS 10,
ID(15) TYPE C,
CODE(10) TYPE C,
NAME(20) TYPE C,
DESC(40) TYPE C,
HIER_LVL1_CODE(30) TYPE C,
HIER_LVL1_NAME(50) TYPE C,
HIER_LVL2_CODE(30) TYPE C,
HIER_LVL2_NAME(50) TYPE C,
HIER_LVL3_CODE(30) TYPE C,
HIER_LVL3_NAME(50) TYPE C,
HIER_LVL4_CODE(30) TYPE C,
HIER_LVL4_NAME(50) TYPE C,
HIER_LVL5_CODE(30) TYPE C,
HIER_LVL5_NAME(50) TYPE C,
HIER_LVL6_CODE(30) TYPE C,
HIER_LVL6_NAME(50) TYPE C,
HIER_LVL7_CODE(30) TYPE C,
HIER_LVL7_NAME(50) TYPE C,
HIER_LVL8_CODE(30) TYPE C,
HIER_LVL8_NAME(50) TYPE C,
HIER_LVL9_CODE(30) TYPE C,
HIER_LVL9_NAME(50) TYPE C,
HIER_LVL10_CODE(30) TYPE C,
HIER_LVL10_NAME(50) TYPE C,
HIER_LVL11_CODE(30) TYPE C,
HIER_LVL11_NAME(50) TYPE C,
CREATED_BY(15) TYPE C,
CREATED_DATE(10) TYPE C,
LAST_UPDATED_BY(15) TYPE C,
LAST_UPDATED_DATE(10) TYPE C,
BATCH_ID(15) TYPE C,
STAGE2_DIM_ID(15) TYPE C,
SOURCE_SYSTEM_ID(20) TYPE C,
ALT_ACCOUNT_SET_HIERARCHY_IND(1) TYPE C,
END OF I_PROFIT.
*Structure required by Essbase. Str_PC1.TXT
DATA: BEGIN OF I_STR_PC1 OCCURS 10,
HIER_LVL1_CODE(30) TYPE C,
FILLER1(1) TYPE C VALUE '|',
HIER_LVL1_NAME(50) TYPE C,
FILLER2(1) TYPE C VALUE '|',
HIER_LVL2_CODE(30) TYPE C,
FILLER3(1) TYPE C VALUE '|',
HIER_LVL2_NAME(50) TYPE C,
FILLER4(1) TYPE C VALUE '|',
HIER_LVL3_CODE(30) TYPE C,
FILLER5(1) TYPE C VALUE '|',
HIER_LVL3_NAME(50) TYPE C,
FILLER6(1) TYPE C VALUE '|',
HIER_LVL4_CODE(30) TYPE C,
FILLER7(1) TYPE C VALUE '|',
HIER_LVL4_NAME(50) TYPE C,
FILLER8(1) TYPE C VALUE '|',
HIER_LVL5_CODE(30) TYPE C,
FILLER9(1) TYPE C VALUE '|',
HIER_LVL5_NAME(50) TYPE C,
FILLER10(1) TYPE C VALUE '|',
HIER_LVL6_CODE(30) TYPE C,
FILLER11(1) TYPE C VALUE '|',
HIER_LVL6_NAME(50) TYPE C,
FILLER12(1) TYPE C VALUE '|',
HIER_LVL7_CODE(30) TYPE C,
FILLER13(1) TYPE C VALUE '|',
HIER_LVL7_NAME(50) TYPE C,
FILLER14(1) TYPE C VALUE '|',
HIER_LVL8_CODE(30) TYPE C,
FILLER15(1) TYPE C VALUE '|',
HIER_LVL8_NAME(50) TYPE C,
FILLER16(1) TYPE C VALUE '|',
HIER_LVL9_CODE(30) TYPE C,
FILLER17(1) TYPE C VALUE '|',
HIER_LVL9_NAME(50) TYPE C,
FILLER18(1) TYPE C VALUE '|',
HIER_LVL10_CODE(30) TYPE C,
FILLER19(1) TYPE C VALUE '|',
HIER_LVL10_NAME(50) TYPE C,
FILLER20(1) TYPE C VALUE '|',
HIER_LVL11_CODE(30) TYPE C,
FILLER21(1) TYPE C VALUE '|',
HIER_LVL11_NAME(50) TYPE C,
FILLER22(1) TYPE C VALUE '|',
CODE(10) TYPE C,
FILLER23(1) TYPE C VALUE '|',
DESC(40) TYPE C,
FILLER24(1) TYPE C VALUE '|',
NAME(20) TYPE C,
FILLER25(1) TYPE C VALUE '|',
END OF I_STR_PC1.
*Variable declaration
DATA: CTR(2) TYPE C,
INC TYPE I,
W_CTR1(2) TYPE C,
W_INC1 TYPE I.
DATA: w_file_prft LIKE w_prc_files.
*Field symbols.
FIELD-SYMBOLS: <CD1>,
<NM1>.
* External level table will be using the following structure
DATA: BEGIN OF data_tab OCCURS 0,
level(4) TYPE n, "level in hierarchy
groupname LIKE grpdynp-name_coall, "name of node
fromvalue LIKE setvalues-from, "From-Value of interval
tovalue LIKE setvalues-to, "To-Value of interval
descript LIKE sethier-descript,"description of this entry
END OF data_tab.
*Constants
CONSTANTS: c_setclass LIKE sethier-setclass VALUE '01++'.
*------------------------ SelectionScreen--------------------------*
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
* Parameters
PARAMETERS: g_setid LIKE sethier-setid OBLIGATORY MEMORY ID gse.
SELECTION-SCREEN END OF BLOCK B1.
* Tables to read sets
DATA: sethier LIKE sethier OCCURS 0 WITH HEADER LINE, "hierar. nodes
setvalues LIKE setvalues OCCURS 0 WITH HEADER LINE, "hier. values
g_setval_index LIKE sy-tabix, "index for setvalues,
g_int TYPE i,
g_rc TYPE c,
g_old_file LIKE lgrwo-exp_file.
*------------------------ AT Selection screen----------------------*
AT SELECTION-SCREEN.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR g_setid.
* Value request for group name
CALL FUNCTION 'G_RW_SET_SELECT'
EXPORTING
class = c_setclass
set = g_setid
typelist = 'BS'
show_field_name = ' '
show_table_name = ' '
IMPORTING
setid = g_setid
set_name = g_setid.
*peform to read profit center hierarchy
PERFORM READ_SETHIER.
*perform to change the output format to flat file format
PERFORM PROFIT_CENTER_HIER.
*Fill remaining details from profit center master tables
PERFORM FILL_PRCTR_DETAILS.
*perform to download the details
PERFORM F_WRITE_TO_FILE.
FORM READ_SETHIER.
* Preparations: check authority to read sets
CALL FUNCTION 'G_SET_OR_GROUP_AUTHORITY'
EXPORTING
i_setid = g_setid
i_actvt = '03'.
* Read set
REFRESH: sethier, setvalues.
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
no_rw_info = 'X'
setid = g_setid
TABLES
set_hierarchy = sethier
set_values = setvalues.
* Copy set into DATA_TAB
REFRESH data_tab.
g_setval_index = 1.
LOOP AT sethier.
CLEAR data_tab.
data_tab-level = sethier-level.
data_tab-groupname = sethier-shortname.
data_tab-descript = sethier-descript.
APPEND data_tab.
CHECK sethier-vcount > 0.
CLEAR data_tab.
data_tab-level = sethier-level + 1.
g_int = g_setval_index + sethier-vcount - 1.
LOOP AT setvalues FROM g_setval_index TO g_int.
data_tab-fromvalue = setvalues-from.
data_tab-tovalue = setvalues-to.
data_tab-descript = setvalues-descript.
APPEND data_tab.
ENDLOOP.
g_setval_index = g_int + 1.
ENDLOOP.
ENDFORM.
FORM PROFIT_CENTER_HIER.
* Use DATA_TAB table here to get to the heirarchies.
LOOP AT DATA_TAB.
W_INC1 = DATA_TAB-LEVEL.
W_CTR1 = W_INC1.
IF DATA_TAB-LEVEL = '0000' .
CONTINUE.
ENDIF.
IF NOT DATA_TAB-GROUPNAME IS INITIAL.
CONCATENATE 'I_PROFIT-HIER_LVL' W_CTR1 '_CODE' INTO W_LEVEL_CODE1.
ASSIGN (W_LEVEL_CODE1) TO <CD1>.
<CD1> = DATA_TAB-GROUPNAME.
CONCATENATE 'I_PROFIT-HIER_LVL' W_CTR1 '_NAME' INTO W_LEVEL_NAME1.
ASSIGN (W_LEVEL_NAME1) TO <NM1>.
<NM1> = DATA_TAB-DESCRIPT.
ELSEIF NOT ( DATA_TAB-FROMVALUE IS INITIAL OR
DATA_TAB-TOVALUE IS INITIAL ) AND
DATA_TAB-LEVEL NE '0001' .
MOVE DATA_TAB-FROMVALUE TO I_PROFIT-CODE.
PERFORM CLEAR_ABOVE_LEVEL USING W_CTR1.
APPEND I_PROFIT.
CONTINUE.
ENDIF.
ENDLOOP.
ENDFORM.
* FORM GET_FILE_NAME *
* Value help for export/import file name *
FORM get_file_name CHANGING p_outfile LIKE lgrwo-exp_file.
DATA: path LIKE lgrwo-exp_file,
len TYPE i,
separator(1) TYPE c,
window_system(4) TYPE c.
FIELD-SYMBOLS <last_char>.
* get presentation server operating system for file name separator
CALL FUNCTION 'WS_QUERY'
EXPORTING
query = 'WS'
IMPORTING
return = window_system.
IF window_system = 'MC'. "Mac OS
separator = ':'.
ELSE. "Windoze
separator = ''.
ENDIF.
* get path name
path = p_outfile.
SHIFT path RIGHT DELETING TRAILING space.
DESCRIBE FIELD path LENGTH len.
len = len - 1.
ASSIGN path+len(1) TO <last_char>.
WHILE <last_char> <> separator AND
path <> space.
SHIFT path RIGHT.
ENDWHILE.
SHIFT path LEFT DELETING LEADING space.
* get file name
WHILE p_outfile CS separator.
SHIFT p_outfile UP TO separator.
SHIFT p_outfile.
ENDWHILE.
* get file name
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = p_outfile
def_path = path
mask = ',*.*,*.*.'
mode = 'S'
IMPORTING
filename = p_outfile
EXCEPTIONS
OTHERS = 0.
ENDFORM.
*& Form CLEAR_ABOVE_LEVEL
FORM CLEAR_ABOVE_LEVEL USING P_LEVEL.
*Field symbols.
FIELD-SYMBOLS: <CD>,
<NM>.
*Clear code and name from upper level hierarchies when profit center
* is found in the lower level hierarchies.
WHILE P_LEVEL <= 10.
CONCATENATE 'I_PROFIT-HIER_LVL' P_LEVEL '_CODE' INTO W_LEVEL_CODE.
ASSIGN (W_LEVEL_CODE) TO <CD>.
CLEAR <CD>.
CONCATENATE 'I_PROFIT-HIER_LVL' P_LEVEL '_NAME' INTO W_LEVEL_NAME.
ASSIGN (W_LEVEL_NAME) TO <NM>.
CLEAR <NM>.
P_LEVEL = P_LEVEL + 1.
ENDWHILE.
CLEAR: P_LEVEL,
W_LEVEL_CODE,
W_LEVEL_NAME.
ENDFORM. " CLEAR_ABOVE_LEVEL
*& Form FILL_PRCTR_DETAILS
FORM FILL_PRCTR_DETAILS.
DATA: CTR TYPE I.
*Select description from CEPCT table
SELECT * FROM CEPCT INTO TABLE I_CEPCT WHERE SPRAS EQ 'EN'.
SELECT * FROM CEPC INTO TABLE I_CEPC.
SORT I_CEPC DESCENDING BY PRCTR DATBI.
DELETE ADJACENT DUPLICATES FROM I_CEPC COMPARING PRCTR.
SORT I_CEPC.
SORT I_PROFIT BY CODE.
LOOP AT I_PROFIT.
CLEAR: WA_CEPC,
WA_CEPCT,
W_OBJECTID.
CTR = CTR + 1.
READ TABLE I_CEPC INTO WA_CEPC WITH KEY PRCTR = I_PROFIT-CODE.
READ TABLE I_CEPCT INTO WA_CEPCT WITH KEY PRCTR = WA_CEPC-PRCTR
DATBI = WA_CEPC-DATBI.
MOVE: CTR TO I_PROFIT-ID,
WA_CEPCT-KTEXT TO I_PROFIT-NAME,
WA_CEPCT-LTEXT TO I_PROFIT-DESC.
CONCATENATE '0002' I_PROFIT-CODE INTO W_OBJECTID.
MOVE-CORRESPONDING I_PROFIT TO I_STR_PC1.
APPEND I_STR_PC1.
ENDLOOP.
FREE I_PROFIT.
ENDFORM. " FILL_PRCTR_DETAILS
*& Form F_DOWNLOAD
FORM F_DOWNLOAD.
ENDFORM.
*& Form F_WRITE_TO_FILE
FORM F_WRITE_TO_FILE.
LOOP AT I_STR_PC1.
PERFORM WRITE_FILE USING I_STR_PC1
w_file_prft-PRC_FILE..
ENDLOOP.
ENDFORM. " F_WRITE_TO_FILE
FORM WRITE_FILE USING W_RECORD W_PRC_FILE.
DATA: W_RECORD_LEN TYPE I.
* Retreive the actual length of the record to be written
DESCRIBE FIELD W_RECORD LENGTH W_RECORD_LEN.
TRANSFER W_RECORD TO W_PRC_FILE LENGTH W_RECORD_LEN.
IF SY-SUBRC NE 0.
MESSAGE ID 'ZZ' TYPE 'A' NUMBER '001'
WITH C_TEXT_WRITE W_PRC_FILE.
ENDIF.
CLEAR W_RECORD.
ENDFORM.
Thanks & Regards,
Poorna.hi all,
here is the solution:
**------------------------ Data ---------------------------------*
DATA: i_cepct LIKE cepct OCCURS 0 WITH HEADER LINE,
wa_cepct LIKE cepct,
i_cepc LIKE cepc OCCURS 0 WITH HEADER LINE,
wa_cepc LIKE cepc.
*Variable declaration
DATA: w_ctr1(2) TYPE c,
w_inc1 TYPE i.
DATA: w_level_code(30) TYPE c,
w_level_name(50) TYPE c,
w_level_code1(30) TYPE c,
w_level_name1(50) TYPE c.
*Field symbols.
FIELD-SYMBOLS: <cd1>,
<nm1>.
* External level table will be using the following structure
DATA: BEGIN OF data_tab OCCURS 0,
level(4) TYPE n, "level in hierarchy
groupname LIKE grpdynp-name_coall, "name of node
fromvalue LIKE setvalues-from, "From-Value of interval
tovalue LIKE setvalues-to, "To-Value of interval
descript LIKE sethier-descript,"description of this entry
END OF data_tab.
* Tables to read sets
DATA: sethier LIKE sethier OCCURS 0 WITH HEADER LINE, "hier-nodes
setvalues LIKE setvalues OCCURS 0 WITH HEADER LINE, "hier-values
g_setval_index LIKE sy-tabix, "index for setvalues,
g_int TYPE i.
DATA: BEGIN OF i_profit OCCURS 10,
id(15) TYPE c,
code(10) TYPE c,
name(20) TYPE c,
desc(40) TYPE c,
hier_lvl1_code(30) TYPE c,
hier_lvl1_name(50) TYPE c,
hier_lvl2_code(30) TYPE c,
hier_lvl2_name(50) TYPE c,
hier_lvl3_code(30) TYPE c,
hier_lvl3_name(50) TYPE c,
hier_lvl4_code(30) TYPE c,
hier_lvl4_name(50) TYPE c,
hier_lvl5_code(30) TYPE c,
hier_lvl5_name(50) TYPE c,
hier_lvl6_code(30) TYPE c,
hier_lvl6_name(50) TYPE c,
hier_lvl7_code(30) TYPE c,
hier_lvl7_name(50) TYPE c,
hier_lvl8_code(30) TYPE c,
hier_lvl8_name(50) TYPE c,
hier_lvl9_code(30) TYPE c,
hier_lvl9_name(50) TYPE c,
hier_lvl10_code(30) TYPE c,
hier_lvl10_name(50) TYPE c,
hier_lvl11_code(30) TYPE c,
hier_lvl11_name(50) TYPE c,
created_by(15) TYPE c,
created_date(10) TYPE c,
last_updated_by(15) TYPE c,
last_updated_date(10) TYPE c,
batch_id(15) TYPE c,
stage2_dim_id(15) TYPE c,
source_system_id(20) TYPE c,
alt_account_set_hierarchy_ind(1) TYPE c,
END OF i_profit.
DATA: BEGIN OF i_str_pc2 OCCURS 10,
code(10) TYPE c,
desc(50) TYPE c,
hier_lvl1_name(50) TYPE c,
hier_lvl3_name(50) TYPE c,
hier_lvl4_name(50) TYPE c,
extradatetime(20) TYPE c,
END OF i_str_pc2,
BEGIN OF i_setid OCCURS 4,
g_setid LIKE sethier-setid,
v_kokrs LIKE sethier-kokrs,
END OF i_setid.
DATA : wa_str_pc2 LIKE i_str_pc2,
wa_setid LIKE i_setid,
v_datetim(20) TYPE c,
v_tim(8) TYPE c,
v_level_dec(50) TYPE c,
v_profit_desc(50) TYPE c.
*"*"Local interface:
*" TABLES
*" IPROFIT STRUCTURE ZPCT
* Append all the major nodes to I_setid
* SOI7CR0326 Profit Center node1( under this Hier will be available, and the end you will have profit centers),
* SOI7FU0763 Profit Center node2,
* SOI7FU0764 Profit Center node3,
* SOI7FU0765 Profit Center node4.
wa_setid-g_setid = text-009.
wa_setid-v_kokrs = text-004.
APPEND wa_setid TO i_setid.
wa_setid-g_setid = text-010.
wa_setid-v_kokrs = text-004.
APPEND wa_setid TO i_setid.
wa_setid-g_setid = text-011.
wa_setid-v_kokrs = text-004.
APPEND wa_setid TO i_setid.
wa_setid-g_setid = text-012.
wa_setid-v_kokrs = text-004.
APPEND wa_setid TO i_setid.
* Loop at earch major nodes from i_setid.
LOOP AT i_setid INTO wa_setid.
REFRESH: i_profit.
* Preparations: check authority to read sets
CALL FUNCTION 'G_SET_OR_GROUP_AUTHORITY'
EXPORTING
i_setid = wa_setid-g_setid
i_actvt = '03'.
* Funtion module to import the set hierarchy and nodes values.
REFRESH: sethier, setvalues.
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
no_rw_info = 'X'
setid = wa_setid-g_setid
TABLES
set_hierarchy = sethier
set_values = setvalues.
* Copy set into DATA_TAB
REFRESH data_tab.
g_setval_index = 1.
LOOP AT sethier.
CLEAR data_tab.
data_tab-level = sethier-level.
data_tab-groupname = sethier-shortname.
data_tab-descript = sethier-descript.
APPEND data_tab.
CHECK sethier-vcount > 0.
CLEAR data_tab.
data_tab-level = sethier-level + 1.
g_int = g_setval_index + sethier-vcount - 1.
LOOP AT setvalues FROM g_setval_index TO g_int.
data_tab-fromvalue = setvalues-from.
data_tab-tovalue = setvalues-to.
data_tab-descript = setvalues-descript.
APPEND data_tab.
ENDLOOP.
g_setval_index = g_int + 1.
ENDLOOP.
* Loop at the data_tab to move all the Profit center nodes to i_profit.
LOOP AT data_tab.
w_inc1 = data_tab-level.
w_ctr1 = w_inc1.
IF data_tab-level = text-002 .
v_level_dec = data_tab-descript. "Description of level 4 node
CONTINUE.
ENDIF.
IF NOT data_tab-groupname IS INITIAL.
CONCATENATE text-001 w_ctr1 text-007 INTO w_level_code1.
ASSIGN (w_level_code1) TO <cd1>.
<cd1> = data_tab-groupname.
CONCATENATE text-001 w_ctr1 text-008 INTO w_level_name1.
ASSIGN (w_level_name1) TO <nm1>.
<nm1> = data_tab-descript.
ELSEIF NOT ( data_tab-fromvalue IS INITIAL OR
data_tab-tovalue IS INITIAL ) AND
data_tab-level NE text-003 .
MOVE data_tab-fromvalue TO i_profit-code.
PERFORM clear_above_level USING w_ctr1.
APPEND i_profit.
CONTINUE.
ENDIF.
ENDLOOP.
*Select description from CEPCT table
SELECT * FROM cepct
INTO TABLE i_cepct
WHERE spras EQ text-006.
SELECT * FROM cepc
INTO TABLE i_cepc.
SORT i_cepc DESCENDING BY prctr datbi.
DELETE ADJACENT DUPLICATES FROM i_cepc COMPARING prctr.
SORT i_cepc.
SORT i_profit BY code.
* Date and Times for each record.
CONCATENATE sy-uzeit+0(2) text-005 sy-uzeit+2(2) text-005
sy-uzeit+4(2) INTO v_tim.
CONCATENATE sy-datum v_tim INTO v_datetim SEPARATED BY space.
LOOP AT i_profit .
CLEAR: wa_cepc,
wa_cepct.
IF ( i_profit-code <> space
AND i_profit-hier_lvl2_name <> space
AND i_profit-hier_lvl3_name <> space ).
READ TABLE i_cepc INTO wa_cepc WITH KEY prctr = i_profit-code.
IF sy-subrc = 0.
READ TABLE i_cepct INTO wa_cepct WITH KEY prctr = wa_cepc-prctr
datbi = wa_cepc-datbi.
IF sy-subrc = 0.
*v_level_dec ( Description of level 4 node )
*i_profit-hier_lvl2_name ( Descri Level 6 )
*i_profit-hier_lvl3_name ( Descri Level 6 )
*i_profit-code ( Profit Center code )
*v_profit_desc ( Profit Center description )
CONCATENATE wa_cepct-ltext text-013 i_profit-code INTO v_profit_desc.
wa_str_pc2-hier_lvl1_name = v_level_dec.
wa_str_pc2-hier_lvl3_name = i_profit-hier_lvl2_name.
wa_str_pc2-hier_lvl4_name = i_profit-hier_lvl3_name.
wa_str_pc2-code = i_profit-code.
wa_str_pc2-desc = v_profit_desc.
wa_str_pc2-extradatetime = v_datetim.
APPEND wa_str_pc2 TO iprofit.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
CLEAR: v_level_dec.
ENDLOOP.
CLEAR: wa_setid.
ENDFUNCTION. -
Asset transfer between 2 profit center from same entity
Hello dear all,
I wants to know if there is a clear process concerning transfer of asset between 2 Profit center of the same entity.
The user is not satisfied with the solution ABUMN (Transfer within company code).
The Problem is that a new asset number is created and the users doesn't want a new number
Can you help me or propose me other solution or process ?
Thanks in advance for everyone
Edited by: Tarek AYACHI on Nov 17, 2009 11:47 AMHi Tarek,
If you want the accounting flow also then I would suggest you to change the cost center in the asset master and use KB11N for reposting of depreciation from old cost center to new cost center. This way you would be able to transfer the depreciation already posted on that asset to new cost / profit center as well and also you don't need to create a new asset master.
Apart from this I don't think there is anyother way out.
Regards,
Sanjay -
Compare Profit Center Hierarchy
Hi
I'm just wondering if there is any SAP St.Program to compare the standard profit center hierarchies between clients. i,e i would like to compare my Standard Hierarchy in Quality system with that of in Production system.
Regards
KBHi,
No, I'm afraid not. You can export them, though, and compare in Excel.
Regards,
Eli -
Profit center hierarchy and closure transactions
Hi fellows,
My company is reorganised.
As the annual closure will last several months, I will need to run 2 profit center hierarchies at the same time.
I will copy the standard hierarchy 2009.
The standard hierarchy 2009 will be modified and used for 2010.
The copy will become an alternative hierarchy used to close 2009 accountancy.
Do you see any problems to run 2 hierarchies at the same time?
Is it possible to make the annual closure with an alterative hierarchy for transactions (KKAJ, KSII, KB15N...)
Thanks a lot
VeroHi
You can maintain as many number of hierarchies as possible.
There is absolutely no problem to maintain any alternative hierarchy but you can't maintain multiple standard hierarchies.
Profit Centre Standard Hieararchy T.Code is KCH1 - Create, KCH5N - Change, KCH6N - Display
Profit Centre Group (Alternative hierarchy) T.Code is KCH1 - Create, KCH2 - Change, KCH3 - Display.
Regards.
Chandrasekhar Ponugumati -
Multiple hierarchies in profit center
Hi everybody,
We do we go for Multiple/alternative hierarchies in profit center or cost center??
can some one explain?
Regards
Hari PHi,
System demands that both for cost centre and profit centre there would be standard hierarchy. Usually, it represents the 'official' organization which will be ffrequently used for reporting. However, in different organizations there is a need in 'alternative hierarchy', mostly for reporting purposes, in order to see figures in different groupping. For this, you can create groups for cost centres/profit centres.
Regards,
Eli -
Cost Center assign Profit Center Issues
Hi Controlling Expert,
i have one issues regarding, Cost Center assign to Profit Center
wht happened , we have made MIS Report Thru Report Painter KE80, we have map based on Primary Cost Element, at the time of Business Transaction, we have capture the Finance Cost center i.e FI000, Marketing Cost center i.e MK000 , HR Cost Center i,e HR000 and assign the same cost center FI000 to Profit Center i.e FI000 also same name, respectively. in MIS report there is two Head i.e Sustaining Cost and Development Cost ,where we have to capture only Cost center for Sustaining Cost related to display i.e FI000, MK000 and HR000. KE80 report belongs to Profit Center wise you can see the Report. But same FI000, MK000 and HR000 also updated related with business transaction and capture above cost center like in depreciation GL Amount 1000 cost center FI000 and sustaining cost also updated the same amount 1000 because we have assign FI000, i.e wrong . last 3 months post the amount now wht should I do for not updated sustaining cost, as I understand , should be delete sustaining Cost as well Development, and later on we can take report from KSB1 for FI000, MK000 and HR000, for management purpose, so if I cannot assign profit center FI000 to Cost Center .kindly correct me whether ryt or wrong. Coz Fianance, HR cost and marketing is only cost center. not suppose to assigh profit center, in this case how Profit Center removed from Cost center. kindly let me knw, or give me other option.
wen we see the report same Profit Center showing two times along with amount i.e wrong coz of Sustaining Cost we have assign Profit Center
in this report particulars are Below
Revenue : Relevant GL ( At time of Business Transaction we have captured the Relevant Profit Center i.e Finished Product i.e R100: RA Tube
and RA Tube R100 assign with same Cost Center R100.
B.Material Cost : Relevant Primary Cost Element
Manpower : same like Above
2.Energy : same like Above
3.Consumption : same Like Above
Conversion Cost (1+2+3)
Sustaining Cost : Here we have given Profit Center i.e FI000, MK000 and HR000 these profit center assign
Development Cost : Here we have given profit Cente EN000
Profit (A-B-C-D-E-F)
G.Depreciation : Relevant Primary Primary Cost Element
Financing Cost : Relevant Primary Cost Element
I. Other Income/Loss : Relevant Primary Cost Element
PBT : (F-G-H-I)
Kind regards
Pranav Kr. Gupta
SAP FICO Consultant.Hi Pranav
You are logging same issue twice. I didnt see any difference in the two threads though.
If its the same issue, request you not to repeat this in future.
KE80 report two times value effected
Regards
Mustafa -
Secondary Cost Element Values doesn't display in Profit Center Report
Hi everyone,
I'm having a problem with our Profit Center plan/actual/variance reports wherein it doesn't display the postings I made to the Secondary cost element when I executed an assessment cycle (KSU5). I already set in the configuration that all postings to be done in the cost centers, should have a parallel posting to the profit center assigned to it. I can see the postings in my cost center reports, but not in my profit center report. Could I have missed out on any procedure to enable the secondary cost element parallel posting in my profit centers? Any help would be appreciated. Thanks!it might be the configuration of the library or some parameter in the report (record type should be 0 and 2 for actual values, where 2 stands for distributed values and 1 and 3 for planned values)
but it also might be that the reconciliation is done between different CC and same PC
- check your CC organisation asignment
- if sender cost center and receiver cost center have tha same PC it is probably the reason
- I had that problem my self and didn't solve it
cheers
matej -
Profit Center deriviation from Cost Center
Hi all,
I have just configured CCA and PCA for one of our new company code.
I have created 3 cost centers like A, B, C and subsequently same have been created as profit centers too.
Maintained the profit center in the cost center master data.
No other derivation rules has been configured so far.
Now i am trying to do a expense posting with F-02, after entering cost center, system is updating profit center field with a dummy profit center only.
Even i f a changed the dummy to normal profit center, again system replacing the normal PC with dummy PC.
I want like...when i enter CC as A, then i need to derive PC also as A for the line item. ( For both expense items as well as revenue items).
Please suggest.
Regards,
SrinuHi Chintan,
Thanks for your quick response.
We have already implemented the said SAP note.
Let me explain my requirement again.
We have IOA, CCA, PCA active in our system.
For every expense or revenue line item Internal order is mandatory.
apart from we have 3 cost centers and 3 profit centers ( 1:1 )
in cost center master , profit center is assigned.
1) users are going to decide the cost center, while posting FI direct entries only. So while doing F-02, they will enter CC, and IO manually and at the same time PC should derive from cost center master data ( as it is 1:1 only).
2) as specified above, we have IOA, CCA, PCA active. In this case IO, CC, PC are to be set as mandatory fields for Field Status Groups G004 and G029?
Please advise...
Regards,
Srinu -
Profit Center value for Creation of Cost Center in MDG F
Hi
I am using MDG-F 6.1. I want to create cost center using change request type OG_W003 ( Cost Center single processing) without uploading intial data from ECC check table ( CEPC- Procit Center Master Data ).
Is this possible as there is warning message while creation of CC?
As there is warning message befor submitting of CR as
'Field "Profit Center": Field should be filled because Profit Center Accounting is active'
If we go ahead for with final processing then again one warning message
'The status of change request 86 does not allow for object changes'
After Approval active CC stores in MDG database table and not replicated to ECC even assigned Edition with flag'Immediate replicate' .
Also one more question How referance data ( Like Controlling Area/Company Codes) are retrived in MDG F in case of add on deployement?
Does intial upload is requird for this as well?
In ECC it is possible to create CC without PC.Hello Sanjay
For Interface and for ALE setup Global company code is must. You are dealing with cross-company transfers since you are using MDG and ECC. In the ALE distribution layer, it is required to set up the global company code for the program to understand for which company code the master data is created. This setting will not affect any process. Tcode- ob72 and obb5.
Kiran
Maybe you are looking for
-
Does Encore come with Premier Pro CC?
Hi, I'm on the creative cloud and I have Premier Pro CC. I do not have Premier Pro CS6. I've heard that you get Encore with Premier Pro CS6, but I cannot find anything on it for Premier Pro CC. I use a Mac and I cannot find anything I've already down
-
Using Check in alter statement
Hi I am using the statement like this: alter table dept modify (deptno check deptno in (10,20,30,40,50)); ERROR at line 2: ORA-02253: constraint specification not allowed here Any suggestions? Thanks
-
Configuring Fault Message For the Send Synchronous step
Hi, PI receives a file and sends a soap request to Third pary system. If the data sent to third party system is correct, PI receives a empty soap envelopre. If the data is not approriate, PI receives an fault message(Application Error).PI has to trig
-
I've followed the example from Shay YouTube video and also from the development guide. "How to Create a Databound Search in a Hierarchy Viewer" http://docs.oracle.com/cd/E14571_01/web.1111/b31974/graphs_charts.htm#ADFFD22229 I drag and drop the Execu
-
Can we import RAW photos into iphoto?
My brother-in-law has many photos from past reunions that are in RAW format. Can we import these into iphoto and have it work? I really want the photos but he thinks it won't work. What are the steps? He says the file sizes are very large