Make a request for generic insertion in the ODI procedure

Hello
I am writing an ODI procedure to insert into a table my sql is simple:

Insert into ci_txn_header_k
Select t.txn_header_id, f.env_id
of ci_txn_header t, f1_installation f
where t.bo_status_cd = 'HANGS' and t.txn_header_id not in (select txn_header_id from ci_txn_header_k)

I want to make this generic query and use the functions of REF ODI in it.can I get the schema name and table using the Odiref functions. If yes then please guide me how

Hello

Import all tables referred to in your query in a logic model / models.

ci_txn_header_k
ci_txn_header,
f1_installation f

Suppose you import the tables into a logic model / schema called "GENERICS".

Then just reference them using <%=odiRef.getObjectName("L""CI_TXT_HEADER","GENERIC","GLOBAL","D")%>

IM using the "GLOBAL" context in my example above, replace with your context.

So, something like:

Insert in <%=odiRef.getObjectName("L","CI_TXT_HEADER_K","GENERIC","GLOBAL","D")%> k
Select t.txn_header_id, f.env_id
Of
<%=odiRef.getObjectName("L","CI_TXN_HEADER","GENERIC","GLOBAL","D")%> t,
<%=odiRef.getObjectName("L","F1_INSTALLATION","GENERIC","GLOBAL","D")%> f
where t.bo_status_cd = 'HANGS' and t.txn_header_id not in (select txn_header_id from <%=odiRef.getObjectName("L","CI_TXN_HEADER","GENERIC","GLOBAL","D")%>)

Hope this helps, check out the ref of the Substitution of the API for a guide, also worth looking at knowledge Modules and how they accumulate clauses in LKM and IKM steps - you can learn a lot by referencing existing code that is supplied with the product.

Concerning
Alastair

Tags: Business Intelligence

