Help needed to extract Modified objects in CRM 5.0

Hello,
We are trying to find out all the modified Standard objects in CRM 5.0 Comparing with CRM 4.0. Is there any standard Function Module/Table/Report Program that can give us the details of the same.
We have tried SPAU and SPDD. These were giving give us only the modifications which we have done to either a SAP delivered object or any object that we have created.
It does not give the chages that are made from one release to the other, as in, it does not tell us which objects are modified from CRM 4.0 version to 5.0 version.
If we cannot get the changes between version directly, is there any table where the version numbers of each SAP object is maintained along with the release.
Thanks in advance.
Regards,
Uday.

you need to copy this class and make the changes..in the method.
Assign the new Z class, to the action profile.
Rgds,
Arjun

Similar Messages

  • Help need in creating DB objects programatically .

    Hi All,
    I have a case where i need to create a table in DB from ADF and need to insert/modify/delete their records in java code.
    Is that possible to create an update-able view object from java code rather going with conventional declarative steps in ADF?
    Regards,
    Suresh kumar.k

    ADF BC runtime doesn't give you any feature out for the box for creating DB objects, you may need to use standard JDBC API+ DDL. (btw, there may be design time API used by JDev for DB synch . however I'm not sure about the feasibility of using the same in your context) Next step may be building programmatic EO/VO. You can refer this blog post for the same - http://jobinesh.blogspot.com/2010/06/model-driven-approach-for-building.html

  • Help needed in Identifying dependent objects

    Hi all,
    Basically I need to identify the object related to Integration which is not there in one of our software product under development as compare to other(existing) already developed so that we can apply them in the product being developed.
    I need to find these below from few of the packages given to me
         dependent packages/functions to read and update data
    1)     Tables
    2)     Packages
    3)     Triggers
    4)     Views
    5) Jobs
    I would request you to help me in carrying out this faster, I have plsql Developer tool, how to start with so that i m not mess up with and complete it faster.
    Regards,
    Asif.

    Thankx Pierre Forstmann.
    Dear All,
    Can any one help me in identifying all dependent objects for one object.
    Will this works for me I found from the above link provided,
    as for the time being I do not have the dba priviliges...
    If I am able to get the dba prviliges will this code works for me to get the
    required information....
    Regards,
    AAK.
    SQL>
    create or replace type myScalarType as object
    ( lvl number,
    rname varchar2(30),
    rowner varchar2(30),
    rtype varchar2(30)
    Type created.
    SQL> create or replace type myTableType as table of
    myScalarType
    Type created.
    SQL>
    SQL> create or replace
    function depends( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2 default USER,
    p_lvl in number default 1 ) return myTableType
    AUTHID CURRENT_USER
    as
    l_data myTableType := myTableType();
    procedure recurse( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2,
    p_lvl in number )
    is
    begin
    if ( l_data.count > 1000 )
    then
    raise_application_error( -20001, 'probable connect by loop,
    aborting' );
    end if;
    for x in ( select /*+ first_rows */ referenced_name,
    referenced_owner,
    referenced_type
    from dba_dependencies
    where owner = p_owner
    and type = p_type
    and name = p_name )
    loop
    l_data.extend;
    l_data(l_data.count) :=
    myScalarType( p_lvl, x.referenced_name,
    x.referenced_owner, x.referenced_type );
    recurse( x.referenced_name, x.referenced_type,
    x.referenced_owner, p_lvl+1);
    end loop;
    end;
    begin
    l_data.extend;
    l_data(l_data.count) := myScalarType( 1, p_name, p_owner, p_type );
    recurse( p_name, p_type, p_owner, 2 );
    return l_data;
    end;
    Function created.
    SQL>
    SQL> set timing on
    SQL>
    SQL> select * from table(
    cast(depends('DBA_VIEWS','VIEW','SYS') as myTableType ) );
    ---select * from table(cast('USER_VIEWS') as myTableType ) );
    LVL     RNAME          ROWNER          RTYPE
    1     DBA_VIEWS     SYS               VIEW
    2     TYPED_VIEW$ SYS               TABLE
    2     USER$          SYS               TABLE
    2     VIEW$          SYS               TABLE
    2     OBJ$          SYS               TABLE
    2     SUPEROBJ$ SYS               TABLE
    2     STANDARD SYS               PACKAGE
    7 rows selected.
    Elapsed: 00:00:00.42
    SQL>
    SQL>
    SQL> drop table t;
    Table dropped.
    Elapsed: 00:00:00.13
    SQL> create table t ( x int );
    Table created.
    Elapsed: 00:00:00.03
    SQL> create or replace view v1 as select * from t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v2 as select t.x xx, v1.x yy from
    v1, t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v3 as select v2.*, t.x xxx, v1.x
    yyy from v2, v1, t;
    View created.
    Elapsed: 00:00:00.07
    SQL>
    SQL>
    SQL> select lpad(' ',lvl*2,' ') || rowner || '.' || rname ||
    '(' || rtype || ')' hierarchy
    2 from table( cast(depends('V3','VIEW') as myTableType ) );
    HIERARCHY
    OPS$TKYTE.V3(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V2(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    8 rows selected.
    Message was edited by:
    460425

  • Help: need to extract an application from oracle/apex directory

    Hi, all!
    I worked on oracle10xe and apex 1.3.1 and then messed with partition table a bit so got my windows crashed and I don't believe i'll be able to restore it.
    so what i have is an oracle directory from the long-dead windows with apex inside, and i need to extract the applications and the data i was working with somehow.
    Any thoughts?
    Does anybody knows where does oracle store all its databases and where apex keeps its applications?
    oraclexe\oradata\xe\ has some .dbf files in it, will it work if i just write them over in a newly installed oracle+apex?

    Hello,
    At this point, since you can't turn to Oracle Support (since it is XE), then I would suggest asking amongst your colleagues/friends/etc and trying to find a friendly DBA who will try and help you out for a beer or 3.
    Depending on how critical your work was, I wouldn't throw away all hope of recovering your database until you've exhausted all the options.
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • Report Script Help Needed - Data Extract

    Hi,
    I have a cube with 11 dims: Account, Period, Resource, Facility, SSSS, CCCC, Activity, Years, Version, Scenario, Charges
    I need a report script that will extract data for a certain year and scenario only. I have not written a report script in a long time and have the following thus far. However it's not extracting data that I know exists. Can anyone help? Thanks is advance. This runs but I just get a blank screen or file....
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    // This report script extracts data from cube
    "FY11"
    {DECIMAL 4}
    {NAMEWIDTH 25}
    {SUPCOMMAS}
    {SUPBRACKETS}
    {SUPPAGEHEADING}
    {NOINDENTGEN}
    {SUPMISSINGROWS}
    {SUPZEROROWS}
    {TABDELIMIT}
    {SUPFEED}
    {ROWREPEAT}
    "JAN"
    "FEB"
    "MAR"
    //"APR"
    //"MAY"
    //"JUN"
    //"JUL"
    //"AUG"
    //"SEP"
    //"OCT"
    //"NOV"
    //"DEC"
    "BUDGET"
    // This is the members of the CCCC dimension to extract
    // This is the members or the ACCOUNT dimension to extract
    !

    Hello -
    You can try/modify the code below and see if this works -
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    { SUPMISSINGROWS }
    { SUPZEROROWS }
    { SUPFEED, SUPBRACKETS, SUPCOMMAS }
    { NOINDENTGEN }
    { DECIMAL 4}
    { NAMEWIDTH 30 }
    { ROWREPEAT }
    { TABDELIMIT }
    {MISSINGTEXT "-" }
    <PAGE ("Scenario", "Resource", "Facility" ,"SSSS", "Activity", "Version", "Charges")
    "Budget"
    "Resource"
    "Facility"
    "SSSS"
    "Activity"
    "Version"
    "Charges"
    <COLUMN ("Year","Period")
    "FY11"
    "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
    <ROW ("Account", "CCCC")
    <LINK (<DESCENDANTS ("ACCOUNT") AND <LEV("ACCOUNT",0))
    <LINK (<DESCENDANTS ("RT9_CCCC") AND <LEV("CCCC",0))
    Here you may want to change teh combination in the Page dimensions for eg -
    I know for Scenario you want Budget
    But for Version should it be "Version" or may be "Working" Or "Final" or any other version dimension member ...?
    Same way modify the dimension memebres for other dimensions.
    Regards
    Edited by: Rosi on Aug 24, 2009 10:01 AM
    Edited by: Rosi on Aug 24, 2009 10:02 AM

  • Help needed in transferring IDoc from SAP CRM to XI

    Hi All,
    We are facing an issue in sending an IDoc from SAP CRM to XI system.  The IDoc is triggered and the status is showing as 03 in SAP CRM system(WE05 is used) but it is not getting replicated in XI System. This is verified by logging into XI System and cross checked the records retrieved by executing the transaction IDX5. No entry is found for this IDoc.
    In SM58 transaction, it is giving the status text as EDISDEF:Port SAPRIO segment defn E201CRMXIF_BILLI. 
    Any pointers on this issues will be very helpful. We are able to send information from XI to CRM.
    The project is an upgrade one and the IDocs are developed earlier and were working fine one week back and no changes were made recently.
    Thanks,
    Udaya

    Hi Kapil,
    Thanks a lot for your help. We need to delete and recreate Metadata. This is a typical problem that is encountered during upgrade projects.
    Thanks,
    Udaya

  • Help needed in Service Ticket view version CRM 2007

    Hi,
    We have a requirement to replace the Service Level Agreements with Location details screen (custom defined) in the Service Ticket View. I did this in 5.0 version,but couldn’t replicate it in the CRM 2007
    version.
    Here is how I proceeded in the new version.
    Instead of creating a new view, I approached the Adding required
    context node approach and populated the fields that we need.
    1. I enhanced the component ICCMP_BTCTR
    2. I added Context node BTActivityH ( I did not link it to any CutomController in the wizard, but defined dependency to Higher LevelContext node BTAdminH, with BOL relation, BTHeaderActivityExt, and
    activated the check box “Always Create Instance” and let the the wizard to finish off.
    3. Then using the UI Config tool, I copied the standard configuration to my custom config for changes, I removed all the 3 fields that are there in the standard configuration, and replaced with the attributes
    of BTActivityH using UI Config tool in the component work bench. All fields are Input ready fields (not set for Display only).
    4. When I open the Service Ticket view to access these fields, in the UI of Service Ticket, I realized that they are display only fields.
    5. Then I created the attributes, ( to access GET_I_S_*) methods of the attributes, and I externally set rv_disabled = ‘FALSE’ in the metod (say GET_I_S_CITY)
    6. Now I am able to input values for those fields, but still I am not able to save those entries that I entered in there.
    I guess I am missing some thing in the wizard, like linking custom
    controller or dependency relations.
    Is it mandatory for me to bound the context node to component
    controller Node (BTActivityH). If so how can I bound it.
    Please advice me.
    Thanks and regards,
    Sreekanth

    Hello Sreekanth,
    I think that the fields are read-only and not saved because your context node is not bound to a custom controller. (Even though your higher level node, BTAminH, is probably bound to a CuCo)
    The code to perform the CuCo binding is mostly coded in the CREATE_BTACTIVITYH (controller class->typed_context->create_btactivityh or check create_context_nodes to see how the method is called)
    like this:
      owner->do_context_node_binding( iv_controller_type = cl_bsp_wd_controller=>co_type_custom
                                      iv_name            =  <name of the CuCo>"#EC NOTEXT
                                      iv_target_node_name = '<the context node of the CuCo to bind to>'
                                      iv_node_2_bind = <your context node> ).
    Now, save yourself a headache and a lot of debugging time and just create a new context node through the wizard again, this is much easier than trying to 'fix' it yourself! Once you have created your new context node you can delete the old one by deleting the attribute in the typed_context class.
    Hope this helps!
    Reward points if useful!
    Kind regards,
    Joost

  • Help needed in playing HTML ' object ' videos with formats mov, avi, wmv...

    Hi,
    Here is where I am at this juncture...
    I have a requirement wherein I need to render an HTML text containing an '<object>' tag which embeds a video, for example:-
    <object width="320" height="240"
               data="javascript/media/ABC.wmv"
               type="application/x-mplayer2">
              <param name="url" value="javascript/media/ABC.wmv" />
    </object>
    Now I need to render this video into my Flex Web Application.
    One way to do it, as I see, is somehow extract the 'data' attribute and put it as a 'source' for spark VideoPlayer.
    Is there any better way to do this?
    Also note that, I require to render all video formats (avi, mov, wmv etc.) and not just flv or f4v. Any pointers for this would be appreciated.
    Thanks

    Not so "easy share" after all is it?
    Still Capture specs read as follows:
    Still capture
    Still format
    JPEG/EXIF v2.21
    Picture size
    12.0 MP (4000 × 3000)—4:3
    10.7 MP (4000 × 2664)—3:2
    9.0 MP (4000 × 2256)—16:9
    6.0 MP (2832 × 2128)—4:3
    3.1 MP (2048 × 1536)—4:3
    2.2 MP (1800 × 1200)—3:2
    2.1 MP (1920 × 1080)—16:9
    1.2 MP (1280 × 960)—4:3
    Compression
    JPEG/EXIF v2.21
    Color modes
    high color, natural color, low color, sepia, black and white
    Sharpness
    high, normal, low
    http://www.kodak.com/eknec/PageQuerier.jhtml?pq-path=11619&pq-locale=en_US
    Question: Are these still images jpeg or Kodak's EXIF? or are you using the camera in HD movie mode where iMovie fails to recognize the file format/s?
    If you read the system requirements for this device it clearly states X.3 or higher. However, I'm wondering if this also includes X.5.1 or not .....
    Message was edited by: SDMacuser

  • Urgent Flash help needed; Using Movie Clip Objects

    Hello,
    I am currently trying to design a small flash movie.
    I have a "Movie Clip" object (a short animation) that i wish to act like a static object until a certain frame on the main Timeline.
    Then i want it to play out, at it's own pace, just like normal, until it finishes (no looping)...
    What do i need to put into, and where do i put it?
    So in short, frame 30 of the main animation triggers the clip, whilst the main animation still runs...
    I know very, very minimal AS3... so please, can someone help me?
    A lot of solutions suggest a button, but I don't want to use a button, as it's not interactive - just a movie.
    i just want the damn movie clip to play in the damn movie when it reaches frame 30! it shouldn't be that hard..

    There is most likely no need for any code. And most likely no need for a movieclip even.
    It sounds like you would need a graphic symbol. (You can convert it in the library or you can just change the instance you have placed on stage.)
    First select the symbol on its first keyframe and on the properties panel select the looping options and tell it single frame, first 1.
    Then move along your timeline to where you want the animation to start playing. Add a keyframe. Now select Once, first 1.
    Now it will start playing, you will be able to see it play as you scrub the timeline.
    If you use movieclips and code for this, you won't be able to see them play together as you scrub the timeline.

  • Help needed in  extracting data from PCD tables

    Hi Friends
    I Have a requiremnt for creating custom portal activity report ,even though
    we have  standard report, the extraced data will be used to create bw reports later.
    my part is to find a way to extract the data from PCD tables for creating
    custom portal activity reports
    i have selected the following  tables for the data extraction
    WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON,
    WCR_USERPAGEUSAGE.
    My questions are
    1.Did i select the Exact PCD tables?
    2.Can i use UME api  for  accessing the data from those tables?
    3.can i use  the data extracted  from PCD tables in JSPdynpage  or
    webdynpro apps?
    4.can i Querry  the  PCD tables from  JSPDynpage or Webdynpro
    Please help me in finding a solution for this
    Thanks
    Ashok Battula

    Hi daniel
    Can u tell  me weather i can develop the following  custom reports from those WCR tables
         Report Type
    1     Logins
          - Unique Count
          - Total Count
          - Most Active Users (by Partner Name)
          - Most Active Users (by Contact Name)
          - Entry Point (by page name)
          - Session Time
          - Hourly Traffic Analysis
    2     Login Failures
          - Total Count
          - Count by error message
          - Credentials Entered (by user name and password)
    3     Content Views (by File Name)
          - Unique Count
          - Total Count
          - Most requested Files
          - Most requested Pages
          - File Not Found
    4     Downloads (by File Name)
          - Unique Count
          - Total Count
          - Most requested Files
          - File Not Found
    5     Portal Administration
          - Site Content (by file name)
          - Site Content (by page name)
          - Latest Content (by file name)
          - Expired Content (by file name)
          - Subscriptions Count (by file name)
    6     Login History (by Partner, Contact Name)
          - No Login
          - First Login
          - Duration between registration and first login
          - Most Recent Login
          - Average Number of Logins
    plz  help me in find ing a way
    thanks
    ashok

  • LIS help needed : SD Extraction

    Hi Gurus
    I am fairly new to SD and am looking for some help regarding LIS
    I have setup a sales process which uses Inquiries > Quotation > Sales Order > Delivery Process. The Process is running fine.
    However when I am trying to get some basic reports using the Standard Analyses for customer / material I am getting the message "No Data Exists for Chosen Selection"
    Looking through the forums i tried to use the LIS Check utility from IMG and executed it for Infostructure S016 :SIS sales activities and it gives me an error in Check units "No DDIC information for source field MCEKPO"
    Please tell me what I need to do. I am using ECC 6.0 and there is no BIW system connected to SAP system. Therefore we have to generate reports using Standard ABAP queries.
    Any help is welcome. Will definitely award points to all helpful answers
    Thanks in advance

    Hi Ravi
    Thanks for responding.
    I am aware of these option and right now I am using the standard analyses (MCTA, MCTC etc.).
    My query is what do I have to do to set up reporting using the standard SAP Analyses. I am able to do my sales transactions but am not able to see them in the analysis.
    Problem was resolved... got the response on another channel.. thanks everyone..
    Regards
    Pranav
    Message was edited by:
            Pranav Kumar

  • Help Needed on Read/Modify Line Statement

    Hi,
    I am writing a report which is having a check box as first column, followed by sales data. I am giving F4 Key to user to Select ALL the check box. I have used Modify Line to do this, but it is not working for me.
    Here is the pseudo code which i am using.
    Report <report name>.
    data cb1 value SPACE.
    Write :/ cb1 as CHECKBOX, 'X'.
    Write :/ cb1 as CHECKBOX, 'Y'.
    Write :/ cb1 as CHECKBOX, 'Z'.
    AT PF04.
       DO 3 times.
          MODIFY LINE sy-index field value cb1 from 'X'.
       ENDDO.
    This is not working and giving weird results.
    I tried the following things too.
    Trial a:
    cb1 = 'X'.
    modify line sy-index field value cb1.
    Trial b:
    modify line sy-index of current page value cb1 from 'X'.
    Trial c:
    read line sy-index....
    modify line sy-index..
    But none of them were working.
    Please let me know if my approach to select all check box is correct. Is there any alternate way to select all the checkbox in the list?..What is wrong with my modify line statement.
    Regards
    Mitesh

    Hi Anand,
    Thanks for throwing a light on the "Read Statement". This cleared up my concept of modify line too.
    When I dont use Read Line, the output will be:
    Checked X
    Checked X
    Checked X
    Let me try to answer the question as "Why it is happening".Correct me if i am wrong as i am only 15 days Old for ABAP ;-((.
    Here is how I will now defining modify line statement. Modify Line Statement modify the current line or line number n with the value of sy-lisel. With Field Addition in Modify line, you change the content of sy-lisel.
    So in our case, the sy-lisel value is (Checked,'X').
    So if we dont use read line, only first column will get updated , whereas second field will remain in the sy-lisel.
    So to get the value of other lines, we use read line. This will fill up the sy-lisel with the the line content of sy-index and so modify will work.
    So, if we are using AT LINE-SELECTION event to select line, in that case, there is no need to do a read line as sy-lisel is already in the buffer.
    Please correct me if i am wrong.
    Regards
    Mitesh

  • Help needed reg extraction

    dear gurus
    this is mr d.s.charan , i need some documents<.or step by step analasys of copa ,fisl and lo v3 update >, and in reporting regarding variables
    your help is much appreciated
    thanks in advance
    if anybody wants to forward to mail id :[email protected]
    waiting for you guys positive reply
    bye now
    shiva

    Hi Shiva,
    An application of Replacement path variable can be found here.
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Another application to get the Document Count: For example Number of Sales Orders.
    Query formula-Counter???
    Example for Replacement Path: Characteristic Variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    Variable Replacement Example
    http://help.sap.com/saphelp_nw04/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm
    Example for Replacement Path: Formula Variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/5f9ac61a205a459d0e7ef313d10321/content.htm
    Hope this helps.
    Regards
    R.Ravi

  • Help needed in extracting pipe delimited fields in a CLOB data type

    hi
    i Had a table with clob field as shown below.
    CREATE TABLE TRANSACTION_INFO
      TRASACTION_ID  CLOB,
      LOG_ID  NUMBER
    Insert into TRANSACTION_INFO
       (TRASACTION_ID, LOG_ID)
    Values
       ('354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123);
    Insert into TRANSACTION_INFO
       (TRASACTION_ID, LOG_ID)
    Values
       ('354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456);
    COMMIT;As you can see Clob field is a pipe delimited data.Now i am able to extract the first two fields using the below querry.But it may be the right solution as
    substring function fails if there is missing character in any on the fields.
    Also when there is a null value in any of the fields,how can i be able to get as null value ? Basically i want to get the values in a delimited manner.
    how can we do this ?
    Select Substr (TRASACTION_ID, 1, Instr (TRASACTION_ID, '|')-1) field1,
            Substr (TRASACTION_ID, 17, Instr (TRASACTION_ID, '|')+2) field2              
      From TRANSACTION_INFO;
    output should be like as shown
       FIELD1          FIELD2          FEILD3                 FEILD4
    354502002020910     000000610214609663                  09/27/09 08:02:37
    354599892020910     000000610214609663                  09/27/10 08:12:47Thanks
    Rede

    hi Michael
    Thanks for the solution and its my bad not mention that there is a possibility of having a null value at the start of the record also which RPLACE function no longer works for this case.
    For example
    with transaction_info (trasaction_id, log_id)
         as (
    select '354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123 from dual union all
    select '354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual union all
    select '|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual
    select trim(regexp_substr (trasaction_id, '[^|]+', 1, 1)) f1,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 2)) f2,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 3)) f3,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 4)) f4,
           trim(regexp_substr (trasaction_id, '[^|]+', 1, 5)) f5
      from (select replace (trasaction_id, '||', '| |') trasaction_id from transaction_info)
    F1                   F2                   F3                   F4                   F5                 
    354502002020910      000000610214609663                        09/27/09 08:02:37    RNEW               
    354599892020910      000000610214609663                        09/27/10 08:12:47    SOLD  
    000000610214609663                        09/27/10 08:12:47    SOLD Now the last record is wrongly created....

  • Help needed in extracting values from XML

    SAMPLE XML:
    - <Form1>
    - <Name>
    <Ttl>MR</Ttl>
    <Fore>ABC1</Fore>
    <Sur>XYZ2</Sur>
    </Name>
    - <Address>
    <Line>ADD_LINE_1</Line>
    <Line>ADD_LINE_2</Line>
    <PostCode>PST CDE</PostCode>
    </Address>
    <BirthDate>0001-01-01</BirthDate>
    - <Details>
    <TotalEarnings>1234567.00</TotalEarnings>
    <TotalDeduction>12345.00</TotalDeduction>
    </Details>
    </Form1>
    - <Form1>
    - <Name>
    <Ttl>MR</Ttl>
    <Fore>ABC2</Fore>
    <Sur>XYZ2</Sur>
    </Name>
    - <Address>
    <Line>ADD_LINE_3</Line>
    <Line>ADD_LINE_4</Line>
    <PostCode>PST CDE</PostCode>
    </Address>
    <BirthDate>0002-02-02</BirthDate>
    <Gender>female</Gender>
    - <Details>
    <TotalEarnings>12345.00</TotalEarnings>
    <TotalDeduction>123.00</TotalDeduction>
    </Details>
    </Form1>
    There can be any 'n' number of <Form1>'s in one XML.But I want to get only the details of the person whose TotalEarnings>1million. Details include
    Name->Ttl,Fore,Sur
    which in this case would be MR,ABC1,XYZ1
    Address->Line,Line,Postcode
    which in this case would be ADD_LINE_1,ADD_LINE_2,PST CDE
    Birthdate
    which in this case would be 0001-01-01
    Gender
    which in this case would be "null" as there is no Gender tag present
    Details->TotalEarnings,TotalDeduction
    which in this case would be 1234567.00,12345.00
    The technique I was using is,
    1. Convert to clob
    2. User dbms_instr find the location of <Form1> in a loop
    3. For every occurence of <Form1> I find <TotalEarnings> value and check if this is greater than 1 million.
    4. If true, I use dbms_instr to get the values of all the tags inside <Form1>
    5. The drawback of using dbms_instr is that it gets the value of first occurence of whatever sting we supply.In this case dbms_instr(xml,'<Gender>',position of Form1) will not return null whereas it will return "Female" from the next form. This is wrong as it doesnt belong to the person who earns more than a million.
    Can anyone suggest a way to fetch the values that only belong to the form of the person who earns more than a million?

    There can be any 'n' number of <Form1>'s in one
    XML.Not if you want the XML to be valid there can't. You would need a root element around all the <Form1>'s to make it valid.
    The technique I was using is,
    1. Convert to clob
    2. User dbms_instr find the location of <Form1> in a
    loop
    3. For every occurence of <Form1> I find
    <TotalEarnings> value and check if this is greater
    than 1 million.
    4. If true, I use dbms_instr to get the values of all
    the tags inside <Form1>
    5. The drawback of using dbms_instr is that it gets
    the value of first occurence of whatever sting we
    supply.In this case
    dbms_instr(xml,'<Gender>',position of Form1) will not
    return null whereas it will return "Female" from the
    next form. This is wrong as it doesnt belong to the
    person who earns more than a million.
    Can anyone suggest a way to fetch the values that
    only belong to the form of the person who earns more
    than a million?Why on earth are you using dbms_instr for this? Oracle has built in XML functionality for use against XMLTYPE data, such as the ExtractValue method and the use of XPATH expressions.
    I'd suggest you start reading some of the manuals regarding XML functionality in Oracle rather than trying to manually parse it all.

Maybe you are looking for

  • View option

    View otion of folder option is not working. I use Satellite, model no - L305-S5955. Dr. rakib

  • Warning messages back to back

    Hi Experts, I need to raise 2 messages as "Warning" in a window.I am able to raise both messages as "Error" , and when I'm giving the first message as "Error" and second as "Warning",then I can see them on the screen. But if I give first message as "

  • Configure DB connections used by Human workflow

    Hi All We are using Oracle BPEL for orchestrating a process flow; the BPEL process uses Human workflow service for assigning tasks to users and Java client code(SOAP client) is used to update tasks assigned to users.(we are not using Worklist applica

  • Call compiled LabView from Delphi

    Argh!  I've done this already, but try as I can, I can't remember how, nor can I find my simple example! I have a Delphi program that needs to communicate with my LabView app.  The LabView app will be compiled into a standalone executable using the L

  • Photoshop CS5 compatibility to Apple products and uploading program to Mac without disk

    I recently purchased a Mac Air and wanted to make sure that my version of Photoshop (CS5) was compatible to Apple products and whether it can be installed on the Mac without a disk, as we have misplaced ours. Thanks!