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,
RJ
BPC 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
Similar Messages
-
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?
NaveedKlaus,
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 -
Bunch of ERRORS after installing SAP BPC 5.1 for the first time
Hi guys
Our basis guy is installing SAP BPC 5.1 for the first time. After the installation, I can get into SAP BPC - Administration screen but I get a lot of errors when I try to do some changes. Some of them are -
1. Whenever I try getting into the SAP BPC administration I get the following error. But when I click OK it gets me to the administration screen but after that Hell breaks loose
Error on uncompressing file: Error : ActiveX component can't create object.
2. Create dimensions -
Split File Error
3. Delete dimensions -
OLAPConnect Error - The Database with ID = 'ApShell' doesn't exist in the collection
4. BPC for Excel (I am logging in as a system admin)
The dimension information file cannot be created. There may be a network or security issue.
Error Message: InitCatalog:Either the user does not have access to the ApShell database, or the database does not exist.
I am sure I will get a lot of errors once I start playing with the configuration.
Please comment.
Thanks,
Ameya KulkarniHi Ameya Kulkarni,
I sorry I wrong type something,
1. Whenever I try getting into the SAP BPC administration I get the following error. But when I click OK it gets me to the administration screen but after that Hell breaks loose
Error on uncompressing file: Error : ActiveX component can't create object.
==>
You should do this step such as:
1. copy file "XceedZip.dll" into the directory SAP BPC
2. register that file into the register window using sintaks: "regsvr32"
3. If the successfully message box appears, You should open the MS.Excel or SAP BPC administration
2. Create dimensions -
Split File Error
==>
You should check the database your application in MS.SQL first please.Perhaps, It's does not open and retrieve data.
3. Delete dimensions -
OLAPConnect Error - The Database with ID = 'ApShell' doesn't exist in the collection
==>
You should check the database your application in MS.SQL first please.Perhaps, It's does not open and retrieve data.
4. BPC for Excel (I am logging in as a system admin)
The dimension information file cannot be created. There may be a network or security issue.
Error Message: InitCatalog:Either the user does not have access to the ApShell database, or the database does not exist.
==>
You must solve the problem no.2&3 because you should add new user through SAP BPC Administration for the application.
I wish My Suggestion can help you.
Regards,
Wandi Sutandi -
Issue making Cost Center Hierarchy Time Dependent
Hi,
We have three hierarchies on top of cost center and cost center was not time-dependent. There is a new requirement to make one of the hierarchies time dependent. To faclitate it, I changed the hierarchy property in cost center infoobject to "Hierarchy structure is time-dependent" and then loaded the hierarchy.It took the validity dates of 1.1.1000 to 31.12.999. A costcenter was changed from one node to another in ECC and was extracted into BI. As time-dependency is set, I thought that node will have two entries now one with validity period 1.1.1000 to 30.10.2009 and another with 31.10.2009 to 31.12.999. But instead the hierarchy was overwritten and only the latest change is refelcted.
Can someone please help in figuring out the issue. Should some change be done in ECC for time-dependency to reflect.
Thanks
AchyutaHey Achyuta,
The hierarchy needs to be time dependent in the source system and then the datasource for the time dependent hierarchy would then need to be replicated again. You'll know if it's right after the replication if you view the datasource in BW and the Data is Time Dependent check box is checked on the General Info Tab. Once the datasource is time-dependent, loads should populate the DateTo and DateFrom as you expect. Consult your R/3 expert if you need help over on the source system side.
Peace,
Dan Glick -
Taking Dummy profit center at time of cancelation of billing
HI Gurus,
we have maintained one exchange rate differece GL a/c at the time of billing accounting document.for this Gl account we have maintained one default cost center in OKB9 in which we have assigned profit center also.
Here at the time of billing accounting doc we are getting cost center as well as profit center what we have maintained. where as in cancelation of billing document it's picking up the dummy profit center instand of profit center maintained in billing.
But we are getting correct cost center at the time of cancelation also only profit center is differing..
Could you please any one suggest on this..Thanks in advance..
Regards,
SriniIn OKB9 Did you tried using value 3 in account assignment which makes profit cemter as mandatory?
In your scenario chek the values in 3KEH assignment if it is 4.7 or earlier or FAGL3KEH if it is >5.0.
If you want to default a constant profit center for Bank charges/Exchange losses you can define here. -
How SAP system validate the profit center plant wise?
Hi Experts,
I want to know about how the SAP system process in Material Master validation. My requirement is how do i check whether the entered profit center is valied for the specific plant?
When we create material master it'll validate the right profit center. How it's done by the system?
Thanks & Regards,
RashikaBalances Transfer from One Profit Center to Another PC T.Code: 9KE0
Regards,
Viswa -
Change to cost center in time dependent data. Can I rerun depreciation YTD?
I need to change the cost center in October (Period 10) Period 9 and prior are already closed. I thought that since I put the Interval for the new cost center as 1/1/11 that it might do and adjustment in October reversing the depreciation posted for the old cost center and put the YTD depreciation in the new cost center, but it did not. it only posted the current month depreciation to the new cost center. Is there any way to do this? Thank you very much.
Hi. Thanks for your reply. I went into the ABAA screen, but I am afraid to process this transaction because I do not understand what is going to happen. I cannot find any documentation that explains this. I have already changed the cost center on the asset and run depreciation. It posted the current month depreciation to the new cost center, but it did not make a correction to the prior periods. I am not creating a new asset, i just want to reclass the prior months depreciation (in the current year) to the new cost center. In case it will help I provide some details:
Asset acquired 5/1/11 Depreciation posted to Cost Center A From May - Sept $1,796.06 per month x 5 = $8,980.30
Before posting Oct depreciation, I went to Master Data - Time Dependent - and changed the cost center as of 1/1/11. So I now have two intervals: From 1/1/1900-Cost Center A, and From 1/1/11 - Cost Center B. I then ran the regular depreciation for Oct. It posted Oct Depreciation of $1,796.06 to the new Cost Center-Cost Center B. My total YTD depreciation is now $10,776.36, but it is split between two cost centers. I need to move the depreciation from Cost Center A to Cost Center B for the prior months. If it was a Journal Entry, I would do it as follows in the month of October, so my YTD numbers would be correct.
Debit Depreciation Cost Center B $8,980.30
Credit Depreciation Cost Center A $8,980.30
Then when I run my October numbers it would show zero depreciation in Cost Center A Year To Date (and negative 8,980.30 in month of October)
If i follow the steps you propose, what would be the result? Thanks so much! -
Intercompany elimination at legal entity and profit centre level
All,
I have a question regarding intercompany elimination. As far as I understand, BPC can only hold one Interco dimension per application. If you want to perform an intercompany elimination for two dimensions which do not roll up into each other, two separate applications are needed. Please see example below to clarify:
Data is reported the following way:
Legal entity Profit Centre Account Interco Value
The problem is that the profit centre hierarchy does not roll up into the legal entity hierarchy mainly because there are profit centres set up as legal entities. Consequently, the legal entity hierarchy and the profit centre hierarchy are two independent hierarchies.
The business requirement is to have an intercompany elimination at profit centre and legal entity level at the same time (hence requiring two Intercos at the same time). This is needed as some of the profit centres are set up as legal entities.
Can someone advise me as to how to resolve this issue? Did anyone come across a similar problem?
Please let me know if you require any further clarifications.
MarcHi
Try to use 2 application for the interco elimination
for the 1st appls ur entity will be the entity dimension and use intco as intco dimension
for the 2nd one use the profit center as entity and build a new intco
As per interco logic this is using the Intco property in the Entity dimension and Entity property in intco dimension
it is very impossible to do this in one application
Thanks
CSD -
Is BPCNW 7.5 supports Time dependent Hierarchies ?
Hi,
We are maintaing 4 hierarchies for Profit center dimension. Depends on business structure nodes(profitcenters) will move from one parent to another.
For e.g:
In 2009 my PC hierarchy looked like
RBU1
-- PC1
-- PC2
RBU2
-- PC3
-- PC4
And in 2010, PC2 moved under RBU2, and the hierarchy looked like
RBU1
-- PC1
RBU2
-- PC2
-- PC3
-- PC4
So, now the requirement is if they want to look at 2009 numbers they would want to see the hierarchy roll up of 2009 and if they look at 2010 numbers, they would like to look at the new hierarchy.
Is this requirement possible in BPC NW7.5 with out maintaining new hier for 2010.
thanks in advance...
regards,
RajuHi,
As such time dependent hierarchies are not supported by SAP BPC 7.5.
This will be deffinately covered in SAP BPC 8.0 release. BPC 8.0 is the major release of SAP BPC NW version.
Regads,
Mahesh -
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. -
Hi Gurus.
1) What is the linkage between Profit centre and AUC with respect to WBS element?
Example: If I activated AUC then the respective WBS element is not taking Profit center automatically/Manually??(In the case of Invoice doc. creation the error is like --"Balancing field "Segment" in line item 001 is not filled"?
2) What is the document splitting? How can we know the functionality of splitting ?can any one tell me about the topic or send me some supporting docs to sanjaykumar.ps at gmail dot com
Thanks in advance,
Sanju...Dear
you need to use automatci assignments. Use ACSET and in that for Ord Dper and APC give * for all transaction types and select dep run. Here you need to give COst center.
In Auc youi might have suppressed the Cost center in time dependent data. You make it optional or mandatory. The link is in Asset Master in time dependent data you have teh project assignment.
On Doucment splitting
You can use the document splitting procedure to split up line items for selected dimensions (such as receivable lines by profit center) or to effect a zero balance setting in the document for selected dimensions (such as segment). This generates additional clearing lines in the document. Using the document splitting procedure is the prerequisite for as well as an essential tool for drawing up complete financial statements for the selected dimensions at any time.
You can choose between displaying the document with the generated clearing lines either in its original form in the entry view or from the perspective of a ledger in the general ledger view.
For document splitting to be possible, the individual document items and the documents must be classified. Each classification corresponds to a rule in which it is specified how document splitting is to occur and for which line items.
SAP delivers a set of standard rules that should usually prove sufficient. If not, you can define your own set of rules and adapt these according to your needs.
Example
Example 1: Invoice
Suppose a vendor invoice containing the following items is entered:
Posting Key Account Segment Amount
31 Payables -100
40 Expense 0001 40
40 Expense 0002 60
Document splitting then creates the following document in the General Ledger view:
Posting Key Account Segment Amount
31 Payables 0001 -40
31 Payables 0002 -60
40 Expense 0001 40
40 Expense 0002 60
Example 2: Payment
The payment for the above vendor invoice then contains the following items when entered:
Posting Key Account Segment Amount
50 Bank -95
25 Payables 100
50 Cash Discount Received -5
Document splitting then creates the following document in the General Ledger view:
Posting Key Account Segment Amount
50 Bank 0001 -38
50 Bank 0002 -57
25 Payables 0001 40
25 Payables 0002 60
50 Cash Discount Received 0001 -2
50 Cash Discount Received 0002 -3
And don't request the users with personal IDs as moderator will lock the thread and even though you give me points he will withdraw at a later date.
You need to search the forum first.
Reward if useful
sarma -
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 -
PCA-Partial payment from customer profit center split
Dear all,
Problems encountered.
1) Partial payment from customer whereby the profit center not split accordance to the reference invoice.
Eg. Received incoming invoice.
Dr. Customer RM1000
Cr. Revenue (PC:1000) RM300
Cr. Revenue (PC:2000) RM700
After running Tcode: F.5D (Display the doc. goto Environment--->Balance Sheet Adjustmt)
Dr. Customer (PC:1000) RM300
Dr. Customer (PC:2000) RM700
Cr. Revenue (PC:1000) RM300
Cr. Revenue (PC:2000) RM700
Received incoming partial payment RM100 with reference to the above document, the result as follows after running Tcode F.5D
(Display the doc. goto Environment--->Balance Sheet Adjustmt)
Dr. Bank (PC:Dummy) RM100
Cr. Customer (PC:Dummy) RM100 (As per SAP Help EC-PCA Example: Direct Revenue Posting in FI, Partial payments are distributed according to the original receivable i.e. RM30 to PC1000 & RM70 to PC2000)
Additional configuration made:
Bank Account is in 3KEH table with default PC:1460
2) Run Tcode F.5D for the second time in the same month, the result of the payment as follows:
(Display the doc. goto Environment--->Balance Sheet Adjustmt)
Dr. Bank (PC:1460) RM100
Cr. Customer (PC:1460) RM100
Questions:
1) Why partial payments are not distributed according to the original receivables?
2) Why the Profit center change to the default PC1460 for the second run? Why such inconsistency happened?
Anyone can answer the above quesstions?
Thanks & regards,
-Alice-Hi Alice,
Check if you are actually using the tab 'Partial payment' while posting payment to the customer. If you are doing so and activating some invoice, then your customer payment credit line should have 'ivoice reference' field activated. Pl. check this. If this is activated, SAP will get the profit center from original invoice at the time of F.5D. But if you are just posting payment to customer account unapplied (without selecting any particular invoice), SAP can not get profit center from invoice and it will get profit center from the Bank account which is happening in your case.
Hope this helps. We also have similar situation in case of unapplied payments which go to Dummy profit center. I am considering following options:
1) To enter correct profit center in bank account where ever possible
or
2) To post a correction entry in PCA at month end to transfer receivables from dummy to other profit centers on some basis and reverse this entry next month.
How are you handling this dummy profit center situation?
Thanks,
Pinky -
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 -
Profit center missing from report FAGLL03
We have posted several intercompany documents and when we view the documents using t code FAGLL03, for the automatically generated line items (intercompany accounts) the profit center is blank.
For example we posted
In company A
Dr. expense 1000
Cr. company B -1000
In company B
Dr. company A 1000
Cr. Vendor 1000
For the accounts that are intercompany accounts for company A & B, in FAGLL03, the amounts are showing up as
Dr. 2000 Profit center missing
Cr. 1000 Profit center ABCD
(net is correct as its 1000), but how is SAP coming up with 2000 & 1000 just for FAGLL03? For FBL3n it appears correctly. I know that SAP is splitting by profit center but why is the profit center blank for 2000?
please help& thanks
Briandocument splitting issue
Maybe you are looking for
-
:-)Vote for Web Dynpro : take 2 points
Hello all, I saw two excellent Web dynpro proposals for the Tech ED, which would be useful for all web dynpro/ESS/Portal community. They are titled as "Custom development of web dynpro ESS applications using Floor Plan Manager (Las Vegas) Dynamic gen
-
Restore email after disabled account is enabled?
iMac...How can I restore email on Mac Mail from the ISP after Mac Mail was disabled and then enabled.
-
**** sites keep popping up and then I am directed to purchase Mac Protector in order to clean up my computer. Is this a scam? HELP please!
-
Keine DVD - adbe acrobat 10 Standard
Nach Neuinstallation eines Rechners fehlt mir die DVD zum Installieren von adobe acrobat 10 Standard. Den key dazu habe ich. Gibt es eine Möglichkeit, an eine dvd ranzukommen oder das Programm irgendwo downzuloaden ?
-
Hello. I have captured a clip from my DV with FCP. The file plays with QT and has sound. FCP shows the audio tracks, but will not play them. Video plays well. How do you get the sound to play with your video in FCP? All settings are default. Thank yo