Similar Questions

  • Can I make a request for a serial number for a purchase of creative suite 6 that children would not use so far? I have the product code on the box that it came.

    Can I make a request for a serial number for a purchase of creative suite 6 that children would not use so far?  We were home educate at the time we bought 3 years ago and had problems with details on proving that they've been to school so it has been in the too hard basket at the time.  Would really appreciate someones help I have spent hours trying to find the answer online and can't.  At soon Suzanne.

    Locked, go to get a serial number for creative suite at this late date 6.

    Serial number is normally inside the box, in the case of disk, not outside where everyone could find and use it.  Find the serial number of your product Adobe quickly

    If you continue to have a problem, then you will need to contact the Support from Adobe directly when they are available (on weekdays).

    Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat

    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • I established a network of Windows 7 by using W7 Professional, XP Pro. If I create a homegroup, will that later make it difficult for me to add the XP Pro machines to the network?

    Hello

    I established a network of Windows 7 using W7 professional.  I have some other HPs running XP Pro.
    If I create a homegroup, will that later make it difficult for me to add the XP Pro machines to the network?
    I don't understand this aspect.

    So I think you brought me in my next question.

    I need to set up a working group to allow access to XPs, in addition to the homegroup that I use for my Win 7 machines?

    Yes, it's true.

  • Error creating a salary. ORA-01422: exact fetch returns more than the requested number of rows in the hr_maintain_proposal_swi procedure insert_salary_proposal package

    Hi all

    We try to add new proposal for a salary of some employees from form August 1, 2015 (the Date of the beginning of employee)

    There is no existing salary proposal doesn't exist for these employees.

    We get below error.


    ORA-01422: exact fetch returns more than the requested number of rows in the hr_maintain_proposal_swi procedure insert_salary_proposal package


    Help, please.

    Thank you

    Tarun

    Hi John,.

    If it helps, take a look at the following note:

    ORA-01422 exact Fetch returns more than number of lines requested in Hr_maintain_proposal_swi (Doc ID 1673527.1)

    Kind regards

    Rajen

  • How to make a request for Validation on the field of comments in BPM Worklist task details Page

    Hello
    I am newbie to SOA 11 g.

    I use SOA 11 g and Jdev 11.1.1.3 for development. I created a human with two results (APPROVE, REJECT) and task able to display the page the task details in the BPM list. I have the comments of default section that comes by 'Auto generation of ADF Taskflow' in the Task Details page. This comments section will display the comments of several users who have access to the task. I want to add validation for the field of comments as below-

    (1) to DISMISS the action, we must check whether or not the APPROVER had provided the reason for REJECTION in the comments field. If this isn't the case, we need to display a popup asking him to provide observations of REJECTION.
    (2) on the action to APPROVE, no need to check for comments, so no validation is necessary.

    Can someone give me some ideas how it is possible.

    Thank you
    Udaya Neeliahgari

    Hello
    Try the following...
    In the composite open y'r process bpel... and then to expand the human task... you will notice a task entitled just before the initiateTask run the following two copy operation in the task of AssignTaskAttributes within the scope of the human task.

    IMP Note: The variable is the variable initiateTaskInput of the human task field. Don't assign not on on the global variable

    1 assign a string value "REJECT" in the expression (assuming that you do so that the result of REJECTION) and assign it to the variable

    /TaskService:initiateTask / task: task / mission: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: results

    2 assign the string value "PROVIDE_COMMENTS" in the expression and assign it to the variable

    /TaskService:initiateTask / task: task / mission: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: userStep

    view the .bpel file source y'r and make sure that you see something like the following:




    Query = "" / taskservice:initiateTask / task: task / task: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: result "/ >"




    Query = "" / taskservice:initiateTask / task: task / task: systemAttributes / task: preActionUserSteps / task: preActionUserStep / task: userStep "/ >"

    Just deploy the app... and when you try to dismiss... it should appear the message.

    concerning
    Raja

  • 2nd signature required is not requested for: document finalised after the first signature!

    We are VERY DISAPPOINTED that it is obviously not more direct support of this product, or is phone - this not correct? If so, we don't remember this change notification.

    Speaking of which, without any alteration to a form of signature which includes three steps: 1) Prefil, 2) all the information and signed by the client and 3) countersign date by us and all of a sudden after working for months, he comes back and is supposed to be completed once step 2 is completed. There is no way later to fill the countersignature. I checked that the fields are still reported as such, but very recently, the third stage (without date or signature even filled) ends from step 2 is done. Something is broken and it is apparently not possible to get immediate assistance from Adobe on this.

    Things change suddenly in the way that documents are processed without warning advanced e-mail, then suddenly things break and there is nobody to contact directly for assistance. It turns out that if we go back to the classic shape everything works fine because you still have the box "I have need to sign. The 'new' shape (of shit) said anything about it? NO! Instead, he proposed adding a "me" and various other areas, with absolutely no explanation of what they are and how they are supposed to work!  Thank you, Adobe, make the new procedure so obvious and undocumented. NOT.  I should send you a bill for all the time spent trying to figure this on my own because of the absence of any reasonable support more. You are a paper company, but you seem unable to adequately document your own products. Taking the human support was a horrible move on your part - it could have been resolved in 5-10 minutes. In any case, it is marked and done and resolved and I hope and pray I will never work on a question like that again. You're just better not take the classic option.

  • Request for an update in the sys.registry$ view history


    Hi all

    I have successfully installed the July 2013 PSU on oracle 11g.

    Know that when I ask the sys.registry view $history it still shows the old patch time and date.

    Select ACTION_TIME, VERSION, COMMENT of the sys.registry$ history.

    3 MARCH 13 09.13.27.539465 AM 11.2.0.2

    POWER SUPPLY 11.2.0.2.9

    Can some please update me on this.

    Thanks in advance.

    You must run the psu catbundle apply that script inserts at the end entry in the history table.

    This step is in the Readme for the patch.

  • Create the request for approval to remove the user operation with IOM api-11 g Release2

    Hello

    How do I create an approval request for an API using operation user remove? Can someone guide me? Any help is greatly appreciated...


    ARO
    Aliye

    You must use the new API set to create the request. OIM 11 g R2 supports model not application so your code will be changed.

    Examples: http://docs.oracle.com/cd/E27559_01/doc.1112/e28183/oim_up.htm#BABGBEHG

  • Tab of transaction in the ODI procedure

    Hi Experts,

    Can anyone help me on what and how exactly the Transaction tab in step ODI procedure? Thank you!

    Best regards,
    VERIFIED BY VISA

    Hello

    I take you means the deposit Transaction on a step in the procedure box?

    That you can use to isolate operations within the session and commit at the end. For example, if you want to load data from various sources in a table, you can set the Transaction for each step of the procedure on the same value of transaction isolation, with the 'Commit' as 'No commit' and when all data are loaded in the table, having a validation step in your procedure to validate this specific transaction. If for any reason, a step fails, then no data within this transaction will be validated in the database.

    Its the same as using SQL Developer and have auto commit turned off. You must manually validate the database if you want to see changes to data in another session, or you can role back your changes within the session if you do not want to commit them.

    Take a look at the 'IKM Oracle incremental update' IKM - it uses 1 Transaction on these steps, both have a specified "No. Commit":

    "update existing lines"
    "Insert new lines."
    then has a specific validation step thereafter.

    I hope this helps.

    See you soon

    BOS

  • How to call WSDL in the ODI procedure

    Hi experts,

    Please help me on "how to call the web service in the ODI process."

    Thanks in advance

    Concerning
    Phani

    Hello

    Use the OdiInvokeWebService... Take a look at the options reference manual...

    This help you?

    Cezar Santos
    http://odiexperts.com

  • Problem installing Firefox 3.6.8 as error "no request for assistance" to open the file

    Used a netbook Asus Linux / Firefox version 2.0.0.0.11 for 3 years without problems. Now I can't use "Hotmail" on it, because it requires an update to the version as above.

    It appears to download but not to open it and I get the message "could not be opened because there is no such thing as the doe to request assistance associated with" I'm not sure where I should be downloading it too but chose home/user.

    I use very basic but verified the file 'open with' settings and there is no demand for a tar.bz2

    Any advice would be much appreciated

    Have you read all the 12 pages of this thread?

    http://Forum.EeeUser.com/viewtopic.php?id=41815

    I can't help myself, because I have done this process once and I wasn't happy with Firefox 3 on Asus / Xandros when I was tired. The next day, I installed Ubuntu 10.04 - EasyPeasy remix - http://www.geteasypeasy.com/

  • There is no request for 'Shared Services' in the Group of the Foundation

    Hello world!

    I am facing a problem during the installation of the EPM system.

    After the deployment of Foundation services, there is no demand for services registerd shared in the Group of the Foundation

    I looked in 'Shared Services' = > 'Groups Appication' = > 'Foundation' only -Manager of calculation and -EMP architect

    I tried to redeploy the service of the Foundation, but is not shared Services Application

    I looked in the table HSS_COMPONENT with COMPONENT_TYPE = 30 and did not find the Shared Services

    This application exists on the production server, I tried to export application Service sharing of production on the new server using LCM, but error

    EPMLCM-18000: name of the invalid application - SSP MDF.

    Everyone knows how to save Shared Services Application?



    Solve the problem by inserting manually lines HSS_COMPONENT, HSS_COMPONENT_PROPERTY_VALUES, HSS_COMPONENT_LINKS

    as on the production server

    insert into HSS_COPMONENT values (' 1111.HUB ',' Shared Services ', 30)

  • Need to make small adjustments for jpg and overwrite the existing file

    I'm on Photoshop CC 2014 and I have hundreds of jpgs that just cropped and straightened. They are already copies of the originals, then there should be nothing that prevents me from doing these adjustments and quickly overwhelming with Cmd-S right? But I get the Save as dialog box which slows down the process considerably.

    It works wonders for a previous project and I'm updating PS between the two. I would straighten, crop, Cmd - S, move on to the next 1, pattern. Very fast. Thanks for any help!

    When trimming, make sure you have ' Delete cropped Pixels "checked.

  • OIM11GR1 - request for additional attribute on the approval of the task

    Hello

    I've already set up a process in console design to assign a task to someone when a creation of the user is requested (in the assignment tab). When this person validate the task, the user is created.

    Today, the validator of request can just validate or deny the task.

    I would like to know if it was possible to provide an additional field for the validator request where he can put additional information.

    Here is an example of what I'm trying to achieve:
    A configuration of resource is requested with the creation and assignment of a badge.
    The 'referent of the badge"will receive a task where he will ask you to validate the assignment and provide the badge number.
    Commissioning is launched with the provided badge number.

    Thanks in advance

    You can have the dataset application to this effect and mark this extra attribute in 'single approver. Then, the approver can provide data while approving

    link below will help you to configure even
    http://docs.Oracle.com/CD/E14571_01/doc.1111/e14309/request.htm

  • Request for ASO - changes to the Dimension type

    I changed 6 of 19 dimensions in my application for ASO of "multiple hierarchy enabled" to "stored". The dimensions changed used to have 1 single hierarchy (stored) under them. Rebuild and reload the data, the cube displays a different number? No idea why this phenomenon occurs?
    Old and new applications both use the default aggregations.
    Thanks in advance.

    Published by: wines on 5 March 2012 15:50

    When you enable multiple hierarchies enabled, it makes the Member of dimension one label only and takes the total of the first hierarchy (First member) underneath. If you change stored, its possible you aggregate now multipe groupings that you knew were being considered as hierarchies.

Maybe you are looking for