Get column value for specific columns

I want to change the default behavior of a IKM. In a specific step, I need to call a PLSQL procedure inside the loop below, and that procedure will substitute the insert clause. The procedure uses only some attributes, and I need to check the name of each one when I use the getColList method.
     for aRecord in myCursor loop
          insert into      <%=snpRef.getTable("L","TARG_NAME","A")%>
               <%=snpRef.getColList("", "[COL_NAME]", ",\n\t\t\t", "", "((INS AND (NOT TRG)) AND REW)")%>
               <%=snpRef.getColList(",", "[COL_NAME]", ",\n\t\t\t", "", "((INS AND TRG) AND REW)")%>
          values
               <%=snpRef.getColList("", "aRecord.[COL_NAME]", ", \n\t\t\t", "", "((INS AND (NOT TRG)) AND REW)")%>
               <%=snpRef.getColList(",", "aRecord.[COL_NAME]", ", \n\t\t\t", "", "((INS AND TRG) AND REW)")%>
     end loop;
For example, to call the procedure I do that: schema.proc_1(col1, col2, col3). However, I have more than 3 columns, and I need to restrict them when I use the getColList method. I would like to know if there is a way to get only specific columns, giving these names. I pass the name of the column, and the method should return its value. Can I use the getColList to do that? Is there any other way to do that?

Hi Luciene,
You can use the UD flags to do this. If you click on one of your mappings in the Diagram tab of your interface you will notice several UD flags (UD1 to UD5) you can use those to flag the columns you want to use in proc_1.
To summarize:
- at the interface level flag the columns you want to use in your PL/SQL code -> check UD1 for all of them
- modify your IKM code:
<%=odiRef.getColList(",", "COL_NAME", ",\n\t\t\t", "", "((INS AND TRG) AND REW AND UD1)")%> <- retrieve columns flagged with insert, not read only, mapped on target and with UD1 flagged. The "AND UD1" part can be used in other getColList.
Hope this helps.
Thanks,
Julien

