Essbase API Custom Function 11.1.2.1

I recently decided to start playing around with the Essbase Java API to see if I could write a custom function that overwrites a subvar. I found the createSubstitutionVariable command is already in the API. I wrote a MaxL script that registers a new function by calling the API command.
/* Create a log file for the script log and error information */
spool on to $4;
/* Login to the server */
login $1 $2 on $3;
CREATE or Replace FUNCTION '@SETGLOBALSUBVAR'
AS 'com.essbase.api.datasource.IEssBaseObject.createSubstitutionVariable(String,String)'
SPEC '@SETGLOBALSUBVAR(String SubVar, String SubVarValue)'
COMMENT 'Sets the specificed subvar to the specified value';
This creates the function (viewable in EAS). However, when I run a calc script that calls the function, I get an error that it belongs in a calc block. When I place it in a calc block, I get an error message that an operator is expected after my custom function.
ex:
Fix ("Actual", "Final")
AC_12345=@SETGLOBALSUBVAR('test', 'hi');
EndFix
I also found Robb Salzmann's CDF http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html and tried using that, but received the same error message. I was wondering if someone could point me in the right direction to creating and using custom functions to update the subvar.
Thanks,
Daniel

Sorry about that.
I have the MaxL log below that shows the function being created successfully. There is nothing in the essbase log file itself regarding the creation of the function.
OK/INFO - 1051034 - Logging in user [admin@Native Directory].
OK/INFO - 1241001 - Logged in to Essbase.
MAXL> CREATE or Replace FUNCTION '@SETSUBVAR'
2> AS 'com.hyperion.essbase.cdf.setSubVar(String,String,String,String)'
3> SPEC '@SETSUBVAR(String app, String db, String subvar, String subVarValue)'
4> COMMENT 'Sets the specificed subvar to the specified value';
OK/INFO - 1056102 - Function @SETSUBVAR replaced.
MAXL> logout;
User admin is logged out
The calc that I am running is:
Fix ("ACTUAL","FORECAST")
PJ_99999= @SETSUBVAR ('','', 'TestLocalVariable', 'TEST');
ENDFIX
The error message that displays in the log file is :Error: 1200324 Error compiling formula for [PJ_99999] (line 3): operator expected after [@SETSUBVAR]
The code that I am trying to register is from your site http://codingwithhyperion.blogspot.com/2011/08/create-and-update-substitution.html Instead of activating SetMonthSubvar or SetYearSubvar, I am only trying to register the SetSubVar command in your jar file
Thanks for your help! I appreciate all your responses.
Daniel

