Writing to a non-base level member
I don't believe it's possible to write directly to non-base level so I'm looking for alternatives. We are trying to simplify the budget input process in situations where we have an occupational code with multiple levels. For example, we have a Technical Associate position which can be a level I, II, II, or IV. Rather than input FTE's for each of the four levels, we want to input the total number of Technical Associate FTE's using a single occupational code.
I believe I will have to create a "dummy" base level ID for these postions and have the dummy ID along with the original 4 level ID's roll up to a new parent ID that encompasses all 5 ID's. Has anyone done something along these lines and have adivce or suggestions on how to proceed? I wanted to hear from others before I start making any changes.
Best Regards
Hi Pablo,
I have created a sample excel for the idea. But I can't share xlsm file here. To reproduce the sample:
Create new blank excel workbook
Fill the data as described in this pic:
Open VB Editor (alt+F11) and paste this code in sheet1
'-------------------------------------------------------Code Start -------------
Dim cacheValue
Dim revertFlag As Boolean
Private Sub Worksheet_Change(ByVal target As Range)
Dim childNo As Long
Dim avgVal As Double
Dim iterator As Range
Dim lv_cache
If IsParentLevelValue(target) And revertFlag = False Then
revertFlag = True
lv_cache = cacheValue
Debug.Print "Assigning Cache : " & lv_cache
childNo = GetChildNumber(target, 8)
avgVal = target.Value / childNo
Set iterator = target
'MsgBox iterator.Value
Do While childNo > 0
Set iterator = iterator.Offset(1, 0)
'MsgBox "Target level = " & GetLevel(target) & ";Iterator = " & iterator.Row & "," & iterator.Column & " level " & GetLevel(iterator)
If GetLevel(iterator) = GetLevel(target) + 1 Then
If IsParentLevelValue(iterator) Then
cacheValue = iterator.Formula
revertFlag = False
End If
Debug.Print "Assigning Value " & avgVal & " to " & iterator.Address
iterator.Value = avgVal
revertFlag = True
childNo = childNo - 1
End If
Loop
Debug.Print "Assigning back formula " & lv_cache & " to " & target.Address
target.Formula = lv_cache
revertFlag = False
'target.Offset(1, 0).Select
End If
End Sub
Function GetLevel(target As Range)
GetLevel = Cells(target.Row, 7)
End Function
Private Sub Worksheet_SelectionChange(ByVal target As Range)
'If revertFlag Then
' revertFlag = False
'Else
cacheValue = target.Formula
Debug.Print "Selection : " & target.Address
'End If
End Sub
Function GetChildNumber(parentCell As Range, childIdentifierCol As Integer)
Dim lr_counter As Range
Dim lv_level As Long
lv_level = Cells(parentCell.Row, childIdentifierCol - 1).Value
'Debug.Print lv_level
GetChildNumber = 0
For i = parentCell.Row + 1 To 1000000
'Debug.Print Cells(i, childIdentifierCol - 1).Value
If Cells(i, childIdentifierCol - 1).Value = lv_level + 1 Then
GetChildNumber = GetChildNumber + 1
ElseIf Cells(i, childIdentifierCol).Value = "" Or Cells(i, childIdentifierCol - 1).Value = lv_level Then
Exit For
End If
Next
End Function
Function IsParentLevelValue(target As Range)
If target.Column >= 9 And target.Column <= 12 And Cells(target.Row, 8).Value = "Y" Then
IsParentLevelValue = True
Else
IsParentLevelValue = False
End If
End Function
'------------Code End----------------------------------
Then to test it, you can fill in value in Cells that are indicated as parent. (See Column H). Value can be filled into column I and J.
The solution is still rough, but you can get the idea of it
Hope this helps.
BR
Hendry
Edit:
1. This solution will only work if you check option "Calculate Parent in Hierarchies"
2. For the sample solution, make sure the formula for parent level is subtotal. i.e. column I8 should be =SUBTOTAL(9,I9:I10), and column I5 should be =SUBTOTAL(9,I6:I15)
Message was edited by: Hendry Kosasi
Similar Messages
-
Member and base level sorting after migration
Dear BPC Experts,
We are in process of migrating our environment from BPC 7.5 to BPC 10.
When we migrate reports/input schedules from BPC 7.5 to BPC 10, we have observed that the report does not show up the member and base level sorting correctly in the report.
For ex.,
I have following structure in my entity dimension.
What is displayed in report after migration in 10.
Expected results
Please help.Yes, SAP response is required. Just completed tests in BPC 7.5 - correct results:
For this dimension members order:
The expand results are:
And for changed dimension members order:
The expand results are:
Vadim -
BPC Logic Script: Copy from calculated members (non-base) to base members
Hi experts,
I want to copy some values from some calculated members to base members in the same dimension. It appears I have a hard time scoping the calculated members.
This is my C_ACCOUNT dimension:
And this is the COPYCALC.LGF script I am running:
LGX:
*XDIM_MEMBERSET C_ACCOUNT = 450
*WHEN C_ACCOUNT
*IS 450
*REC( EXPRESSION = %VALUE%, C_ACCOUNT = 50)
*ENDWHEN
LOG:
LOG BEGIN TIME:2014-02-26 17:21:12
FILE:\ROOT\WEBFOLDERS\STEP_UNIT_TEST \ADMINAPP\BUDGET_CASH\TEST.LGF
USER:KAROLISB
APPSET:STEP_UNIT_TEST
APPLICATION:BUDGET_CASH
[INFO] GET_DIM_LIST(): I_APPL_ID="BUDGET_CASH", #dimensions=16
AA_NUMBER,AUDITTRAIL,BUDGET_OBJECT,BUDGET_TYPE,CATEGORY,COFOG,CURRENCY,C_ACCOUNT,C_ACCOUNT_DT,ENTITY,FLOW,GRANTS,MEASURES,TIME,TIME_DT,VERSION
#dim_memberset=4
CATEGORY:RES,1 in total.
CURRENCY:LC,1 in total.
TIME:2012,1 in total.
C_ACCOUNT:450,1 in total.
SCRIPT RUNNING TIME IN TOTAL:1.00 s.
LOG END TIME:2014-02-26 17:21:12
My model structure:
So as you can see I am trying to copy from account 450 (which is non base) to account 50 ( which is base member). Also you can see that in the previous example no record was generated.
Whereas, if I replace the account 450 with 4500 I get record generated in order:
LGX:
*XDIM_MEMBERSET C_ACCOUNT = 4500
*WHEN C_ACCOUNT
*IS 4500
*REC( EXPRESSION = %VALUE%, C_ACCOUNT = 50)
*ENDWHEN
LOG:
LOG BEGIN TIME:2014-02-26 18:26:26
FILE:\ROOT\WEBFOLDERS\STEP_UNIT_TEST \ADMINAPP\BUDGET_CASH\TEST.LGF
USER:KAROLISB
APPSET:STEP_UNIT_TEST
APPLICATION:BUDGET_CASH
[INFO] GET_DIM_LIST(): I_APPL_ID="BUDGET_CASH", #dimensions=16
AA_NUMBER,AUDITTRAIL,BUDGET_OBJECT,BUDGET_TYPE,CATEGORY,COFOG,CURRENCY,C_ACCOUNT,C_ACCOUNT_DT,ENTITY,FLOW,GRANTS,MEASURES,TIME,TIME_DT,VERSION
#dim_memberset=4
CATEGORY:RES,1 in total.
CURRENCY:LC,1 in total.
TIME:2012,1 in total.
C_ACCOUNT:4500,1 in total.
REC :%VALUE%
CALCULATION BEGIN:
QUERY PROCESSING DATA
QUERY TIME : 0.00 ms. 1 RECORDS QUERIED OUT.
QUERY REFERENCE DATA
CALCULATION TIME IN TOTAL :0.00 ms.
1 RECORDS ARE GENERATED.
CALCULATION END.
ENDWHEN ACCUMULATION: 1 RECORDS ARE GENERATED.
DATA TO WRITE BACK:
AA_NUMBER AUDITTRAIL BUDGET_OBJECT BUDGET_TYPE CATEGORY COFOG CURRENCY C_ACCOUNT C_ACCOUNT_DT ENTITY FLOW GRANTS TIME TIME_DT VERSION SIGNEDDATA
AA_NONE LIM NONE 10 RES FA_NONE LC 50 CAD_NONE A00 F99_1 NONE 2012 TD_NONE CURRENT 222.00
1 RECORDS HAVE BEEN WRITTEN BACK.
WRITING TIME :1.00 ms
Why can I not copy value from 450 ? How do I solve this problem ?
PS: currently I am testing this as a DM package run script but in the future I would like to make it a Default.lgf functionality.
I am working on:
BPC 10 SP5 for NW, calculation engine ABAP, BW 7.4Sorry to keep you in darkness. My code has developed since I have started this thread:
*SELECT(%ADMISSIBLE%, "[ID]", C_ACCOUNT, " [THIERARCHY]<>'' AND [ACCTYPE]<>INC ") // DEFINE THE SET OF REAL(ACTUALY EXISTING), NON-REVENUE AND NOT ANCIENT CASH ACCOUNTS HERE.
*SELECT(%INADMISSIBLE%, "[ID]", C_ACCOUNT, " [ID] <> %ADMISSIBLE% ")
*SELECT(%L1%, [ID], C_ACCOUNT, "[ID] = %C_ACCOUNT_SET%") // DEFINE BASE LEVEL ACCOUNTS
*SELECT(%L2%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L1% ") // DEFINE FIRST(COUNTING FROM BASE) LEVEL PARENTS
*SELECT(%L3%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L2% ") // DEFINE SECOND(COUNTING FROM BASE) LEVEL PARENTS
*SELECT(%L4%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L3% ")
*SELECT(%L5%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L4% ")
*SELECT(%L6%, "[THIERARCHY]",C_ACCOUNT, "[ID] = %L5% ")
*SELECT(%LALL%, "[ID]", C_ACCOUNT, "[ID] = %L1%,%L2%,%L3%,%L4%,%L5%,%L6%") //UNION OF ALL LEVELS
*XDIM_MEMBERSET AUDITTRAIL = INPUT
*XDIM_MEMBERSET VERSION = CURRENT
*XDIM_MEMBERSET AA_NUMBER = AA_NONE
*XDIM_MEMBERSET TIME_DT = TD_NONE
*XDIM_MEMBERSET C_ACCOUNT_DT = CAD_NONE
*XDIM_MEMBERSET C_ACCOUNT = %INADMISSIBLE% //SCOPE LEAVES ALL POTENTIAL DESTINATIONS FOR MEMBERS IN %PARS%
*FOR %A% = %PARS% //LOOP OVER ALL ADMISSIBLE PARENTS
*WHEN C_ACCOUNT
*IS L_C_%A%
*REC( EXPRESSION = [C_ACCOUNT].[%A%], C_ACCOUNT = L_C_%A%) //SUM UP THE VALUES OF LEAVES AND WRITE THE SUM TO DESTINATION ACCOUNT
*ENDWHEN
*NEXT
screen shot of part of member table for C_ACCOUNT:
continuation in next reply (I have problems with my text editor) -
Optimization of Drill Down time to Base level members
Hi All,
I have built a Balance Sheet Lead Sheet in which I need to show all the Entities in rows which have values for a particular Balance Sheet Account.What I am doing is providing the Entities structure at Consolidated level and then allowing users to Drill Down to base level entities but the problem is that while drilling down to last level of entity member it takes whole lot of time.I can understand that the Application will take time in returning the response on fly after suppressing the zero rows but is there any way of applying some optimization techniques to this either at FR level or HFM level.
Thanks in advance.
Regards
AGI think you double-posted. I just replied to the other question: Re: Defining Drilling Level Restrictions
Cheers,
Mehmet -
Tabular form with non base table field
I want to develop a tabular form with
1. A non-base table edit field to accept a value
2. Insert/update another table based on the input value
3. Also, computed field on each row based on other fields on the records (like post-query trigger in oracle forms at block level - for each row)
Thanks,
RachnaThanks for your reply.
Varad, I like the link you sent me. It has a lot of good information.
I created a process (under page processing) called "Update/Insert Process" that dosn't seem to be working.
Question, I created a manual tabular form with SQL Query and created a process (under page processing) called "Update/Insert Process", then I check for each record in the tabular form. If the old value <> new value then I update/insert in the new table.
Any step by step will be highly apprciated - to create process/validation etc.
Thanks,
Rachna -
Next to Only Export Base-level Transaction Data from BPC 7.5 NW
Hey Experts,
I've finally got a Export process configured out of Data Manager that is just about right. However, when I run it, we're getting both base-level trasnaction data and records at the parent level for 2-3 dimensions which we need to specify as "<ALL>".
Is there any way to filter or restrict the output for just the base-level members?
Thanks in advance,
GarrettHi Gersh,
I'm sorry, I should have been more specific. To clarify, the trouble I'm having is when Running a Data Manager package from BPC Excel, I can't select just the base level members from clicking the Member Selector and doing Refresh/Use Filter.
The system seems like it accepts this selection, but does not apply it when running the package.
Does that make sense? -
Hyperion Reports 7.2.5 -generating base level only of selected Organisation
Hi,
Edit - reposted in correction forum, please ignore
Hopefully this is the right place to ask about Hyperion reports - 7.2.5
I'm trying to design a report and need a nudge in the right direction...
The user should select their division and the reports should then display only the base level children of the selected division.
I've tried selecting Functions -
children of current pov for organisation - which gives the next level of the selected org
descendants of current pov - gives all levels below the selected org. (therefore duplicating parent/child levels)
Bottom of Hierarchy - gives all the base level of the whole organisation (rather than just the one selected)
Lists - level 0, organisation - as above, gives level 0 of the entire org
Someone tell me its possible to just get the level 0 of the current pov organisation...it must be something obvious I'm missing!
thanks
Amit
Edited by: user10084264 on 23-Sep-2009 04:05Hi,
I am working on the same issue here. I tired to use
(level o of Account) Union (descenants of Corp Cost), but the result are still not " level o of Corp cost".
How to get " level o of Corp cost", Corp Cost is one member under "Account" dimension.
Thanks! -
Sorting by non-base table fields - Is it possible?
I have a form with a block that associated with a table.
There are several base table fields and several non-base table fields displaying information in this block.
I need to sort the data in this block by non-base table fields.
Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?This may help you.
Example
I have a customer_id in my base table, but I want the data ordered by customer_name which is from another table.
Answer
You need to create a function in the database with an associated
pragma to specify the level of purity of the function
WNDS (write no database state)
WNPS (write no package state)
PRAGMA RESTRICT_REFERENCES(fn_get_dname, WNDS, WNPS);
Function fn_get_dname (p_empno in number) return varchar2 is
v_dept_name varchar2(40);
begin
select dname into v_dept_name
from dept, emp
where dept.deptno = emp.deptno
and emp.emp_no = p_emp_no;
return v_dept_name;
end;
order by in a block based on the emp table (assuming you want a list of employees by department name)
order by fn_get_dname(empno), empno -
How to make operation Average work on base level of a hierarchy?
I used Oracle OLAP 11g Sample Schema OLAPTRAIN to make a test, and found something really confused me a lot.
Here was my steps,
I made a dimension "TIME" with a hierarchy "calendar": all years <- year <- quarter <- month.
And then building up two cubes,
Cube "AVG_TEST" using dimension "TIME" with operator Average.
Cube "SUM_TEST" using dimension "TIME" with operator Sum.
After maintaining both dimension and cubes, I tried to query views: AVG_TEST_VIEW and SUM_TEST_VIEW and noticed the cube value based on months level were same for both of cubes. It was pretty clear that operator Average didn't work at month level within cube "AVG_TEST", but using operator Sum.
Could any one tell me why operator didn't work on the base level of hierarchy, instead of Sum? As I have a requirement to computing average value for day level, but can't add hour level to the dimension because of huge data quantity and the speed of maintaining cube. Is there a way to make operator Average work for the base level of hierarchy?
Any help will be really appreciated!
SatineHey Brijesh,
Thank you for your help!
I am still confused with it. Even month is the leaf level of dimension, but the fact data is day level precision, not month, and the value at month level still should be computed with my specified operator Average, not Sum. I mean If it could be computed with Sum (actually the value at month level was sumed up data from fact table), then why couldn't with Average at the leaf level?
My test code is from "Oracle OLAP 11g Sample Schema OLAPTRAIN", and data looks like,
SQL> select * from sales_fact where to_char(day_Key,'yyyy-mm')='2005-04' and rownum=1;
QUANTITY PRICE SALES DAY_KEY PRODUCT CHANNEL CUSTOMER
1 125 125 13-APR-05 5298 21 284846
SQL> select day_key,month_id from times where rownum=1;
DAY_KEY MONTH_ID
31-JAN-05 JAN2005Cube name is AVG_TEST, the fact data is from sales_fact.sales. From below, it is pretty clear the value at month level was sumed up data even specified Average operator.
SQL> SELECT * FROM AVG_TEST_VIEW where time='APR2005';
AVG TIME
7849372.89 APR2005
SQL> select sum(sales) from sales_fact where to_char(day_Key,'yyyy-mm')='2005-04';
SUM(SALES)
7849372.89Thanks
Satine -
Error target not found base-level failed to install the packages
Im trying to install arch on my Virtualbox VM and its just returning:
error target not found base-level failed to install the packages to new root
What do I do? I have selected the right mirrors, pinging google, my own VPS's and a few other servers and they all pinged fine. Any ideas on whats up? Think my VPN's IP has been blocked and thats why I cant download anything? I have tried pacman -Ssy and it worked fine but still no.Please read the following and follow the advice included:
https://bbs.archlinux.org/viewtopic.php?id=57855
With that, be sure to clarify whether the typo was just here on the forum, or whether it was also in your original command. If it was in your original command, that would explain your results. -
Developer 2000 forms non-base columns
How do you query a table 2 against a text item based on another table 1. I want to be able to capture the text item as soon as I enter it in the text field, This text item value that I will be querying against wont be in the database yet (means form hasn't been saved yet). I want to be able to query the table 2 against the text item (for table 1) value that I had just entered and then populate some non-base table items based on table 2. All this is being done by a push button. Whats the criteria for post-querry trigger used to populate non-base items.?
Is it possible to populate non-base table items with some columns that are not foreign key of a table?
Thanks in advance...
nullIf I understand your question the text field you are entering a value in is a base table item based on table1, and after you enter it you then want to get data from table2 and populate a non base table item with that data.
Assuming that their is some relation between the value you are entering and the data you are going to retreive a validation trigger such as when_validate_item will do the job.
After you enter the value and tab out of the field the when_validate_item trigger will fire and retreive the data from table2.
A simple select statement in the trigger such as the following:
SELECT value1, value2,.....valueN
INTO :<block name>.<non base item name>
FROM table2
WHERE column = :<block name>.<item_name>
The post_query trigger is best used to populate non-base tabel items upon executing a query. Because you are not saving the value you are entering, but rather want the functionality to be perfomed "automaticlly" upon entering the value I would not suggest using post_query.
Yes it is possible to populate non-base table items with columns other than FKs.
Actually the majority of time I use non-base table items it is to display non FK data, such as full names, addresses, company names, etc.
Hope this helps. -
Can Shuttles be based non-base table ViewObjects with transient attributes
Hello,
Users have to select records from a data collection and a Shuttle looks most appropriate/nice for this purpose. We can introduce technical intersection tables in order to generate the Shuttles with JHeadstart 10g R3 if necessary, but there is no “functional” need to update any data in the database and therefore it would be practical if the ‘right’ side from a Shuttle can be based non-base table ViewObjects with transient attributes only. So, our interested is to know which records have been selected, i.e. moved to the right side from the Shuttle.
Hope that my question is clear enough.
Greetings,
MichaelMichael,
This cannot be generated out-of-the-box.
It is easiest to add the shuttle post-generation to your page, and then create a custom template to generate your custom shuttle into the page. I suggest you take a look at an example of a generated shuttle in a page, and the JHeadstart IntersectionShuttleBean class. You will see that the value property of <af:selectManyShuttle> points to the selectedKeys method in the JHeadstart Shuttle bean. In your case, you can create your own managed bean and bind the value property to your own method which will provide you access to the selected rows. The value property of the selectItem within the af:selectManyShuttle determines the property that is used to identify the selected row (which is the row key in case of Jhs-generated shuttles).
Steven Davelaar,
JHeadstart Team. -
Insert records into non base table
Hi
I would like to insert records into a table when a button is clicked. The table is a non base table. I am trying to save records displayed in a form into a history table which is not part of the form. I am using the following code stored in a program unit then called when the button is pressed. It doesn't generate any error but the records are not inserted. Can anyone please help.
hist_id := 1;
cust_name := :CUSTOMER.cust_name;
loan_date := :LOAN.loan_date;
return_date := LOAN.return_date;
FORMS_DDL('INSERT INTO LOAN_HISTORY VALUES'||hist_id||','||cust_name||','||loan_date||','||return_date);Why do you need forms_ddl built in for a DML statement to be used in form?
U can directly use insert.
hist_id := 1;
cust_name := :CUSTOMER.cust_name;
loan_date := :LOAN.loan_date;
return_date := LOAN.return_date;
INSERT INTO LOAN_HISTORY VALUES (hist_id,cust_name,loan_date,return_date);
It should work perfectly. -
Data at base level not consolidating to the parent entity
HI All
I have an issue with data which exisits at the base level but do not consolidate to its parent entity.
For example,
2000
2001
2002
2003
Here only 2002 has data, but that is not appearing at 2000. I have checked the accounts and there we have set the IsConsolidated property.
The consolidation happens for other entities like 1000 & 3000. The problem is only with 2000.
Has anyone come accross this before and what is the best way to fix this?
Thanks,
AppuIs it possible that you have not activated consolidation of the entities for the period you want to consolidate? Check out the Ownership Management screens for the entity 2000. Are all child entities set to Active? Is the proper Method set? Is the PCON = 100?
Also have you tried to select one of the child entities (e.g. 2001) and run the Force Calculate Contribution? What does this entity return at the +[Contribution]+ level? -
Calculated non-base table field in a tabular form
I am struggling with creating a non-base table calculated field in a tabular form in ApEx 3.1
Can you point me in the right direction
I thought this would be fairly easy to do, but I cant work out how to do it
Requirements
1) Tabular Form based on a table with QTY and PRICE columns
2) TOTAL is a non-base table field, based on QTY * PRICE
3) If the Qty or Price changes, the TOTAL should be re-calculated
Example
QTY PRICE TOTAL
=== ===== =====
3 5 15
10 50 500
20 3 60
Environment
ApEx 3.1, Oracle 10 and Oracle 11 databases
I recommended to upgrade to a newer version of ApEx but the request was rejected so Im stuck with 3.1Thanks, but its not the solution that I am after
I am looking for a solution that will ...
1) not require the calculated value TOTAL to be stored in the table
and 2) re-calculate the TOTAL when I modify the dependent values (QTY and PRICE) before I save the changes to the database
I am still looking for a solution if anyone can help
Maybe you are looking for
-
Ipad can't connect to TV after update 8.1.1
I have an older Ipad (3rd gen. discontinued). I used to use component cables (the 3 heads one) to connect to my older TV (no HDMI) and watch video/apps on TV with no problem. But after the recent update ios 8.1.1. A pop up will say device not suppo
-
JRC Deployment Guide for Crystal Reports 2008
I just downloaded a trial version of Crystal Reports 2008 & was testing out the integration of this component into our Java web based application. I found the "Crystal Reports XI Release 2 - Java Reporting Component Deployment Guide" PDF file, but I
-
Error - Expense without tax was found [Message 439-70]
Hi I am Entering Purchase A/P Invoice base on purchase Delivary Note. I got the above Error. I already set all items in this invoice as excisable item. Please help me on this matter Regds Kishor
-
Hi, The matnr exists in the table and it should pull something in, however, the following code is not pulling the matrn: SELECT SINGLE MATNR FROM MARC INTO LV_MATNR WHERE MATNR = XVBAP-MATNR AND WERKS = XVBAP-WERKS AND ZZLIFNR = LV_ZZLIFNR. L
-
Composition runs properly locally, but buggy remotely
Hi friends. Just want to preface that the following composition works locally whether I am launching an Edge Animate Preview, or looking at the composition through http on my local Apache installation. When I access the composition through a remote