Similar Messages

  • Get unique value for a range of values from a table

    Please help to identify the sql to get unique value for following scenario
    Table A has 3 columns
    column1 column2 column3

    user7666373 wrote:
    Please help to identify the sql to get unique value for following scenarioUnique combinations of three columns? If so:
    select DISTINCT column1,column2,column3 from A;SY.

  • How to get the value for the LIT_Withheld field in the city tax form?

    I am trying to get the value for the LIT_Withheld field on the city tax form , PAYUSEET.. This is not a database column but is generated based on some conditions.. Appreciate the help. Thanks, Suguna

    Hi Abhmanyu,
    Thanks for your response.
    Search Help Name : ZZ_MG_MARITAL_VH
    Selection Method  : T502T
    Search help parameters are SPRSL, FAMST, FTEXT,
    Can u provide me a sample code to fetch the value of corresponding text.
    Thanks,
    Hari

  • Profile values for specifically if  enter section name and product name

    I have tried to get Profile values with the following query,
    SELECT *
    FROM fnd_profile_options_vl po,
    fnd_profile_option_values pov,
    fnd_user usr,
    fnd_application app,
    fnd_responsibility rsp,
    fnd_nodes svr,
    hr_operating_units org
    WHERE 1 = 1
    AND pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id(+) = pov.level_value
    AND rsp.application_id(+) = pov.level_value_application_id
    AND rsp.responsibility_id(+) = pov.level_value
    AND app.application_id(+) = pov.level_value
    AND svr.node_id(+) = pov.level_value
    AND org.organization_id(+) = pov.level_value
    Suppose I need to populate the profile values for specifically if I enter section name and product name.
    How can I do that ???

    Hussein Sawwan wrote:
    Thanks, I have gone through the documentation,I can get all profile values.But how can I get the profile values and names that is related to/affects a particular product.
    Is there any connection between products/items with profile option.No. However, you may run the same queries using the follows:
    For example ..
    For GL --> PROFILE_OPTION_NAME like '%GL%'
    For AR --> PROFILE_OPTION_NAME like '%AR%'
    And so on.
    Please note that the above will not return all profile options that affect (or related to) specific module.
    You can also get the list of profile option which are set at the Application/Responsibility level.
    Thanks,
    Hussein
    >
    Thanks, I have gone through the documentation,I can get all profile values.But how can I get the profile values and names that is related to/affects a particular product.
    Is there any connection between products/items with profile option.No. However, you may run the same queries using the follows:
    For example ..
    For GL --> PROFILE_OPTION_NAME like '%GL%'
    For AR --> PROFILE_OPTION_NAME like '%AR%'
    And so on.
    Please note that the above will not return all profile options that affect (or related to) specific module.
    You can also get the list of profile option which are set at the Application/Responsibility level.
    Thanks,
    Hussein
    Hussein ,
    Can I use following query to retrieve the profile values for an item with m.msite_id  =10218 AND s.section_id    =10591 and i.organization_id = 204 and i.inventory_item_id =66567
    select distinct *
    FROM fnd_profile_options_vl po,
    fnd_profile_option_values pov,
    fnd_user usr,
    fnd_application app,
    fnd_responsibility rsp,
    fnd_nodes svr,
    hr_operating_units org,
    ibe_msites_tl m,
    ibe_dsp_sections_tl s,
    mtl_system_items_b i
    where
    pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id(+) = pov.level_value
    AND rsp.application_id(+) = pov.level_value_application_id
    AND rsp.responsibility_id(+) = pov.level_value
    AND app.application_id(+) = pov.level_value
    AND svr.node_id(+) = pov.level_value
    AND org.organization_id(+) = pov.level_value
    and m.msite_id =10218
    AND s.section_id =10591
    and i.organization_id = 204
    and i.inventory_item_id =66567
    Anything wrong here???
    Thanks

  • TSQL Get Previous values for each group by

    Dear Friends,
    I have a problem with my TSQL statment. 
    I need to get previous value for each day and specific unit. Everything goes fine if I have always 2 unit in each day. But if same day has just one unit or less, I cannot have the previous value in the current record.
    The Output is this one:
    SK_DAY SK_UNIT
    VALUE VALUE_PREVIUS_DAY
    20131112 2
    30.00 NULL
    20131112 3
    34.00 NULL
    20131113 2
    40.00 30.00
    20131113 3
    45.00 34.00
    20131114 2
    50.00 40.00
    I dont have the second record for 2013-11-14, because in this date I just have value for unit 2.
    The final output should include the record:
    20131114 3
    0 45.00
    The Statment I have is:
    SELECT MAIN.SK_DAY, MAIN.SK_UNIT, SUM(MAIN.VALUE) AS VALUE
     SELECT SUM(VND1.VALUE) AS VALUE
     FROM FCT_TEST VND1
     WHERE CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))>=DATEADD(dd,-1,CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY)))
    AND CONVERT(DATE,CONVERT(VARCHAR(10),VND1.SK_DAY))<CONVERT(DATE,CONVERT(VARCHAR(10),MAIN.SK_DAY))
    AND VND1.SK_UNIT=MAIN.SK_UNIT
    ) AS VALUE_PREVIUS_DAY
    FROM FCT_TEST MAIN
    GROUP BY SK_DAY, MAIN.SK_UNIT
    SQL CREATE SCRIPT:
    CREATE TABLE [dbo].[FCT_TEST](
    [SK_DAY] [int] NOT NULL,
    [SK_UNIT] [int] NOT NULL,
    [VALUE] [decimal](18, 2) NULL,
     CONSTRAINT [PK_FCT_TEST] PRIMARY KEY CLUSTERED 
    [SK_DAY] ASC,
    [SK_UNIT] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    Thank you!!!
    PPSQL

    Thank you Kalman,
    But my problem is not with date! Fortunately I have dates for all days.
    The problem is for dimension tables like UNITS that I dont have values for all days, and when I try to get the previous value for previous day and each unit I dont have records. 
    20131112
    2
     30.00
    NULL
    20131112
    3
     34.00
    NULL
    20131113
    2
     40.00
    30.00
    20131113
    3
     45.00
    34.00
    20131114
    2
     50.00
    40.00
    20131114
    3
     0
    45.00 [I NEED THIS RECORD AS IS]
    Could you help me??
    Thank you!!

  • How To get Characteristic values for an Equipment in a particular Class ?

    Hi All,
    How i will get  Characteristic values for an Equipment in a particular Class ?
    Any table or FM ?
    Thanks in advance
    Srikanta Gope

    Hi,
    You can use the FM BAPI_OBJCL_GETDETAIL to fetch the characteristic values for an equipment from the table parameters ALLOCVALUESNUM; ALLOCVALUESCHAR; ALLOCVALUESCURR.
    Or u can use the tables EQUI, KLAH, KSSK, AUSP, CABN
    Regards,
    Aditya

  • How can I get null values for the later weeks

    Hi All,
    When I execute this code I get the records till current week.
    How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
    Thanks,
    Vikram
    DECLARE
       v_query VARCHAR2(4000);
       TYPE ref_cursor IS REF CURSOR;
       v_refcur ref_cursor;
       v_sum NUMBER;
       v_id NUMBER;
       v_name VARCHAR2(1000);
       v_weeknum NUMBER;
       v_pernum NUMBER;
       v_numOfWeeks NUMBER := 5;
    BEGIN
    v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                              FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
                          FROM s_postn) postn_tbl
                          WHERE lvl_6_id = 5767
                          AND fiscal_year = 2008
                          AND b.week_num < 4
                          AND b.period_num = 3
                          AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
                          GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
                          ORDER BY  postn_tbl.postn_name, b.week_num';
    OPEN v_refcur FOR v_query;
    LOOP
       FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
       EXIT WHEN v_refcur%notfound;
       dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
    END LOOP;
    END;
    This is the output when I execute this code.
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W2 COMM CNTRL TAM 216 12561.4
    P3W3 COMM CNTRL TAM 216 2027.1
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    This is the output I'd like to get
    P3W1 COMM CNTRL ISAM 213 26961.61
    P3W2 COMM CNTRL ISAM 213 12870.4
    P3W3 COMM CNTRL ISAM 213 245.88
    P3W4 COMM CNTRL ISAM 213
    P3W5 COMM CNTRL ISAM 213
    P3W1 COMM CNTRL ISAM 273 72831.2
    P3W2 COMM CNTRL ISAM 273 8739.38
    P3W3 COMM CNTRL ISAM 273 3764.92
    P3W4 COMM CNTRL ISAM 273
    P3W5 COMM CNTRL ISAM 273
    P3W1 COMM CNTRL TAM 213 49844
    P3W2 COMM CNTRL TAM 213 20515.17
    P3W3 COMM CNTRL TAM 213 16167.46
    P3W4 COMM CNTRL TAM 213
    P3W5 COMM CNTRL TAM 213
    P3W1 COMM CNTRL TAM 273 -3336.71
    P3W2 COMM CNTRL TAM 273 -1376.68
    P3W3 COMM CNTRL TAM 273 19707.42
    P3W4 COMM CNTRL TAM 273
    P3W5 COMM CNTRL TAM 273
    P3W1 Damon Walters -609.07
    P3W2 Damon Walters 30030.24
    P3W3 Damon Walters 37475.1
    P3W4 Damon Walters
    P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PM

    Sure, in a Single SQL ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.01
    satyaki>
    satyaki>
    satyaki>-- Start Of Test Data --
    satyaki>with week_tab
      2  as
      3    (
      4      select 1 period_num, 1 week_num, 10 bkg1 from dual
      5      union all
      6      select 1, 2, 40 from dual
      7      union all
      8      select 1, 3, 30 from dual
      9      union all
    10      select 1, 2, 20 from dual
    11      union all
    12      select 1, 1, 10 from dual
    13      union all
    14      select 1, 1, 20 from dual
    15      union all
    16      select 1, 3, 10 from dual
    17      union all
    18      select 2, 1, 15 from dual
    19      union all
    20      select 2, 2, 20 from dual
    21      union all
    22      select 2, 3, 10 from dual
    23      union all
    24      select 2, 1, 15 from dual
    25      union all
    26      select 2, 2, 30 from dual
    27      union all
    28      select 2, 3, 20 from dual
    29    )
    30  -- End Of Test Data --
    31  select period_num,
    32         week_num,
    33         (
    34            select sum(week_tab.bkg1)
    35            from week_tab
    36            where period_num = m.period_num
    37            and   week_num   = m.week_num
    38            group by week_num, period_num
    39         ) sum_bkg1
    40  from (
    41        select dum.week_num,
    42              wk.period_num
    43        from (
    44                select 1 week_num from dual
    45                union all
    46                select 2 from dual
    47                union all
    48                select 3 from dual
    49                union all
    50                select 4 from dual
    51                union all
    52                select 5 from dual
    53              ) dum ,
    54              (
    55                select distinct period_num
    56                from week_tab
    57          ) wk
    58      ) m;
    PERIOD_NUM   WEEK_NUM   SUM_BKG1
             1          1         40
             1          2         60
             1          3         40
             1          4
             1          5
             2          1         30
             2          2         50
             2          3         30
             2          4
             2          5
    10 rows selected.
    Elapsed: 00:00:00.48
    satyaki>Regards.
    Satyaki De.

  • How to get the values for checked and unchecked chekboxes

    Hai i have using the checkbox in for loop.
    I need the urgent help from anyone,
    for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and unchecked checkboxes. Because if i checked the checkboxes, those values need to be inserted into the database. Those for unchecked checkboxes values need to be deleted from the database. Can anyone help me for this
    i am using the following jsp code for this. If anyone can know about this please post me the sample code.
    <form name="confirmcontainer" id="confirmcontainer" method="post" action="submit.jsp">
    <% for(int i=0;i<value.length;i++) {%>
    <tr>
    <td><input name="assigncontainer_chkbox" d="assigncontainer _chkbox" type="checkbox" value="<%=value[0]%>"></td>
    <td class="bottomborder"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[1]%> </font></div></td>
    <td bgcolor="#FFFFFF" class="bottomborder"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[2]%></font></td>
    </tr>
    <% } %>
    <tr><td><input type="submit" name="submit" value="submit"> </td></tr>
    </form>
    Thanks & Regards,
    Tamilvanan

    Hey thanks Alex and Catastrophe for the quick response...
    I'll be sitting with the functional team and reviewing the roles created.
    Thanks for all the help once more
    Regards,
    Akash.

  • How to get the values for the Authorization Object Fields....

    Hi Everyone,
    I'm pretty new to the SAP Security and have been working on the Basis sides...I created a new role in PFCG and added a few transactions (ME13) and clicked on the Authorizations tab. In there, the authorization tree is in yellow and red. After providing the Org Values, only the yellow lights remain (apart from the green one ofcourse). Now how do we get the values for the different auth obj fields that are in yellow... say for example
    Conditions                                                   COND
    Maintain Condition: Auth. for Use/Appl./Cond.Type/Table      V_KOND_VEA
    Activity                       03                                                                        ACTVT
    Application                                                                                KAPPL
    Condition table                                                                                KOTABNR
    Condition Type                                                                                KSCHL
    Usage of the condition table                                                                 KVEWE
    Here the values for V_KOND_VEA fields e.g. KAPPL, KOTABNR etc are missing.
    My question is how do we get these values in regard to the requirement provided by the client...is it the functional guys who provide these values or else how is a security person supposed to know it...
    All the help in this regard is sincerely appreciated along with the awarding of points...

    Hey thanks Alex and Catastrophe for the quick response...
    I'll be sitting with the functional team and reviewing the roles created.
    Thanks for all the help once more
    Regards,
    Akash.

  • A^b = n ,How to get the value for a ?

    a^b = n ===> n = Math.pow(a,b)
    How to get the value for a ?
    dose Java have API to get the value for a ?
    Thanks for help~~~

    a^b = n
    =>
    a = n^(1/b)
    So,
    a = Math.pow(n,1.0/b)

  • How do I get the value for p_reference_path for the API wwpro_api_parameters.get_valu

    I have one report that lists a set of rows and has a link to
    drill down to another report. On the second report, I am trying
    to create a link to a form and pass the value received from the
    first report. I am trying to use the API
    wwpro_api_parameters.get_value but I cannot figure out how to
    get the value for the second parameter - p_reference_path.
    Here is my code which is found in the "Additional PL/SQL Code"
    section, "After displaying the Header".
    declare v_id varchar2(10);
    begin
    v_id := wwpro_api_parameters.get_value
    ('id', 'a');
    htp.anchor ('http://rrlehman-
    lap.us.oracle.com/pls/portal30/PORTAL30.wwa_app_module.link?
    p_arg_names=_moduleid&p_arg_values=1516531942&p_arg_names=_show_h
    eader&p_arg_values=YES&p_arg_names=FRM_ID&p_arg_values=' ||
    v_id, 'Create A Topic', NULL, NULL);
    end;
    No matter what I put in for the second variable,
    p_preference_path, I do not get a value for v_id. I have
    performed a search in the discussion forums and read all related
    threads but I still cannot get it to work.

    Please, note that the second parameter of the get_value function is the identifier of the portlet instance, called in the PDK as reference path.
    Here you find further information on the topic:
    [list]
    [*]Documentation of the wwpro_api_provider.get_value function
    [*]Guidelines for Parameter Passing in Portlets
    [list]

  • Problem to get Correct Value for Message Id in XI (Inbound channel)

    Hi Experts
    I have XI scenario  i.e. SOAP to RFC.
    I am calling RFC and getting Response which contais Messageid Field(Raw Data).
    But while getting Response in Inbound Channel ,I ma getting Junk Value For Message Id.
    In RFC Data element for Message id is SXMSMGUID.(data tpe Raw No Of character 16 and Output Length 32)
    I am accessing some RFC functions from XI which return parameters in the RAW format.[RAW: Uninterpreted byte string.]
    For example: If I execute a RFC from the abap system (using transaction se37), one of the results is "5ECD6F4D6C6E3242921025FE74AC5153"
    When  I call the RFC from XI, response for same  parameters is "Xs1vTWxuMkKSECX+dKxRUw==".
    Is there any way to get RAW data in correct Format?
    when i import RFc in XI it's data type becomes xsd:base64Binary.
    I created one customized data element having data type RAW (32 length) and even Character(32-50 length)
    In this case RFC gives correct value but when Sceanaro runs in XI,it get Wrong data in XI Inbound channel.
    Also disturbed value and place of other Fields.
    Thanks in advance .

    Hi
    Check this forum post.. same prob as yours
    Re: Problem in RFC Lookup UDF in getting MessageID
    fixed by changing the datatype other than RAW in FM
    also,
    Data type RAW imported to ABAP from Java
    Regards
    Vishnu

  • Getting incorrect values for linkQueryResult (ILinkManager) while debugging our plugin in Adobe InDesign CC debug

    Hi,
    We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
    IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
      if(document == nil)
      //CAlert::InformationAlert("Doc Interface Not Created");
      break;
      IDataBase *db = ::GetDataBase(document);
      InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
      if(linkmanager == nil)
      //CAlert::InformationAlert("linkmanager Interface Not Created");
      break;
      LinkQuery Query;
      ILinkManager::QueryResult linkQueryResult;
      linkmanager -> QueryLinks(Query, linkQueryResult);
      for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
      InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
      if ( iLink )
      InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
      ILinkResource::ResourceState rs = resource->GetState();
      PMString fileName = resource -> GetLongName(kTrue); //gets full path
      CharCounter lc=fileName.LastIndexOfCharacter('.');
      PMString *exten = fileName.Substring(lc+1,3);
      if((*exten).Compare(kFalse,"xml")==0)
      xmlDataLinkName = fileName;
    Kindly help us if anyone has idea regarding this issue.
    Thanks,
    VIMALA L

    Hi Vimala L,
    try to replace
    ILinkManager::QueryResult linkQueryResult;
    by
    UIDList linkQueryResult(db);
    Markus

  • Getting MIX values for Keyfigures in Report

    Hi
    Iam Getting MIX values for Keyfigures in Report, May i know why it is coming, In which cases this  MIX values are coming
    Regards
    ramu

    Hi Ramu,
    By MIX values, do you mean you are getting a * in the resultant row, and when you drill down by a certain characteristic you get multiple values of different units ? Please do give more details so that the forum can help you better.
    Regards
    Snehith

  • How do I get parameter values for xsql:dml

    Hi -
    If I have an xml file like:
    <stuff>
    <arecord>
    <item1> some data </item1>
    <item2> more data </item2>
    </arecord>
    ... more arecords ...
    </stuff>
    and I want to run an xsql script against it sending every "arecord" to a stored procedure by:
    <xsql:dml>
    begin
    my_package.do_something(a_parm, a_parm2)
    end;
    </xsql>
    how do I get the values in the <item1> and <item2> tags for every record into a_parm and a_parm2 in the call to do_something?
    Thanks in advance,
    -- ST

    You need to post your XML file to an XSQL page that uses the:
    <xsql:insert-request>
    action element. You'll need to provide an associated XSLT stylesheet to transform your XML input document into the canonical XML format for the target table.
    Then, you'll get each <arecord> (transformed into <ROW>) inserted into the columns of the target table.
    For example, if your file looks like:
    <stuff>
    <arecord>
    <item1> some data </item1>
    <item2> more data </item2>
    </arecord>
    ... more arecords ...
    </stuff>and your table looks like:
    ITEM1 VARCHAR2
    ITEM2 VARCHAR2Then you'll need to provide a stylesheet that transforms your XML input into the format:
    <ROWSET>
    <ROW>
    <item1>some data</item1>
    <item2>more data</item2>
    </ROW>
    </ROWSET>and then the data will be inserted.
    If the target table is actually a view, then you can create an INSTEAD OF INSERT trigger on your view to do additional custom processing for each row.
    My "Building Oracle XML Applications" book has examples of doing all of this.
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Filter value for specific quarter

    I have a report that shows value for last two years by quarter. The requirment I got ask for comparing each quarter value with last year Q4 value.
    It is like:
    2011Q1
    2011 Q 2
    2011 Q 3
    2011 Q4
    2012 Q1
    2012 Q2
    2012 Q3
    2012 Q4
    2011 Q1/2010 Q4
    2011 Q2/2010 Q4
    2011 Q3/2010Q4
    2011Q4/2010Q4
    2012 Q1/2011 Q4
    2012 Q2/2011 Q4
    2012 Q3/2011 Q4
    2012 Q4/2011 Q4
    How shoud I write the formular to achive this? Thank you for your input.

    create a column that store previous quarter result and then use the formula to create another column to store the comparision.
    The formula would be case when start_date>= @year_start and end_date <= @year_end then table.measure/table.measure_previous_quarter end
    Please mark if helpful.
    Regards,
    Akansh Agarwal

Maybe you are looking for

  • Is there an APP or a way to do this on the iPhone?

    On the old PDA we used to be able to just point our PDA at another one and jusr zap over our information like Number and address for them to store can we do this on the iphone?

  • IPhone 3G warranty replacement service NZ

    I have just experienced abysmal repair service for the iphone. It seems it is a New Zealand issue and I am interested to hear if anyone else has had similar experiences or whether this is just a one-off, bad-luck case? I bought my first iphone 3G out

  • Viewing File Size in Finder

    Is it possible to include file size as one of the columns in any of the finder views? I've created a smart search for files above a specific size, but would like to view the actual size in the Finder window. Was easy to add additional attribute colum

  • Tcode to view functional area for g/l account

    Hi, I'm doing substitution enhancement at callup point 6 to add value to cobl-fkber(Functional Area). the tcode that triggers this enhancement is f-02 however i'm not sure on which tcode to use to view if the functional area is updated or not. Please

  • FireTableDataChanged() doesnt update?

    When I in my ActionListener try to update mu JTable by fireTableDataChanged() nothing happens? Can anyone help me with this? import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.sql.*; import java.util.*; im