Similar Messages

  • Time Stamp via Custom Function

    This is such a basic concept for a custom function that I am assuming someone out there has done it already. I have never created a custom function for Essbase, though I have programmed in a variety of languages and I'm assuming getting the current date/time in Java is not exactly rocket science. I have reviewed the docs for creating and registering custom functions and that also appears relatively simple, especially with the examples available.<BR><BR>What I want is a function that returns a Double in the form of a Date/Time that I can retrieve into Excel and display as a Date/Time. We want a simpler, more effective way of time stamping the running of calculations, more effective than combing through the app logs when we need to know if/when a calc ran a week or a month or two ago.<BR><BR>Does anyone have some sample code and/or insights to share on this topic? I would greatly appreciate it if you do.<BR><BR>Thanks,<BR><BR>James

    fyi - I ended up implementing a solution in Perl/Maxl that gives a timestamp to the second in a format that can be retrieved intelligently into Excel. I use the Perl time() function (Unix server) to get the GMT epoch time as a long int. Then I convert it into the floating point DATE format for Windows, with the hard-coded assumption of what time zone my server is in. Then I run a calc from MaxL that sets this value. I build the calc string in Perl and pass it into MaxL. Pretty cool. The calc uses two sub vars, one for the members to fix on and the other for the Scenario to timestamp. This way the perl/maxl is database independent.<BR><BR>Just thought someone might want to know...

  • Business Objects 4.0 (Custom functions) -- Expert advise required

    Good day All!!!
    I require a technical expert advise from this forum ASAP. I hope you have some time amidst
    your busy schedule and answer the required clarifications.
    Problem Description:
    I would like to write a custom function (e.g to convert local time zone to utc and from utc time zone to local) and import that function in the BO 4.0 universe so that universe has the ability to use this function.
    I understand BO 4.0 supports importing of the custom functions e.g data_quality_custom_functions.atl.
    Expert advise Required from you on below questions:
    Now my question is how to write a custom function and generate the required .atl files that can be imported in the universe?
    Does this require any specific tool/API's to generate these functions ?
    Can we use traditional languages like C/C++ to generate the custom functions or does it uses any script based languages?
    Is there any flexibility to accommodate complex algorithms in the custom based function?
    Are do we have to approach SAP to generate the .atl files by giving some interface document?
    It would be of great help at this stage if you could provide some insight into the mentioned areas as we are in a critical stage to finalize a design approach. If you have time to answer our queries and require additional details on why we have to go for custom functions then I will be glad to provide right level of details.
    Looking forward to your expert advise early....
    Thanks
    NAGSCAT

    Yes, it is. Please, look at chapter 8.5.2 in the Business Intelligence Platform Administrator Guide.

  • Custom functions to calculation builder

    Is it possbile to add custom functions to the calculation builder?

    Not at the moment as the BI Beans Calc Builder is not extensible. There is no mechanism for you to register your SQL Model with the OLAP API.
    However, we are in the process of creating the functional specification for the next generation Calc Builder so I would be interested in understanding the types of models/calcs you would like to see added. Please add your requirements to this thread.
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Usage of essbase api

    Hi All From long time I waiting to usage of essbase api. Now I got that time. Basically what essbase api?. where to use it?. how to use use it?. what is the importance of these API?. Give instructions like LAYMAN PLease. Is there any material step by step , How write macros by using essbase API & aslo how to run ?. thanx in advance ...thanx

    API: Application Programming Interface - The API's (VB, C++, Java) are sets of functions that allow you to create applications that interact with Essbase server. Almost everything you can do with client tools can be done with the API (emhapsis on 'Almost').I have used the VB API for Essbase to create numerous administrative utilities for things like subvar configuration, member info gathering, as well as a few user tools, including a replication interface that allows finance users to replicate (and generate and run the necessary calcs) by choosing a few parameters clicking a replicate button. This app replaced an another system that was basically a folder with hundreds of esscmd scripts and batch files which incorporated many 'challenges' due to security, user error, and a they were not dynamic (outline changes effect replication tasks).The nice thing about the API is that you are able to design an application that will include a layer of business logic or rules, that control how users interact with Essbase.Last parting of advice.. Use the APIs when appropriate, but don't invent reasons to use them. KISS: Keep it simple stupid.Jeff McAhrenDallas, Texas

  • Essbase API Sample code

    Hi,Can anyone help me to get Essbase API's sample code for Java.Thanks in advance.Mahesh

    When you install Essbase Deployment Services (formerly Essbase Enterprise Services), which is the container for the Java API, a sample directory get installed that has about 30 sample Java classes covering a wide variety of JAPI functionality.Tim TowApplied OLAP, Inc

  • How to write the custom Function Module to trigger the Alert.

    Hi all,
    I have developed a custom alert category in Tx - alrtcatdef. Now i want to trigger it from my custom function module. what should i do or what is the procedure to trigger the alert from my custom function module.
    Arul Jothi

    hi arul,
    try this program.
    RSALERTTEST.
    check out this link...
    <a href="/people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts:///people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts
    regs,
    jaga

  • How to create a custom function module with the records in SAP R/3?

    Hi All,
    How to create a custom function module with the records in SAP R/3? Using RFC Adapter I have to fetch the custom function module records.
    Regards
    Sara

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • How to bring the custom function module in WE42?

    Hi,
    I have created a custom function module to post a custom idoc.
    Process code has been created thro WE42 and WE57 is done.
    Still I am not able to see the custom function module in the list (WE42) in order to assign it to process code.
    May i know the reason for this?
    Thanks.
    Thiyagu

    What makes you think that it should be visible in WE42? There is no F4-value help for this and you haven't added it manually yet, right.
    In WE42 you can manually add entries, so that's what I would do.

  • SSRS - Pass Field Value List To Custom Function Assembly And Display Result

    I have written a SQL Server Reporting Services custom function as a C# assembly DLL and added it to my report. The purpose of the function is to search for outlier records in a collection of data. The data is represented as an array of floating point -tuplets
    (float[][]). In a medical patient database, these might be things such as blood pressure, cholesterol, hight, weight, waist measurement, etc.
    Several user input parameters are provided in the report, including numeric seed values for this particular algorithm. One multivalued parameter is a list of the numeric columns to be used as input to the algorithm because, importantly,
    the user can choose any subset of the value columns. I have a tablix that will display columns from the dataset conditionally, based on which of those columns are chosen.
    At this point, there are two issues I'm having difficulty with:
    How do I, in the course of running the report, take just the numeric columns that the user has chosen (ignoring all others in the dataset) and pass them as a float[][] to my custom function? Or is there something in the
    Microsoft.ReportingServices namespace that I should use to query an input dataset and convert it to an array in my C# code?
    How can I present the array subset returned by my custom function in a tablix in the report?
    Note: One thought that occurs to me is that outlier records tablix could be contained in a subreport, but I'm not clear on the logistics of passing dataset field results from a master report to a subreport.
    I envision a final report when run to be similar to the following:
    - Mark Z.

    Hi Mark,
    Sorry for the delay.
    From your description, you want to pass the dataset data to a custom code array, and return the subset of the array, right? In this case, you can use a custom function to add the data to array, and use the a custom function to sort the data base on your
    requirement and then use a function to get the subset of the array. Here are some sample custom code for your reference.
    Add to arryay
    Dim values As System.Collections.ArrayList=New System.Collections.ArrayList()
    Function SetText(ByVal value As Integer) As Integer
        values.Add(value)
        return value
    End Function
    Sort array
    Function Sort()
    Dim i as Integer
    Dim j as Integer
    Dim t as Integer
    Dim n as Integer=values.Count-1
    For i=n To 1 Step-1
     For j=0 To i-1
     if values(j)<values(j+1) Then
        t=values(j)
        values(j)=values(j+1)
        values(j+1)=t
     End if
     Next j
    Next i
    End Function
    Return value.
    Function Rank(ByVal value As Integer)
       return values(value)
    End Function
    Assume that you pass [Weight] field to array, you can use the expression below on the Weight column:
    =Code.SetText(Fields!Weight.Value)
    Then use the expression below to get the values.
    PatientID:=Sort() & Lookup(Code.Rank(0),Fields!Weight.Value,Fields.Patient.Value,"Dataset")
    Height:=Lookup(Code.Rank(0),Fields!Weight.Value,Fields.Height.Value,"Dataset")
    Weight:=Code.Rank(0)
    Hope this helps.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Report Template driven by custom functions

    Hello,
    I'm a newbie, and i'm trying to design a report template driven by a vw and/or stored proc to display information on a letterhead report.  Such as names that can change at any time.  I have another interface linked to the vw/sp to change that information at any time.  What i'm trying to get is the idea of how to create a template letterhead report that i don't have to go back into crystal to change whenever the administration name changes. 
    Does anybody have any ideas or examples?  I'm thinking Custom Functions are the way to go but, i just don't know how to get started with using them if that's the way to go. 
    Thanks in advance!

    Please re-post if this is still an issue

  • Unable to debug an exit in CALL CUSTOMER FUNCTION 003

    Hi Guys,
    I have an exit EXIT_SAPMV45A_003 that is called by CALL CUSTOMER FUNCTION 003. I had placed a break point at
    CALL CUSTOMER FUNCTION 003 and the debugger stops here but i am unable to debug inside this to reach into
    the code in EXIT_SAPMV45A_003 even after setting the system debugging on & Update debugging
    ON.
    Can someone help me with this?
    thanks
    Dan

    You have to include that Enhancement of that exit in the Project and Activate that project in the CMOD.
    The Enhancement for the exit EXIT_SAPMV45A_003 is V45A0003.
    Create a project in CMOD
    And inclue V45A0003 in the project.
    Activate the Project.
    Now, it will stop at break point.
    Regards,
    Naimesh Patel

  • Error in Including the Custom function in Custom schema ...

    Hi Experts ,
                   I developed a time custom Function through PE04 ,  Z_5RT and included in Custom Schema , ZM04, while executing in PT60 using the schema ZM04 an error coming . Any configuration required to include custom function in a schema .
    Thanks and regards
    Renjith MP

    You are just going to place the custom function in the 'Func' field of schema.
    Check the counry assignment, parameters & finally you have to activate the function. Check T52A0 for correct internal number.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/96/79bc54b27911d1a5400000e83ddb11/frameset.htm
    Regards
    N Navaneethan
    Edited by: Navaneethan on Dec 15, 2008 4:30 PM

  • Could not find Model while pointing to a custom Function Group

    Hello ,
    I am on EP7.0 ERP05 NW04s and trying to modify ESS Address application  to point to a custom function group rather than the standard one . When I tried to do that by changing the mapping for the ReadInfotype I got certain compilation errors ,I fixed those and then got the following error at runtime:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Couldnt find info for class com.sap.xss.hr.per.us.address.custom_model_custom.Zhrxss_Per_Read_P0006_Us_Input in model com.sap.xss.hr.per.us.address.model.HRXSS_PER_P0006_US@10c7f0a[scope=APPLICATION_SCOPE]
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.associatedModelClassInfo(DynamicRFCModelClass.java:220)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.elementIndexForFrontendName(DynamicRFCModelClass.java:1359)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:664)
         at com.sap.xss.hr.per.us.address.custom_model_custom.Zhrxss_Per_Read_P0006_Us_Input.setInfty(Zhrxss_Per_Read_P0006_Us_Input.java:162)
         at com.sap.xss.hr.per.us.address.fc.wdp.IPublicFcPerAddressUS$IReadInfotypeElement.setInfty(IPublicFcPerAddressUS.java:11824)
         at com.sap.xss.hr.per.us.address.fc.FcPerAddressUS.readRecord(FcPerAddressUS.java:271)
         at com.sap.xss.hr.per.us.address.fc.wdp.InternalFcPerAddressUS.readRecord(InternalFcPerAddressUS.java:692)
         at com.sap.xss.hr.per.us.address.fc.FcPerAddressUSInterface.readRecord(FcPerAddressUSInterface.java:150)
         at com.sap.xss.hr.per.us.address.fc.wdp.InternalFcPerAddressUSInterface.readRecord(InternalFcPerAddressUSInterface.java:230)
         at com.sap.xss.hr.per.us.address.fc.wdp.InternalFcPerAddressUSInterface$External.readRecord(InternalFcPerAddressUSInterface.java:306)
         at com.sap.xss.hr.per.us.address.overview.VcPerAddressUSOverview.onBeforeOutput(VcPerAddressUSOverview.java:267)
         at com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverview.onBeforeOutput(InternalVcPerAddressUSOverview.java:275)
         at com.sap.xss.hr.per.us.address.overview.VcPerAddressUSOverviewInterface.onBeforeOutput(VcPerAddressUSOverviewInterface.java:158)
         at com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverviewInterface.onBeforeOutput(InternalVcPerAddressUSOverviewInterface.java:140)
         at com.sap.xss.hr.per.us.address.overview.wdp.InternalVcPerAddressUSOverviewInterface$External.onBeforeOutput(InternalVcPerAddressUSOverviewInterface.java:224)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:602)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:568)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    I wonder what's the cause of this ...
    Any help would be highly appreciated.

    Do below things.
    1. Re-import your Model.
    2. Restart your J2ee server
    3. Re-load & Rebuild your project.
    It should work now..
    Raja T
    Message was edited by:
            Armin Reichert

  • Issue with calling custom function in merge command -10g

    Hi,
    I have ran into issue while calling a custom function in merge command.
    It throws error 'Invalid identifier'. Oracle doesnt understand that it is a function and take the function name as column name.
    Since no such collumn name exists, it throws 'Invalid identifier'.
    Interestingly, merge command works fine when it has a oracle function (replace, decode).
    The oracle version is 10.2.0.3
    It is very urgent.
    Any pointers will be helpful.
    Regards,
    Ravi

    I don't have privileges to create dblink, but this is working for me.
    So, i don't think function can be a issue here.
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:01.02
    satyaki>
    satyaki>
    satyaki>create table hist_tab
      2     as
      3       select * from emp
      4       where sal between 2000 and 4000;
    Table created.
    Elapsed: 00:00:00.09
    satyaki>
    satyaki>select * from hist_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>update hist_tab
      2     set mgr = 7794;
    1 row updated.
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>select * from hist_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7794 08-SEP-81       2178          0         30 SALESMAN
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>
    satyaki>
    satyaki>create table tran_tab
      2     as
      3       select * from emp
      4       where sal between 2000 and 7000;
    Table created.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>select * from tran_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>ed
    Wrote file afiedt.buf
      1  create or replace function fun(c_in number)
      2     return number
      3     is
      4       c_out number(4);
      5     begin
      6       if c_in < 7900 then
      7          c_out := 0;
      8       else
      9         c_out := 1;
    10       end if;
    11       return c_out;
    12*    end;
    13  /
    Function created.
    Elapsed: 00:00:01.00
    satyaki>
    satyaki>merge into hist_tab o
      2  using (
      3     select empno,
      4            ename,
      5            job,
      6            mgr,
      7            hiredate,
      8            sal,
      9            comm,
    10            deptno,
    11            job1,
    12            dob
    13     from (
    14              select k.*,
    15                     rank() over(order by fun(k.empno)) rn
    16              from tran_tab k
    17          )
    18     where rn = 1
    19     ) n
    20  on ( o.empno = n.empno)
    21  when matched then
    22    update set o.ename = n.ename,
    23               o.job = n.job,
    24               o.mgr = n.mgr,
    25               o.hiredate = n.hiredate,
    26               o.sal = n.sal,
    27               o.comm = n.comm,
    28               o.deptno = n.deptno,
    29               o.job1 = n.job1,
    30               o.dob = n.dob
    31  when not matched then
    32    insert(
    33            o.empno,
    34            o.ename,
    35            o.job,
    36            o.mgr,
    37            o.hiredate,
    38            o.sal,
    39            o.comm,
    40            o.deptno,
    41            o.job1,
    42            o.dob
    43          )
    44    values(
    45            n.empno,
    46            n.ename,
    47            n.job,
    48            n.mgr,
    49            n.hiredate,
    50            n.sal,
    51            n.comm,
    52            n.deptno,
    53            n.job1,
    54            n.dob
    55          );
    1 row merged.
    Elapsed: 00:00:00.03
    satyaki>
    satyaki>select * from hist_tab;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
    Elapsed: 00:00:00.00
    satyaki>You can check the final output with old output. It is working perfectly - i guess.
    Regards.
    Satyaki De.

