How to query member data

Hello,
With ABAP program I try to select a dimension member with the method read_mbr_data by restricting the attributes wothout success.
    ls_sel-dimension = 'DIVISION'.
    ls_sel-attribute = <l_division>.
    ls_sel-sign      = 'I'.
    ls_sel-option    = 'EQ'.
    ls_sel-low       = 'NO'.
    append ls_sel to lt_sel.
DATA :        ,lo_costcenter TYPE REF TO cl_uja_dim.
clear ls_sel.
    ls_sel-dimension = 'SALES_ORGANIZATION'.
    ls_sel-attribute = <l_sales_organization>.
    ls_sel-sign      = 'I'.
    ls_sel-option    = 'EQ'.
    ls_sel-low       = 'NO'.
    append ls_sel to lt_sel.
TRY.
CALL METHOD lo_costcenter->read_mbr_data
  EXPORTING
     it_sel         = lt_sel
  IMPORTING
    er_data        = lr_data
CATCH cx_uja_admin_error .
ENDTRY.
Should I use others parameters or a different method ?

Hello,
I don't think you can SQL directly with the HyperTrend Object. What you could do, however, is use the StartTime and the TrendWidth datamembers to display the period of data that you're interested in.
Regards,
-Khalid

Similar Messages

  • How to query XML data stored in a CLOB column

    I don't know XMLDB, so I have a dumb question about querying XML data which is saved as CLOB in a table.
    I have a table (OLAP_AW_PRC), with a CLOB column - AW_XML_TMPL_VAL
    This column contains this xml data - [click here|http://www.nasar.net/aw.xml]
    Now I want to query the data using the xml tags - like returning the name of AW. This is where I am having trouble, how to query the data from AW_XML_TMPL_VAL clob column.
    The following query generates error:
    ORA-31011: XML parsing failed.
    ORA-19202: Error occurred in XML processing
    LPX-00229: input source is empty
    SELECT
    extractValue(value(x), '/AW/LongName') as "AWNAME"
    from
    OLAP_AW_PRC,
    table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
    where
    extractValue(value(x) , '/AW/Name') = 'OMCR4'
    - Nasar

    Mark,
    Thanks. This is exactly what I was looking for.
    After doing @Name in both places (SELECT and WHERE clause) it worked.
    Now I have one more question.
    There are multiple DIMENSION tags in my xml, and I want to see the NAME attribute values for all of those DIMENSIONs. The following query returns
    ORA-19025: EXTRACTVALUE returns value of only one node.
    Cause: Given XPath points to more than one node.
    Action: Rewrite the query so that exactly one node is returned.
    SELECT
    extractValue(value(x), '/AW/@Name') as "AW",
    extractValue(value(x), '/AW/Dimension/@Name') as "DIMENSIONS"
    from
    OLAP_AW_PRC,
    table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
    where
    extractValue(value(x) , '/AW/@Name') = 'OMCR4'

  • How to query two data blocks simultaneously?

    Dear all,
    Need your inputs on the following problem statement...
    Existing Functionality:
    We have two data blocks A (Parent) and B (Child) in a relationship. Both data blocks refer to different tables.
    Data block A is the query data block and for a single record in block A we can have multiple records in block B. Multiple records in block B are shown one at a time after executing a query, this is implemented by using a list item C (belongs to a third block).
    For example
    Let us say block B can have 5 different types of entries for each record in block A. In this case the list item C will have 5 values corresponding to these entries. Once the query is executed, block B will show the default entry for the queried record in block A. To see other entries for the record user can select the required value in list item C and corresponding entry in block B will be fetched.
    Requirement:
    Our requirement now is to enable querying upon both data blocks A and B simultaneously. To implement this I replaced data blocks A and B with a single data block X which is based on the join of the two tables referred by the Data blocks A and B earlier. As the fields should allow insert, update, delete operations we did not use a view here.
    Issue:
    Now the problem is, each record in block A for which block B had multiple entries earlier is now getting listed multiple times because of the join.
    I have tried but could not find any solution for this. I would appreciate if any of you can suggest how we can query both blocks simultaneously without affecting the existing functionality.
    Thanks,
    Amit

    I don't understand your requirement in detail. I try to repeat what i understood so far.
    You have a master-block A based on a table A and a detail-block B based on a table B. So far so good. You can now query based on conditions just the datablock A, because B is a detail and therefore can only be queryied in context of block A.
    Your reuirement is to query on both blocks A and B and find block in B also without giving conditions for the relevant block A.
    Is it that ?
    What i don't understand, what is block C used for?
    An idea for the querying of block B's data: Create Non-database-items items in block A for the search-criteria you need on block B and make them Queryable.
    In the PRE-QUERY-trigger on block A build a WHERE-condition if that search-criteria is entered, something like
    IF :BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B IS NOT NULL THEN
      SET_BLOCK_PROPERTY('BLOCK_A', ONETIME_WHERE, 'WHERE PKVALUE IN (SELECT FKVALUE_TO_A FROM TABLE_B WHERE FIELDVALUE=' ||:BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B)');
    END IF;This would query also records to A for which you want to have the B-records. So you could keep block-structure up to master-detail.

  • How to Query/Lookup Data Target HFM Application in FDMEE Import / Validation Step

    Hi Experts,
    We are using FDMEE 11.1.2.3.500 to load 2 sets of Flat Files - ICP Trial Balances and Non-ICP Trial Balances. The ICP Trial Balances will be loaded to Target HFM Application first using FDMEE and then the remaining Non-ICP Trial balances Load would follow
    We have a complex business requirement wherin we want to check if the Non-ICP Trial Balances for a given ENTITY, ACCOUNT, [ICP None] combination in the Trial Balance File matches the already loaded ICP Trial Balances for ENTITY, ACCOUNT, [ICP Total]. If it matches then this record has to be skipped from our data load else it has to be loaded. To elaborate with an example:
                                                                  Entity    Account     ICP              Amount
    File 1 (ICS_TB.csv) - Record 1  ->          E1          A1           P1                  100
    File 1 (ICB_TB.csv) - Record 2  ->          E1          A1           P2                  300
    Above File Gets Loaded First
    File 2 (Non_ICP_TB) - Record 1->          E1          A1          [ICP None]      400    (Record to be skipped - It matches the above already loaded File)
    Is it possible to validate this during Import or Validate Step in FDMEE? if yes, can you please throw some light on how this can be done?
    Thanks!

    As far as I am aware there is no seperate Java API reference manual for FDMEE, you are limited to the information available in the Admin Guide for now. If you feel that it is not comprehensive enough perhaps you could raise a ticket or enhancement request via Oracle Support.
    The sysntax for the statement should be dmAPI.executeDML(String query,Object[] parameters) according to the AG, I wouldn't put 100% trust in that as it can often be incorrect, but give it a try. Ensure the 2nd parameter is a Jython list.
    I don't think the method supports passing a Stored Procedure and there doesn't appear to be another native API method listed that would do that. You could initiate the connection using standard Python or Java libraries and then use a cursor and prepared statements to execute the sql or the callproc method of the Python DB API

  • How to query the Date/Time Dataype

    Hi,
    I am trying to query the database with Data/Time Datatype.
    String date=request.getParameter("date");
    String month=request.getParameter("month");
    String year=request.getParameter("year");
    String tosearch=month+"/"+date+"/"+year;
    String getTable="select * from tableRes where dmy='"+tosearch+"'";I would like to know why it is not working?
    I ran through tomcat and it appeared this error:
    Data type mismatch in criteria expression.
    Thanks!

    pramudya81 wrote:
    Rock,
    May I know more detail on your specs?
    What is your DB? Or how is exactly you execute the sql.
    to_date is anyway an Oracle syntax.
    So I guess your DB might be an SQL Server.
    to_date for oracle is equivalent as Convert in SQL Server
    example Select Convert(datetime ,'2002/01/01')
    Hope it works nowBad idea. See reply 1.

  • How to query the data for required service calls

    Hi Experts,
    I have one requirement in oracle
    I have one table with columns actvy_code, actvy_seq_id, date.
    Data is as follows                    400008    1234431     12/01/2013
                                                 400010    1234431     12/02/2013
                                                 400020    1234431     12/03/2013
                                                 400008    1234431     12/01/2013
                                                 400005    1234431     12/02/2013 etc...!!!
    actvy_id is also containing 5M7, 5M8, 6M6, 4M4, 4M5 some are existed in same date and other codes present with different date.
    Here I want to extract data based on the actvy_code column, say for example in scope I have some actvy_codes like 4M8, 4M5, 5M8 etc..
    when you do select * from table where actvy_code in (4M8, 4M5, 5M8) gives the out put as needed.
    But I want to know whether these codes are present with same date or not. How to do this.
    Please do me this favor..
    regards,
    Sahadeva.

    one thing i forgot to add.
    we shouldnt use ascii values for the special characters.
    means we shouldnt use ascii values for restricting the sspecial characters.
    pls get me the reply as soon as possible
    thanq

  • How to query on date data type.

    Hi,
    I have a column RCVDDT which is DATE data type. Using this I need to query the records where RCVDDT <=(SYSDATETIME - 2 Hours), Need all the records which are 2 hours old or more.
    I am using this query:
    select * from tablename where RCVDDT <= to_date((sysdate - INTERVAL '2' hour),'yyyy-mm-dd HH24:MI:SS') order by RCVDDT desc
    Thanks in Advance,
    -Sree

    A very common mistake is to apply TO_DATE() against sysdate. Sysdate is a date already and applying TO_DATE() to it can really muck up your results. Besides your syntax for TO_DATE(), even if appropriate, is not correct because it relied on default date format, which will also lead you to grief.
    select * from tablename where RCVDDT <= sysdate -2/24;

  • How capture query in data model report

    Hi,
    I have multiples queries in my data model report >clause WHERE is dynamic in all queries<. I need capture the final query and look what query execute.
    Is this posible?, Are there any API that I can use? .
    Viktor.

    Viktor,
    you can trace the report including the sql. Look in te builder at the menu program. there's a tracing option.
    Regards
    Rainer

  • How to query geography data type?

    Hello
    In my db i create table having geography type column and insert location detail (lat & lon) using point method. How can i do query for getting that location in my console application?
    and also i try this got an error?

    It looks like you chose one line (the one beginning with "set") and ran it, stand-alone, in an SSMS query window. You need to run all 3 lines of code (i.e don't select any particular line, and hit the Run button). Or select all 3 lines and hit
    the Run button.
    What the error message says is that you are trying to use the variable @g without defining it. This could only mean that you're running only line 2 (the highlighted line).
    The lifetime of a SQL variable (@g) is one-batch long, a variable goes out of scope at the end of the batch. So running each line as a separate batch won't work with SSMS. You need to run them all at once.
    Cheers, Bob

  • How to query delivery date expired po?

    i want to get the list of po which delivery date expired, does sap provide the function?

    Maybe you can try to check in ME2N, in selection screen enter : delivery date < current date.

  • How to query xml data

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    XML INPUT
    <TXLife>
    <TXLifeRequest>
    <TransRefGUID>10bc80e7d60e59b0:a134d0:10d7c4674ad:-7ffc</TransRefGUID>
    <TransType tc="1203">OLI_TRANS_TRNHLD</TransType>
    <TransExeDate>2008-10-21</TransExeDate>
    <TransExeTime>12:00:00</TransExeTime>
    <InquiryLevel tc="3">OLI_INQUIRY_OBJRELOBJ</InquiryLevel>
    <InquiryView>
    <InquiryViewCode>UpdatePolicy-CHBM-1203A</InquiryViewCode>
    </InquiryView>
    <OLifE>
    <Activity id="Activity1" HoldingID="Holding_2">
    <UserCode>User123</UserCode>
    <Opened>2011-02-27</Opened>
    <ActivityCode>CHBM10002</ActivityCode>
    <OLifEExtension VendorCode="0098" ExtensionCode="Activity">
    <ActivityExtension>
    <SubActivityCode>CHBM20001</SubActivityCode>
    <OpenedTime>15:06:35</OpenedTime>
    </ActivityExtension>
    </OLifEExtension>
    </Activity>
    <Holding id="Holding_1">
    <HoldingTypeCode tc="2">Policy</HoldingTypeCode>
    <Policy>
    <PolNumber>308221234</PolNumber>
    <LineOfBusiness tc="1">OLI_LINEBUS_LIFE</LineOfBusiness>
    <ProductType tc="1009800001">Athena UL</ProductType>
    <CarrierCode>EQC</CarrierCode>
    <PolicyStatus tc="1">OLI_POLSTAT_ACTIVE</PolicyStatus>
    <Life>
    <FaceAmt>150000</FaceAmt>
    <Coverage>
    <ModalPremAmt>500</ModalPremAmt>
    <CovOption>
    <UnderwritingClass tc="1009800001">Preferred Elite</UnderwritingClass>
    </CovOption>
    </Coverage>
    <LifeUSA>
    <OLifEExtension VendorCode="0098">
    <LifeUSAExtension>
    <Exchange1035Ind tc="1">True</Exchange1035Ind>
    </LifeUSAExtension>
    </OLifEExtension>
    </LifeUSA>
    </Life>
    <OLifEExtension VendorCode="0098">
    <PolicyExtension>
    <NYReg60Ind tc="1">True</NYReg60Ind>
    </PolicyExtension>
    </OLifEExtension>
    </Policy>
    <Arrangement>
    <ProductCode>OPT_PREM_FUND_METH</ProductCode>
    <ArrType tc="1009800001">Split Dollar – Economic Benefit</ArrType>
    <ArrSource>
    <TransferAmtType tc="2">Amount</TransferAmtType>
    <TransferAmt>2000</TransferAmt>
    </ArrSource>
    <OLifEExtension VendorCode="0098">
    <ArrangementExtension>
    <ArrSubType tc="1009800001">No Tax Bonus</ArrSubType>
    </ArrangementExtension>
    </OLifEExtension>
    </Arrangement>
    </Holding>
    <Holding id="Holding_2">
    <HoldingTypeCode tc="6">Group Master</HoldingTypeCode>
    <Policy>
    <CarrierAdminSystem>CHBM</CarrierAdminSystem>
    <PolNumber>CHB00012345</PolNumber>
    </Policy>
    </Holding>
    <Holding id="Holding_3">
    <HoldingTypeCode tc="2">Policy</HoldingTypeCode>
    <Policy>
    <PolNumber>308221235</PolNumber>
    <LineOfBusiness tc="1">OLI_LINEBUS_LIFE</LineOfBusiness>
    <ProductType tc="1009800001">Athena UL</ProductType>
    <CarrierCode>EQC</CarrierCode>
    <PolicyStatus tc="1">OLI_POLSTAT_ACTIVE</PolicyStatus>
    <Life>
    <FaceAmt>150000</FaceAmt>
    <Coverage>
    <ModalPremAmt>500</ModalPremAmt>
    <CovOption>
    <UnderwritingClass tc="1009800001">Preferred Elite</UnderwritingClass>
    </CovOption>
    </Coverage>
    <LifeUSA>
    <OLifEExtension VendorCode="0098">
    <LifeUSAExtension>
    <Exchange1035Ind tc="1">True</Exchange1035Ind>
    </LifeUSAExtension>
    </OLifEExtension>
    </LifeUSA>
    </Life>
    <OLifEExtension VendorCode="0098">
    <PolicyExtension>
    <NYReg60Ind tc="1">True</NYReg60Ind>
    </PolicyExtension>
    </OLifEExtension>
    </Policy>
    <Arrangement>
    <ProductCode>OPT_PREM_FUND_METH</ProductCode>
    <ArrType tc="1009800001">Split Dollar – Economic Benefit</ArrType>
    <ArrSource>
    <TransferAmtType tc="2">Amount</TransferAmtType>
    <TransferAmt>2000</TransferAmt>
    </ArrSource>
    <OLifEExtension VendorCode="0098">
    <ArrangementExtension>
    <ArrSubType tc="1009800001">No Tax Bonus</ArrSubType>
    </ArrangementExtension>
    </OLifEExtension>
    </Arrangement>
    </Holding>
    <Party id="Client_1">
    <PartyTypeCode tc="1">Person</PartyTypeCode>
    <Person>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <Gender tc="1">Male</Gender>
    <BirthDate>1960-10-25</BirthDate>
    </Person>
    <Address>
    <AddressTypeCode tc="15">Work Location</AddressTypeCode>
    <Zip>07310</Zip>
    </Address>
    <Risk>
    <TobaccoInd tc="0">False</TobaccoInd>
    </Risk>
    <Employment>
    <EmployeeID>12345678</EmployeeID>
    <Title>Vice President</Title>
    </Employment>
    </Party>
    <Party id="Client_2">
    <PartyTypeCode tc="1">Person</PartyTypeCode>
    <Person>
    <FirstName>Jane</FirstName>
    <LastName>Doe</LastName>
    <Gender tc="2">Female</Gender>
    <BirthDate>1970-10-30</BirthDate>
    </Person>
    <Address>
    <AddressTypeCode tc="15">Work Location</AddressTypeCode>
    <Zip>07310</Zip>
    </Address>
    <Risk>
    <TobaccoInd tc="0">False</TobaccoInd>
    </Risk>
    <Employment>
    <EmployeeID>98765432</EmployeeID>
    <Title />
    </Employment>
    </Party>
    <Relation OriginatingObjectID="Holding_1" RelatedObjectID="Client_1" id="Relation_1">
    <RelationRoleCode tc="32">Insured</RelationRoleCode>
    <InterestPercent>50</InterestPercent>
    </Relation>
    <Relation OriginatingObjectID="Holding_3" RelatedObjectID="Client_2" id="Relation_2">
    <RelationRoleCode tc="32">Insured</RelationRoleCode>
    </Relation>
    <Relation OriginatingObjectID="Holding_2" id="Relation3" RelatedObjectID="Holding_1">
    <RelationRoleCode tc="50">Package Component</RelationRoleCode>
    </Relation>
    <Relation OriginatingObjectID="Holding_2" id="Relation4" RelatedObjectID="Holding_3">
    <RelationRoleCode tc="50">Package Component</RelationRoleCode>
    </Relation>
    </OLifE>
    </TXLifeRequest>
    </TXLife>
    My Requirement output should be like this
    PolNumber FirstName LastName
    308221234 John Doe
    308221235 Jane DOE
    Please help me on this anyone
    i Writtened query like this
    SELECT DISTINCT t1.firstname fnname,
    t1.LastName lstname,
    t2.polno
    FROM
    ( SELECT xData doc FROM dual
    ) temp_table,
    XMLTable (
    '/TXLife/TXLifeRequest/OLifE' passing doc
    columns
    person xmltype path '//Party[@id=/OLifE/Relation[RelationRoleCode/@tc=32]/@RelatedObjectID]',
    holding xmltype path '//Holding [@id=/OLifE/Relation[RelationRoleCode/@tc=50]/@RelatedObjectID][HoldingTypeCode/@tc=2]'
    ) t,
    XMLTable (
    '/Party' passing t.person
    columns
    firstname VARCHAR2(200) path 'Person/FirstName',
    LastName VARCHAR2(200) path 'Person/LastName'
    )t1,
    XMLTable(
    '/Holding' passing t.holding
    columns
    polno VARCHAR2(20) path 'Policy/PolNumber'
    )t2
    IN query Xdata is above XML INPUT
    The output is writting like this but in output i am typing few columns only
    PolNumber FirstName LastName
    308221234 John Doe
    308221235 John Doe
    308221235 Jane DOE
    308221234 Jane DOE
    Edited by: LRAJESH on Apr 29, 2011 4:53 AM
    Edited by: LRAJESH on Apr 29, 2011 5:26 AM
    Edited by: LRAJESH on Apr 29, 2011 5:28 AM
    Edited by: LRAJESH on Apr 29, 2011 5:30 AM
    Edited by: LRAJESH on Apr 29, 2011 5:31 AM
    Edited by: LRAJESH on Apr 29, 2011 5:33 AM

    Hi Odie,
    First of all sorry for the delayed replay and thank you very much for the solution provided by you, using which I am able to retrieve the required output after doing small changes. As mentioned earlier this functionality we are using in reading XML file which we receive as CLOB input parameter to procedure. This XML file will contain 50 multiple records which need to be read inside the procedure, using the logic provided by you. To read these 50 records it is taking 2 seconds of time.
    Now we got requirement to read up to 1500 records which will be supplied by CLOB field as input parameter to the procedure.
    But we are facing really a big challenge over here. Initially in testing phase we are trying to read just 100 records for which the time taking from point 1 to point 2(Mentioned below, that is going in to the loop) is around 60 sec. As you know this is not acceptable. So can you please help me to reduce this time frame?
    Do Let me know if you have any questions.
    POINT 1
    For I IN( select /*+ no_xml_query_rewrite */
    x.firstname fnname,
    x.LastName lstname,
    x.BirthDate birthdate,
    x.Gender gender,
    x.usercode usercode,
    x.opened opened,
    x.time time,
    x.TobaccoInd TobaccoInd,
    x.Employmeeid Employmeeid,
    x.Title Title,
    x.zip zip,
    x.riskclass riskclass,
    x.policystatus policystatus,
    x.NYReg60Ind NYReg60Ind,
    x.Exchange1035Ind Exchange1035Ind,
    x.ModalPremAmt ModalPremAmt,
    x.FaceAmt FaceAmt,
    x.vProductType vProductType,
    x.vHoldingSysKey vHoldingSysKey,
    x.InterestPercent InterestPercent,
    x.vPolno vPolno,
    /*x.DSGN_OPT_AMT DSGN_OPT_AMT,
    x.dsgn_opt_pct dsgn_opt_pct,
    x.ArrType ArrType,
    x.ArrSubType ArrSubType,
    x.ArrStatus ArrStatus,*/
    x.Arrangement,
    x.vattdate vattdate,
    x.vatttime vatttime,
    x.EVENT_NM EVENT_NM,
    x.AttachmentData AttachmentData,
    x.AttachmentSource AttachmentSource,
    x.attusercode attusercode,
    x.vHoldingid Holdingid
    from (SELECT xData doc FROM dual) t,
    xmltable(
    'let $x := $d/TXLife/TXLifeRequest/OLifE
    for $i in $x/Relation[RelationRoleCode/@tc=32]
    return element r
    $x/Holding[@id=$i/@OriginatingObjectID]/@id,
    $x/Holding[@id=$i/@OriginatingObjectID]/Policy,
    $x/Holding[@id=$i/@OriginatingObjectID]//Arrangement,
    $x/Holding[@id=$i/@OriginatingObjectID]/HoldingSysKey,
    $x/Holding[@id=$i/@OriginatingObjectID]/Attachment,
    $x/Party[@id=$i/@RelatedObjectID]/Person,
    $x/Party[@id=$i/@RelatedObjectID]/Risk,
    $x/Party[@id=$i/@RelatedObjectID]/Employment,
    $x/Party[@id=$i/@RelatedObjectID]/Address,
    $x/Activity,
    $x/Relation[@OriginatingObjectID=$x/Holding[@id=$i/@OriginatingObjectID]/@id][RelationRoleCode/@tc=32]/InterestPercent
    passing doc as "d"
    columns
    vHoldingid varchar2(50) path '@id',
    usercode varchar2(200) path 'Activity/UserCode',
    opened varchar2(20) path 'Activity/Opened',
    time varchar2(20) path 'Activity/OLifEExtension/ActivityExtension/OpenedTime',
    InterestPercent varchar2(200) path 'InterestPercent',
    vPolno number path 'Policy/PolNumber',
    riskclass varchar2(20) path 'Policy/Life/Coverage/CovOption/UnderwritingClass/@tc',
    policystatus varchar2(100) path 'Policy/PolicyStatus/@tc',
    NYReg60Ind VARCHAR2(100) path 'Policy/OLifEExtension/PolicyExtension/NYReg60Ind/@tc',
    Exchange1035Ind varchar2(10) path 'Policy/Life/LifeUSA/OLifEExtension/LifeUSAExtension/Exchange1035Ind/@tc',
    ModalPremAmt varchar2(20) path 'Policy/Life/Coverage/ModalPremAmt',
    FaceAmt varchar2(20) path 'Policy/Life/FaceAmt',
    vProductType VARCHAR2(100) path 'Policy/ProductType/@tc',
    firstname VARCHAR2(200) path 'Person/FirstName',
    LastName VARCHAR2(200) path 'Person/LastName',
    BirthDate VARCHAR2(20) PATH 'Person/BirthDate',
    Gender varchar2(10) PATH 'Person/Gender/@tc',
    TobaccoInd varchar2(5) path 'Risk/TobaccoInd/@tc',
    Employmeeid varchar2(100) path 'Employment/EmployeeID',
    Title varchar2(100) path 'Employment/Title',
    zip varchar2(100) path 'Address/Zip',
    vHoldingSysKey varchar2(100) path 'HoldingSysKey',
    Arrangement XMLTYPE PATH 'Arrangement',
    /*DSGN_OPT_AMT varchar2(100) path 'Arrangement/ArrSource[TransferAmtType/@tc=2]/TransferAmt',
    dsgn_opt_pct varchar2(100) path 'Arrangement/ArrSource[TransferAmtType/@tc=3]/TransferPct',
    ArrType VARCHAR2(20) path 'Arrangement/ArrType/@tc',
    ArrSubType VARCHAR2(20) path 'Arrangement/OLifEExtension/ArrangementExtension/ArrSubType/@tc',
    ArrStatus VARCHAR2(10) path 'Arrangement/ArrStatus/@tc',*/
    EVENT_NM VARCHAR2(1000) path 'Attachment/Description',
    AttachmentData VARCHAR2(1000) path 'Attachment/AttachmentData',
    AttachmentSource VARCHAR2(1000) path 'Attachment/AttachmentSource',
    attusercode vARCHAR2(1000) path 'Attachment/UserCode',
    vattdate VARCHAR2(20) PATH 'Attachment/DateCreated',
    vatttime VARCHAR2(20) path 'Attachment/OLifEExtension/AttachmentExtension/CreationTime'
    ) x
    LOOP
         BEGIN
              POINT 2
              <Here comes the business logic>
         END;
    END LOOP;
    Thanks & Regards,
    Edited by: LRAJESH on Feb 25, 2012 5:37 AM

  • How to query the data using control item avoiding special characters

    I had a small doubt in d2k.
    i created a emp block
    in that we r providing a control item for empno
    i am using that control item for querying emp details based on that control item value.
    if i am giving single quote in that control field it is querying for all the records in the emp block
    i am providing the where clause like this
    'empno like '||''''||:m_empno||''''
    can u pls clear this doubt for me.
    thanks in advance.

    one thing i forgot to add.
    we shouldnt use ascii values for the special characters.
    means we shouldnt use ascii values for restricting the sspecial characters.
    pls get me the reply as soon as possible
    thanq

  • How to query opening balance for all customer or Vendor for an speci. date

    Hi,
    How to query opening balance for all customer or Vendor for an specific date?
    Example:
    put any date and query will show all customer/ Vendor  that date opening/current balance.
    Regards,
    Mizan

    Hi mizan700 ,
    Try this
    SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
    T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
    FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
    INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
    WHERE T0.[DocStatus] ='O'
    AND
    (T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
    Regards:
    Balaji.S

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • How can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?

    Hello, all,
    how can I enter data in an input schedule on a member in the EPM Add-On that is not a base member?
    E.g. I want to implement a top-down-planning scenario and I have the following hierarchy:
    Europe
         Germany
         France
         UK
         Spain
         Italy
    How can I enter a value on Europe in an input schedule in order to allocate this value afterwards?
    Thanks in advance and best regards
    Gerd

    Gerd,
    It should be something like below -
    EuropeInput
    Europe
         Germany
         France
         UK
         Spain
         Italy
    EuropeInput shall be kept out of hierarchy and should be a base level member. Users will enter the numbers in this member. In your script logic, you will make use of this member to allocate the data in Bas(Europe) i.e. Germany, France, etc.
    Effectively, after allocation the same data will be rolled up to Europe.
    Many top-down planning would use such work-around as BPC doesn't allow writing to parent node.
    Regards,
    Ashish

Maybe you are looking for