Both parents hierarchy
Hi gurus,If an entity with 2 parents, how to build the hierarchy in the metadata of HFM?
Example:
C children with parents A and B
A parent holding 60%
Parent b holding 40% how to draw the hierarchy for this requirement?
concerning
Dev
HI Dev
You must be very careful while consolidating this type of entity.
One type of consolidation entity C is suitable for a child of one entity and another child of another entity.
Now, in your typical case since 60% if taking this entity would get 100% consolidated with an entity.
so the title of the property management this must be attributed with 100% Pcon and POwn.
and under the entity B as zero.
In the other type of consolidation if an entity wishes to receive 60% of profit then Pown should be 60% but PCon will be 100% and
b entity POwn would be 40% with Pcon 0 (associated entity).
In the accounting world, this type of consolidation is called Cross Holding.
Hope that this answer would be useful.
Tags: Business Intelligence
Similar Questions
-
Filter the VO with both parents your
Hello
I have a VO with two foreign keys from the two objects from view. I want to have a form with a table and a selectOneChoise as master user can filter the detail section by selecting the main table and selectOneChoise.
How can I do this?
Thank you
Option one another (and probably better), is to use the built-in function:
"Another key feature which is exclusive to the hierarchy of data model is that a view detail object instance can have multiple instances of object of quick mask mode. For example, a
PaymentOptions
instance of the view object can be a detail of both aCustomers
and aOrders
instance of the view object. Each time that the current row is in theCustomers
orOrders
object instance view changes, all default lines of retailPaymentOptions
instance of the view object is updated to include the payment for the current customer information line and the current order. See section 39.1.6, "setting upward a model data with several masters ' for more information on creating an instance of the view object details with several masters. » -
grouping with the parent hierarchy
Hi all
I have data like this
existing layout:
trade oil
----------------
cust_A 100
cust_A 50
cust_B 20
presentation expected:
trade oil
-----------------
cust_A 150
cust_B 20
in the xml hierarchy, the invoice_type (trade oil) is one level below customer.
How can I solve this problem.
any advice will be highly appreciated.
rgrds,
TSEI sent you the modified model. Take a peek inside.
Thank you
Bipuser -
Hello
I need to get back to Manager user for each hier_id id in the hier_users table. If the hier_id not record in the hier_users table, you must submit parent hier_id Manager user_id. my output should be like this. I need to do this by using SQL.
user_id hier_id
1 101
2 100
3 102
4 100 -this hierarchy is not the Manager save both need to return its parent hierarchy 2 Manager user_id
CREATE TABLE hier (ch_id NUMBER(18), pa_id NUMBER(18)) / CREATE TABLE hier_users (user_id NUMBER(18) , ch_id NUMBER(18), role VARCHAR2(20)) / INSERT INTO hier VALUES (1 , NULL) / INSERT INTO hier VALUES (2 , 1) / INSERT INTO hier VALUES (3 , 1) / INSERT INTO hier VALUES (4 , 2) / INSERT INTO hier_users VALUES (100 , 2,'manager') / INSERT INTO hier_users VALUES (101 , 1, 'manager') / INSERT INTO hier_users VALUES (102 , 3, 'manager') / INSERT INTO hier_users VALUES (103 , 4, 'member') /
Thanks in advance
What of it?
Is to find the first manager in the hierarchy
SELECT a.ch_id , ( SELECT c.user_id FROM hier_users c, hier b WHERE c.ch_id = b.ch_id AND role = 'manager' AND ROWNUM <= 1 CONNECT BY PRIOR b.pa_id = b.ch_id START WITH b.ch_id = a.ch_id ) user_id FROM hier_users a;
Output will be like:
USER_ID CH_ID
---------- ----------
2 101
1 101
3 102
4 101
Kind regards.
Al
-
Difference between Parent and Parent Curr Adjs
Hi gurus,
Please explain the difference between the Parent Adjs and Parent Curr Adjs.
Thanks in advanceConsider two members in the dimension entity 'A' and 'B' now these two members have a child as 'C '. Where 'C' is the shared member. Now if you switch a log to
of the 'C' then this log entry has an effect on both parents 'A' and 'B '. While if you place an entry in the of the 'C' then you can also select the parent you want to get affected by the same. Hope this is useful
Varun -
How to write a group with 2 parents in xml file?
Hi all
In my xml file, I use the following queries.
Q1:
Select q xxx;
Q2:
Select w to yyy;
Q3:
Select: q-: double w;
Q3 is to get values of Q1 and Q2 and calculate some values.
While writing a group is possible to write a group such as both parents?
If so, what is the syntax for that?have you tried that?
-
Another possibility, linking vi 2 separate appellants
The goal: start a sub - vi one of both parents Vi
Problem: Determination of the State of execution of the Sub VI. If the Subvi is not ongoing execution and then run from whatever vi is started first. The Sub vi is a consumer to producer loops that run in Vi of the parent. The parent vi can be run, or they can be run at the same time. The Exec. State does not differentiate between the running and reserved to be executed. This means that if the Sub VI on the block diagram of one of two parents VI then there isn't a way to know if she should be performed.
An example of the Vi is included below. Vi Coordinator is the Subvi. I need a way to run the Subvi of whatever this, or who is called first.
Hey eximo.
Your description and VI, you provided I think I have a knowledge base of what you're trying to do. That said, I would like to know if I'm heading down the wrong road. Basically you have 2 main VI each call to a Subvi, but you only want the main VI which runs the first to access and execute the Subvi. I think that the route that you may need to take would be to place the Subvi in a case structure that verifies the value of a global variable that is shared by the two main VI. The 2 hand VI will change then the value of the global variable if it ends and calls the Subvi. However, the downside of this is that you may encounter race conditions. The other way to do would be to reverse your program hierarchy where now monitor you the status of the Exec of the hand two VI and say the Subvi to run data of the hand VI will idle first. In this way, you can be sure that you are only the Subvi execution once and eliminate race conditions. I hope this helps!-Ryan S.
-
Oracle: Connect loop in the user data
I understand when a loop can occur in Oracle. In principle that it is said if a recording is both parent to another node and at the same time he was a child to him, then it may go into a loop.
But I can't get why my this particular query is running in a loop.
SELECT Empno, Ename, Job FROM Emp START WITH Empno = 7839 CONNECT BY PRIOR Job='PRESIDENT'
Can someone please explain to me how these data can result in a loop. I did a CONNECT_BY_ISCYCLE check and found that the closure of the case is KING (Chairman). But I still don't understand how can be possible, that the KING is the President and I do not see anything in which it becomes child and parent to any record in the table.
Please explain to me, why is it a mistake and where is the loop?
Thanks in advance.
Maybe if I pull on the hierarchy of your query, you will see what he is doing...
PRESIDENT OF KING 7839<-- start="">-->
PRESIDENT OF KING 7839<-- prior="" job='PRESIDENT'>-->
PRESIDENT OF KING 7839<-- prior="" job='PRESIDENT'>-->
.. etc.
.. etc.
ANALYST SCOTT 7788<-- prior="" job='PRESIDENT'>-->
7902 FORD ANALYST<-- prior="" job='PRESIDENT'>-->
7369 SMITH CLERK<-- prior="" job='PRESIDENT'>-->
7934 MILLER CLERK<-- prior="" job='PRESIDENT'>-->
7900 JAMES CLERK<-- prior="" job='PRESIDENT'>-->
CLERK OF 7876 ADAMS<-- prior="" job='PRESIDENT'>-->
7566 JONES MANAGER<-- prior="" job='PRESIDENT'>-->
MANAGER CLARK 7782<-- prior="" job='PRESIDENT'>-->
BLAKE MANAGER 7698<-- prior="" job='PRESIDENT'>-->
7499 ALLEN SALESMAN<-- prior="" job='PRESIDENT'>-->
7521 WARD SALESMAN<-- prior="" job='PRESIDENT'>-->
7654 MARTIN SALESMAN<-- prior="" job='PRESIDENT'>-->
7844 TURNER SELLER<-- prior="" job='PRESIDENT'>-->
ANALYST SCOTT 7788<-- prior="" job='PRESIDENT'>-->
7902 FORD ANALYST<-- prior="" job='PRESIDENT'>-->
7369 SMITH CLERK<-- prior="" job='PRESIDENT'>-->
7934 MILLER CLERK<-- prior="" job='PRESIDENT'>-->
7900 JAMES CLERK<-- prior="" job='PRESIDENT'>-->
CLERK OF 7876 ADAMS<-- prior="" job='PRESIDENT'>-->
7566 JONES MANAGER<-- prior="" job='PRESIDENT'>-->
MANAGER CLARK 7782<-- prior="" job='PRESIDENT'>-->
BLAKE MANAGER 7698<-- prior="" job='PRESIDENT'>-->
7499 ALLEN SALESMAN<-- prior="" job='PRESIDENT'>-->
7521 WARD SALESMAN<-- prior="" job='PRESIDENT'>-->
7654 MARTIN SALESMAN<-- prior="" job='PRESIDENT'>-->
7844 TURNER SELLER<-- prior="" job='PRESIDENT'>-->
Thus, in the first level of the hierarchy is your record START you WITH.
When all folders are examined, the test of the PREREQUISITE WORK examines the top level folder, determines that he was the PRESIDENT and therefore each record matches this condition.
Then, each of these folders are evaluated to determine the child records. At this second level, only KING's post of PRESIDENT, he is the one who would have no record of the child and this WORK PRECONDITION = PRESIDENT will be valid for all records under the 2 KING level.
This model keeps occurring under each folder KING indefinitely.
-
Try harder. But don't feel put out. The Mac never falls down. I have used them for decades and prefer the Mac. But I fell it twice before last weekend. Try to load Imaging Neuroscience with Matlab Run Time software. At the Apple machine. Nice guy, Henry. Could not diagnose the problem. Did a clean install. Migrated to OS X10.10. Do not like. I always have problems with the machine. But I love the machine. I hate using my machine BACK. Next to neuroscience, software that I use is an open software and UNIX oriented that meets the very good command line. A large part of the software is not ready pour.10 big but worked sur.9. Well, that is until the breaks down. Of the accident, well is the lesson for me, if you crash, debugging and do not go on to the next task until you have solved. Work with Apple with the report of accident in front of you.
You know, in the part of Oscar Wilde, the Importance of being consistent, he tells Lady Bracknell that he lost both his parents. "For losing a parent can be regarded as a misfortune." But lost both parents statement of negligence. "Yes, two accidents. Shame on me.
Well, we have all learned, don't we?
Great to have this forum, however. Yay! Snoop by clicking his heels in glee.
Instead of a completely clean reinstall, consider trying a drink first. It will at least save your bookmarks and passwords that you may be saved. This article has more information: Refresh Firefox – reset settings and Add-ons.
If you really want to divert your existing settings, you can use the Profile Manager to start a new settings file. This article has the info on it: use the Profile Manager to create and delete profiles Firefox. I suggest NOT to delete your old profile immediately in case you realize is there irreplaceable data.
-
How can I disable private browsing for the high school students on the school laptops?
Hello, I work for a school district and one of the schools in the district is a digital Academy, which means that students work completely with laptops. The grade level of the students ranged from grade 6 to grade 12. We must be able to install pulgins to block explicit content and then disable private browsing ability to subvert the. They are working on laptop computer provided by the school with a derivative of linux ubuntu running on them. the version of firefox is 5. I tried the solution of http://kb.mozillazine.org/User:Dickvl / Private_Browsing_disable
and it works with firefox 4 but not 5. Help, please! Any child is monitored you can not watch all the time, and both parents that teachers need to know what the kids are up to.-Thank you
You have double-checked that the extension has been updated maybe because of you as it looks like the same date that you posted pbdisable - 1.4 - fx.xpi (updated July 2, 2011)
-
Hello
I bought a CP1025nw for my parents for Christmas, and I (as expected) end up doing the installation.
I got the printer installed smoothly, using the same wifi. Beautiful facility, very smooth, 20 minutes and done everything including remove all tape and packaging. CUDOS to the team who did little.
Register - never see point to this but what the heck. Create an account? Why? Pass this small.
Hmm... ePrint - this is the last step on the installation, the auto has launched and everything, which is nice.
Both parents have of tablets and smartphones, so I figure I'll put in place. (They might find handy?)
It opens a web page, I'll take the series, download the installer which upgrades the firmware and then I activate the eprinting print wherever you stuff.
Hmm... says something about an email address to print for. I was wondering how it worked. End, seems a bit of a hack, but I guess it's ok.
Printer prints a page (losing my paper and toner - thank you) saying to go to a Web page and then I create an account. (Well).
Enter all the information, choose a password, and then it tells me that I must enter the snapfish account password associated with the e-mail address of my mom.
?? My mother assures me that she has never heard of snapfish and has zero interest in.
Fine. CREATE a SNAPFISH ACCOUNT - (at this stage mumbling under my breath obsenities and swear that my next product will be an Epson)
OK, now go back to the HP tab and enter the new password and then snapfish...
NOT FOUND
* beep! *
Now whenever I go on www.hpconnected.com it immediately redirects to www.hpconnected.com/nz/en/, and I get
NOT BEEN FOUND.
Wonderful.
I guess that your testers forgotten that some people live in New Zealand. Just a bug, probably easily corrected. Guess CSS is bad or something, but after all the pain I feel remarkably anti-HP.
Probably, I would have been happier if he had not yet been an e-print option.
Let me know when you have this problem and please report to e-print guys that torture customers is not a recommended recreational activity.
Hi Chris, it seems that the account that you created has been on version American connected HP, but when you click on the redirect Go connected HP link he is grateful for the IP address of New Zealand to your PC and routing to the NZ HP site logged that is not yet online
Try to connect on behalf of HP connected to this link here https://www.hpconnected.com/us/en/
Web services information page is the one that prompted you to create the connected HP account. It will look like the image below and the important piece of information is #4 which is the unique claim code printers. If you manage to log in to the account connected HP you will see a tab "Devices" and from there you can add the printer to the account using the code. If you receive a message that the application code has expired, you can generate a new pressing the button on the printer itself ePrint.
Once more I'm sorry that it has taken so much of your time.
Best.
-
Downloaded a zipped file/folder would not, the name is too long.
I have downloaded a compressed file/folder to a trusted site that I always. I unzipped the file (Music mp3) successfully and added to my itunes. When I tried to drag the file of music on my ipod, itunes shows his location could not be found. I went and checked on the folder I unzipped and all these other files with weird characters appears. It took 145 GB of space in my external hardrive (thank goodess). Now, I can't rename or delete the file or the folder itself. I tried a few removal tools but it did not work or when I try to download, my anti-virus software reports me. I need a way to get rid of the file. The budget is tight, so it would help if it's freeware. OR better yet a way to removed without having to download any software. I tried to delete it in safe mod and BACK. Without success. Tried Unlocker and D something software too.
Have you tried Unlocker which would have been my first recommendation. I don't know other programs (especially turned to the long name) free file deletion. If Unlocker doesn't work, or none will remove utilitly in Vista (because Unlocker is better than Vista).
The commercial product ($19 I think) says that he specifically deletes files whose names are too long. http://www.abtollc.com/Folder-Delete.aspx. I suspect that this will do the trick, but of course I can't be sure so try there is a risk that it will not solve the problem in spite of spending money on it.
Your problem with the file may be a permissions problem. Make sure that you have the permissions of all rights and take possession (and maybe both parent folders). Don't forget to check the Advnaced properties for special permissions that restrict rights or inherit permissions from parent folders - you may need to remove if you already have all the rights on the main screen. Here are the procedures:
To view your permissions, right-click on the file/folder, click Properties, and check the Security tab. Check the permissions you have by clicking on your user name (or group of users). Here are the types of permissions, you may have: http://windows.microsoft.com/en-US/windows-vista/What-are-permissions. You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).) Here's how to change the permissions of folder under Vista: http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/. To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article: http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.
To resolve this problem with folders, appropriating the files or the drive (as an administrator) and give you all the rights. Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab. Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK. Back and now there is a new owner for files and folders/player who can change the required permissions. You can change now switched to read-only (even if the main folder indicates that they are always read-only - you can access yourself as the owner). You can keep them in read-only to other users, customers and administrators even (although they can support themselves and access, if they wish, and it is really not that you can do to stop it except protect the file with a password by using a 3rd party product.) Here is more information on the ownership of a file or a folder: http://www.vistax64.com/tutorials/67717-take-ownership-file.html. To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.
I have no other suggestions at this point. What is the EXACT and the full path of this folder? Depending on where it is, we are able to create a new user profile (treat your as if it is corrupted) and traansfer all data EXCEPT the folder in the new profile. Then delete the old provile if he leaves despite this file - it might or it might not (I'm not sure).
To try this http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profileuse. If that is the only available Administrator Profile (you need to be an administrator to fix this), enable the Hidden Administrator Account (HAA) using http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.windows.vista.administration_accounts_passwords&p=1&tid=d20f9db4-7b2c-48be-a087-7835dc2a9055&mid=d20f9db4-7b2c-48be-a087-7835dc2a9055. If you don't remember the password, try nothing because that's probably what you (or seller) did during the installation. Once that is done, don't forget to disable the HAA to save it in case it is necessary once again and for safety reasons (since people often try to hack into systems using this account). Do NOT use the HAA as your administrator account because if you lose the only administrator on the system account or it is damaged again, then you're watered.
You can also try to enter in a command prompt: click on start / all programs / accessories / command prompt and right click on command prompt, and then click Run as administrator. There Cd type a space and then type the path of the fulll name the folder in question (if it even appears). Once inside the folder type del *. * and see what happens. It can give you the same error message, or it can remove. Once the content is deleted type cd, and then type del
(yes I know it's long) and enter. This can remove the folder. I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
Cannot bind two family security accounts
I have Setup parental controls for my family on a laptop running Windows 8.1. We also have a Windows 7 PC that I installed the safety on.
However, I am unable to link accounts created with the 8.1 parental Windows with Windows 7 users. When you set up parental control the fall down to the two children has not been shown in the accounts to map to-only accounts of both parents were shown. That's why I had to add a new user, and now I have two users for the same child who, of course, makes it a bit difficult to manage restrictions etc and also translates into several emails per child.
Doing a brief search, I came across a reference to a feature to "bind the members of the family" but I am unable to find it anywhere on the Family Safety website.
Anyone have any ideas on how to get users of Windows 7 and Windows 8.1 related between them?
Good luck but I don't think you can link family safety on two different platforms. I can't find anything to suggest that you can.
-
DRM: Reported statement syntax
Team,
Please bear with me while I try to explain to my business needs.
Currently I have a CostCenter in DRM which is irregular hierarchy consisting of 10 levels. There is a need of business to create a symmetrical export of Parent/child to generate reports that only consists of 3 levels.
That's why I want to do the following:
Create a derived custom.prop1 called "Reporting_Flag".
And another
I would then go out through the tag of the Parent hierarchy and a child (with a ' 1' for Reporting_Flag) in the SAME line with the hierarchy.
For example, a Parent could be level 2 and a child level 7, so I need to shoot those export in a format of parent/child through the hierarchy. How can I do this? Is this possible?
Please let me know if you need more details, thank you!If (Equals (Integer, varValeurProp (Core.Level), 1), zero,
ArrayItem (FlipList (ListRelatedNodesWith (Ancestors, Equals (String, PropValue (Custom.Reporting_Flag), 1) yesterday, 0), [Comma]), [Comma], 1)
)
If any will be the parent to the TopNode
Thnaks
Denzz
-
Insert pictures using the registers as a parameter
Hello
I need to insert data into the table that my procedure will be called via JAVA.
No Java so wonder if it is possible to take a JAVA object (which is the records outside PLSQL) as input and then insert it into the tables.
Here's the DDL for tables
create table gnv_sol_attributes)
so_id varchar2 (20).
se_integration_id varchar2 (20).
ParameterName varchar2 (100),
action_code varchar2 (20).
parameter_value VARCHAR2 (255)
);
create table
() gnv_sol_serviceelement
customer_ref varchar2 (20).
billing_account_code varchar2 (20).
so_id varchar2 (20).
so_type varchar2 (5).
se_integration_id varchar2 (20).
se_root_integration_id varchar2 (20).
se_parent_integration_id varchar2 (20).
offer_id varchar2 (75).
offer_id_old varchar2 (75).
pricing_id varchar2 (75).
promo_id varchar2 (20).
action_code varchar2 (20).
REASON_ID varchar2 (100),
product_code varchar2 (40),
date of product_subsc_date,
date of product_start_date,
date of product_modify_date,
date of product_end_date,
event_source varchar2 (40),
sales_force_code varchar2 (20).
line_number varchar2 (20).
product_status varchar2 (2)
);
So there in the table of gnv_sol_attributes for different simple so_id and se_integration_id parameter_name.
Here they explain as in a record we can and then insert it another folder (look like multidimensional collection).
Sample data for the table of gnv_sol_serviceelemen
CUSTOMER_REF,BILLING_ACCOUNT_CODE,SO_ID,SO_TYPE,SE_INTEGRATION_ID,SE_ROOT_INTEGRATION_ID,SE_PARENT_INTEGRATION_ID,OFFER_ID,OFFER_ID_OLD,PRICING_ID,PROMO_ID,ACTION_CODE,REASON_ID,PRODUCT_CODE,PRODUCT_SUBSC_DATE,PRODUCT_START_DATE,PRODUCT_MODIFY_DATE,PRODUCT_END_DATE,EVENT_SOURCE,SALES_FORCE_CODE,LINE_NUMBER,PRODUCT_STATUS
C_1, BA_1, SO_1, OT_1, SE_1, SE_1, SE_1, STDE_A8, STDE_A8_FEE_AE, add, STDE_A8, 7/13/2015,7/13/2015, 1.
C_1, BA_1, SO_1, OT_1, SE_2, SE_1, SE_1, STDE_A8, STDE_MA, add, STDE_MA, 7/14/2015,7/14/2015, 2,
C_1, BA_1, SO_1, OT_1, SE_3, SE_1, SE_1, STDE_A8, STDE_WIFI, add, STDE_WIFI, 7/15/2015,7/15/2015, 3,.
C_1, BA_1, SO_1, OT_1, SE_4, SE_1, SE_1, STDE_A8, STDE_BCK_M_FEE_AE, add, STDE_BCK_M, 7/16/2015,7/16/2015, 4,.
C_1, BA_1, SO_1, OT_1, SE_5, SE_1, SE_1, STDE_A8, SBRI_1_FEE_AE, add, SBRI_1, 7/17/2015,7/17/2015, 5.
C_1, BA_1, SO_1, OT_1, SE_6, SE_1, SE_1, STDE_A8, SBRI_6_FEE_AE, add, SBRI_4, 7/18/2015,7/18/2015, 6,.
C_1, BA_1, SO_1, OT_1, SE_7, SE_1, SE_1, STDE_A8, SPUN_6_FEE_AE, add, SPUN_6, 7/19/2015,7/19/2015, 7,.
C_1, BA_1, SO_1, OT_1, SE_8, SE_1, SE_7, STDE_A8, SPUN_AV_6, add, SPUN_AV_6, 7/20/2015,7/20/2015, 8.
C_1, BA_1, SO_1, OT_1, SE_9, SE_1, SE_7, STDE_A8, SPUN_AF_6, add, SPUN_AF_6, 7/21/2015,7/21/2015, 9,.
C_1, BA_1, SO_1, OT_1, SE_10, SE_1, SE_7, STDE_A8, SPUN_ARS_6, add, SPUN_ARS_6, 7/22/2015,7/22/2015, 10.
C_1, BA_1, SO_1, OT_1, SE_11, SE_1, SE_1, STDE_A8, SCOE_VOIP_CEIP_3_FEE_AE, add, SCOE_VOIP_CEIP_3, 7/23/2015,7/23/2015, 11.
sample data for gnv_sol_attributes
PARAMETER_VALUE, PARAMETER_NAME, SO_ID, ACTION_CODE, SE_INTEGRATION_ID
1, SO_1 SE_1, PCT? (Without), adding,?
2, SO_1 SE_1, the PCT FEE, add, 110.
3, SO_1 SE_1, AE PCT, add, 212.
4, SO_1 SE_1, AE + TAX PCT, add, 218.
5, SO_1 SE_1, STRONGHOLD of BOO, add, YES,
6, SO_1 SE_1, AE BOO, add, YES,
7, SO_1 SE_1, AE + TAX BOO, add, YES,
8, SO_1 SE_1, hierarchy ID, Add,
9, SO_1 SE_1, hierarchy Add subscription ID,
10, SO_1, SE_1, ID Add parent hierarchy,
11, SO_1, SE_1, date of the subscription, add-on, 31/07/2015,
12, SO_1, SE_1, filling start date, Add, 31/07/2015.
13, SO_1, SE_1, beginning of billing to update, add, 31/07/2015.
14, SO_1, SE_1, (address), add,
15, SO_1, SE_1, download Bandwidth, add, 20480.
16, SO_1, SE_1, download bandwidth, add-on, 1024,
I created this procedure and it's successfully insert one line in the table of bith.
create or replace procedure ins_svc (p_svc IN SVC_REC, p_svc_att IN SVC_ATTR_REC)
is
Start
insert into gnv_sol_serviceelement (p_svc.customer_ref, p_svc.billing_account_code, p_svc.so_id, p_svc.so_type values
p_svc.se_integration_id, p_svc.se_root_integration_id, p_svc.se_parent_integration_id
p_svc.offer_id, p_svc.offer_id_old, p_svc.pricing_id, p_svc.promo_id, p_svc.action_code
p_svc.reason_id, p_svc.product_code, p_svc.product_subsc_date, p_svc.product_start_date
p_svc.product_modify_date, p_svc.product_end_date, p_svc.event_source
p_svc.sales_force_code, p_svc.line_number, p_svc.product_status);
insert into GNV_SOL_ATTRIBUTES (p_svc_att.so_id, p_svc_att.se_integration_id, p_svc_att.parameter_name values
(p_svc_att.action_code, p_svc_att.parameter_value);
exception
while others then
dbms_output.put_line (' error code ' |') '|| SQLCODE. » '||' The error '. SQLERRM);
end;
Now that JAVA person asking me if there is a way in which I insert one line in the gnv_sol_serviceelemen table
and several lines in the gnv_sol_attributes because there is in the table of attributes different parameter value for the same so_id and SE_INTEGRATION_ID.
This is where I got stuck.
If anyone has a wayout.
DATABASE VERSION: -.
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
You can create an API like this
SQL> create or replace package gnv_sol_api 2 as 3 type gnv_sol_attributes_tbl is table of gnv_sol_attributes%rowtype index by pls_integer; 4 5 procedure gnv_sol_insert(par1 gnv_sol_serviceelement%rowtype, par2 gnv_sol_attributes_tbl); 6 end; 7 / Package created. SQL> create or replace package body gnv_sol_api 2 as 3 procedure gnv_sol_insert(par1 gnv_sol_serviceelement%rowtype, par2 gnv_sol_attributes_tbl) 4 is 5 begin 6 insert into gnv_sol_serviceelement values par1; 7 forall i in 1..par2.count 8 insert into gnv_sol_attributes values par2(i); 9 end; 10 end; 11 / Package body created.
I used the anonymous PL/SQL block as a customer to call this API. For you, it would be Java.
SQL> declare 2 var1 gnv_sol_serviceelement%rowtype; 3 var2 gnv_sol_api.gnv_sol_attributes_tbl; 4 begin 5 var1.customer_ref := 'C_1'; 6 var1.billing_account_code := 'BA_1'; 7 var1.so_id := 'SO_1'; 8 var1.so_type := 'OT_1'; 9 var1.se_integration_id := 'SE_1'; 10 var1.se_root_integration_id := 'SE_1'; 11 var1.se_parent_integration_id := 'SE_1'; 12 var1.offer_id := 'STDE_A8'; 13 var1.offer_id_old := null; 14 var1.pricing_id := 'STDE_A8_FEE_AE'; 15 var1.promo_id := null; 16 var1.action_code := 'Add'; 17 var1.reason_id := null; 18 var1.product_code := 'STDE_A8'; 19 var1.product_subsc_date := to_date('7/13/2015','mm/dd/yyyy'); 20 var1.product_start_date := to_date('7/13/2015', 'mm/dd/yyyy'); 21 var1.product_modify_date := null; 22 var1.product_end_date := null; 23 var1.event_source := null; 24 var1.sales_force_code := '1'; 25 var1.line_number := null; 26 27 var2(1).so_id := 1; 28 var2(1).se_integration_id := 'SO_1'; 29 var2(1).parameter_name := 'SE_1'; 30 var2(1).action_code := 'PCT? (Without)'; 31 var2(1).parameter_value := 'Add'; 32 33 var2(2).so_id := 2; 34 var2(2).se_integration_id := 'SO_1'; 35 var2(2).parameter_name := 'SE_1'; 36 var2(2).action_code := 'FEE PCT'; 37 var2(2).parameter_value := 'Add'; 38 39 var2(3).so_id := 3; 40 var2(3).se_integration_id := 'SO_1'; 41 var2(3).parameter_name := 'SE_1'; 42 var2(3).action_code := 'AE PCT'; 43 var2(3).parameter_value := 'Add'; 44 45 var2(4).so_id := 4; 46 var2(4).se_integration_id := 'SO_1'; 47 var2(4).parameter_name := 'SE_1'; 48 var2(4).action_code := 'AE+FEE PCT'; 49 var2(4).parameter_value := 'Add'; 50 51 gnv_sol_api.gnv_sol_insert(var1, var2); 52 end; 53 / PL/SQL procedure successfully completed.
output
SQL> select * from gnv_sol_serviceelement; CUSTOMER_REF BILLING_ACCOUNT SO_ID SO_TYPE SE_INTEGRATION_ SE_ROOT_INTEGRA SE_PARENT_INTEG OFFER_ID OFFER_ID_OLD PRICING_ID PROMO_ID ACTION_CODE REASON_ID PRODUCT_CODE PRODUCT_SUBSC_D PRODUCT_START_D PRODUCT_MODIFY_ PRODUCT_END_DAT EVENT_SOURCE SALES_FORCE_COD LINE_NUMBER PRODUCT_STATUS --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- C_1 BA_1 SO_1 OT_1 SE_1 SE_1 SE_1 STDE_A8 STDE_A8_FEE_AE Add STDE_A8 13-JUL-15 13-JUL-15 1 SQL> select * from gnv_sol_attributes; SO_ID SE_INTEGRATION_ PARAMETER_NAME ACTION_CODE PARAMETER_VALUE --------------- --------------- -------------------- --------------- -------------------- 1 SO_1 SE_1 PCT? (Without) Add 2 SO_1 SE_1 FEE PCT Add 3 SO_1 SE_1 AE PCT Add 4 SO_1 SE_1 AE+FEE PCT Add
Maybe you are looking for
-
Today I can not open e-mails or send an e-mail
I have an IMAC, OSX, El Capitan; Today, I am unable to open e-mail messages, not all, and I can't send an e-mail. I tried to delete the emails that I don't want and they pop back up like New email. What happens here?
-
Extension of RAM on Qosmio E10
Hello everyone,I just bought a new RAM module to extend my memory. I had the E10 running with two times more than 524 MB entities without problems.the new module I bought is a 1 GB SO - DIMM DDR - 333 MHZ. If it runs its own, there is no problem.But
-
Battery HP Pavilion 15-N214TX issue
Hello Today, I bought a HP Pavilion N214TX 15 notebook brand new. When I got home, I unboxed it, inserted the battery, plugged into the wall and turn it on powered for the first time. Then, I saw this message: HP battery alertThe system has detected
-
HP F4480: PRINTER F4480 WILL NOT POWER PAPER - TO NEAR EMPTY INK LEVEL
Hi, the book in my HP F4480 printer will not feed. The ink cartridges are nearly empty, if not empty. Weak cartridges prevent the printer from paper making to finish a job, or is it likely another question?
-
Numbering of the SPA9000 Plans?
Hello Can someone please explain on the spa9000 dial plan We have too many fields to fill... Explain the Call routing rule: where I put the lines and also some numbering plan? Then the numbering on the FXS 1 plan (xx). And then plan on each line numb