Maybe you are looking for

  • Disgusted with HP Elite m9280a constant/random freezes, lock ups, BSOD, black screen

    constant/random freezes, lock ups, BSOD, black screen. I have been trying to trouble shoot this PC for almost a day now. weird problems like when 3 sticks of memory is present it wil not boot but it will boot on 1 and on 2 sticks will have hangs? dis

  • ECC TO SRM-MDM CATALOG THROUGH SAP PI

    We have a scenario where we are sending data from ECC to SRM-MDM Catalog through SAP PI and data is coming from ECC through proxy and sending to SRM u2013MDM catlog through file adapter. In ESR part we have used SAP defined standard service interface

  • No keyboard/mouse working after update

    Today I performed a regular pacman -Syu and rebooted the system (a laptop). After that, X loads until GMD, but I can't use any of the input devices. I can access as single user (no network, BTW) and downgraded xorg-server and xorg-server-common (Read

  • XSQL: How to embed the XML document(s) instead of posting?

    Dear all. I'm trying to use XSQL for a self-contained database schema setup. This setup should be able to handle DML (INSERT/UPDATE/DELETE), PL/SQL calls etc and I thought XSQL looks perfect for the job. As such, I wouldn't be using XSQL as a publish

  • U410: Windows + Debian from scratch

    Hello, I bought a Lenovo U410 (HDD: 750 GB, SDD: 32 GB, 8 GB RAM) in Germany in August last year. It was working really good until I tried to install Ubuntu on it. When I was trying to do it, I got lots of problems because of the RAID configuration (