Multiline Data needs to show in seperate records

Dear Friend
I have a data which is stored in a field of a table. That data is multilined data.
I want to use a select statement, which will return all the data in seperate records.
because I may use any individual record from that Multilined data.
Can anyone help me fetch in my required way..................
in the below in bold i am sending the sample data of Multilined data
rgds
Mithun
V.0.1 * 28.01.1999 * PS * init
V.0.2 * 04.02.2000 * PS * changes: follow suggestions made by GL,JR,MSK
V.1.0 * 08.02.2000 * PS * correct some errors, checked DTD with produced output
                    from AE2XML
V.1.1 * 10.02.2000 * PS * Tracking events                    
V.1.2 * 01.03.2000 * PS * Added Sea, Dgs, Eqd
V.1.3 * 22.09.2000 * PS * added freight on shipment level; added optional internal RSI fields
* for carrier: ShortName, Prefix, IsMemberOfIata
V.1.3.1 * 26.09.2000 * PS * added SendersRole (export,import,agent,...)
V.1.3.2 * 26.09.2000 * PS * TDT: Air/Sea optional e.g. for bookings

SQL> drop table t;
Table dropped.
SQL> create table t
  2  (txt varchar2(4000));
Table created.
SQL> insert into t
  2  values('V.0.1 * 28.01.1999 * PS * init)
  3  V.0.2 * 04.02.2000 * PS * changes: follow suggestions made by GL,JR,MSK
  4  V.1.0 * 08.02.2000 * PS * correct some errors, checked DTD with produced output
  5  from AE2XML
  6  V.1.1 * 10.02.2000 * PS * Tracking events
  7  V.1.2 * 01.03.2000 * PS * Added Sea, Dgs, Eqd
  8  V.1.3 * 22.09.2000 * PS * added freight on shipment level; added optional internal RSI fields
  9  * for carrier: ShortName, Prefix, IsMemberOfIata
10  V.1.3.1 * 26.09.2000 * PS * added SendersRole (export,import,agent,...)
11  V.1.3.2 * 26.09.2000 * PS * TDT: Air/Sea optional e.g. for bookings
12  ');
1 row created.
SQL> commit;
Commit complete.
SQL> create or replace type TStrings as table of varchar2(4000);
  2  /
Type created.
SQL> create or replace function SamplePipe return TStrings pipelined is
  2 
  3   vc1 varchar2(4000);
  4   n number;
  5  begin
  6    for rec in (select txt from t) loop
  7     n := length(rec.txt)-length(replace(rec.txt,chr(10)));
  8     for i in 1..n loop
  9      pipe row(substr(rec.txt||chr(10),instr(rec.txt||chr(10),chr(10),1,i),
10             instr(rec.txt||chr(10),chr(10),1,i+1)-instr(rec.txt||chr(10),chr(10),1,i)));
11     end loop;
12   end loop;
13   return;
14  end;
15  /
Function created.
SQL> show errors
No errors.
SQL> select * from table(samplepipe);
COLUMN_VALUE                                                                   
V.0.2 * 04.02.2000 * PS * changes: follow suggestions made by GL,JR,MSK        
V.1.0 * 08.02.2000 * PS * correct some errors, checked DTD with produced output
from AE2XML                                                                    
V.1.1 * 10.02.2000 * PS * Tracking events                                      
COLUMN_VALUE                                                                   
V.1.2 * 01.03.2000 * PS * Added Sea, Dgs, Eqd                                  
V.1.3 * 22.09.2000 * PS * added freight on shipment level; added optional intern
al RSI fields                                                                  
* for carrier: ShortName, Prefix, IsMemberOfIata                               
COLUMN_VALUE                                                                   
V.1.3.1 * 26.09.2000 * PS * added SendersRole (export,import,agent,...)        
V.1.3.2 * 26.09.2000 * PS * TDT: Air/Sea optional e.g. for bookings            
10 rows selected.
Message was edited by:
        jeneesh
If this give you any idea, thanks to Billy...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Manufacturing Date need to show in pld

    Hi all
    Can any one tell what is the variable no of manufacturing date for pld, I need to see manufacturing date on AR invoice pld, I got batch number and expiry variable but not getting manufacturing date variable or does any one know how  can i pull the manufacturing date detail on invoice printing ??
    Thanks

    Hi
    Check Manfacture Date Field in OSRN Table.
    OSRN.[MnfDate]
    With Regards
    Balaji Sampath

  • Bex Report to show only latest record on report and then history

    Hello Gurus,
    Table 1:
    Employee
    Valid From
    Valid To
    Hours Perday
    1900
    01/01/2014
    02/28/2014
    8
    1900
    03/01/2014
    03/31/2014
    6
    1900
    04/01/2014
    12/31/9999
    4
    Table 2:
    I have above in DSO, On report I need to show the latest record without Valid From and Valid To Fields shown below.
    Employee
    Hours Perday
    1900
    4
    And when user drags Valid From and Valid To field from free charac. it should show history as in DSO. I have leveraged 0VALIDTO customer exit processing variable with variable as "Value Ranges" >= Key Date so when query is executed if date entered is 04/01/2014 it should bring last record with Hours perday=4 and if date is entered as 03/01/2014 should bring two records with hours per day 6 and 4 and so on.
    The problem on report is that the record being pulled is always latest but when Valid To and Valid From free characteristics are dragged on the report it still shows the latest record and no history. Is there a way that when key date is entered it should show latest record as per >= of that key date and when Valid from is dragged in to report it should display history prior to that key date?
    Thanks,
    Sam

    Hi Sam,
    You are almost in the right direction. A little fine tuning is required in your process
    As you are dealing with Time dependent Master data, the ideal thing to use is "Key Date" in the query. But there is a limitation here. Key Date can show only single date's relevant master data. I mean if you enter 03.01.2014, only second record would be shown. Key date cannot work on Multiple dates or ranges to fetch historical data or multiple records accordingly.
    To achieve your requirement, you should not use Key date in your query.
    I have leveraged 0VALIDTO customer exit processing variable with variable as "Value Ranges" >= Key Date
    The above idea is good. You should make Valid From as Cust exit(i_Step =2) processed and make it as User Entry enabled. So that user exit code can pick up values as per > = Valid From(User Entry Based). But this user exit will be picking historical records if user enters other than latest Valid from date. I mean no drilldown is required. You need to use Valid from in rows also, I believe.
    Try this and let me know if you want any more inputs.
    Regards,
    Suman

  • Need to show No applicable data in the report.

    Hi All,
    We ave a key figure in the selection screen. And user will enter the value. based on the input, the report has to display less than or equal to the entered value as a result in the output of the report.
    Input NIV as 67,169.48 then below results -
    If user gives input NIV as 16,544.14 , the below output is showing.
    But we need to show zero as result or no applicable data in the report. Is it possible to achieve through FORMULA.Please help on this
    Thanks.

    Hi Jalina,
    Yasemin already asked few questions.
    but this is what we may do:-
    to create a formula variable and use it for user input. use this formula variable in a formula , if your NIV kf<= formula variable, then NIV KF, else, 0.
    then make a condition on this KF, not equal to zero to suppress this record.
    regards,
    Sakthi.

  • How show the last record by date

    Hi Gurus,
    i got in the cube the next records for example:
    calday                  Material    Quantity
    01.01.2011             A                 10
    15.01.2011             A                  20
    if i present in the query these IO an KF the query will show these 2 records, now i want just show the last record by date
    calday                  Material    Quantity
    15.01.2011             A                  20
    i tried in the query with a calculate KF with exception aggregation , MAX with Reference to calday , but this still show both records... how can i do it? help gurus.

    Hello,
    If there are sales occuring for the material on two different dates and you include date in there will be always two records.
    I dont understand the need to show the last transaction. Anyways if you still need that you need to remodel the backend.
    Put a DSO on the cube with date in the data field, this will always overwrite the value for the key combination you need.
    Then you can return on this DSO.
    Regards
    Shashank

  • Need to show data related to Process order request , BOM in a smart form

    Hi,
    I need to show data related to
    •     Process order request
    •     BoM
    Now in selection screen we are entering the followings.
    Manufacturing  Plant ,MRP Controller, Production scheduler, Order type , Order , Material, Sales order, WBS Element,Release,Scheduled start, Scheduled finish ,Selection profile.
    how to get 1> Process Order number,Produced Material,Material Description,Print date,Narcotics indicator , Quantity produced , Phase number , Phase description ,Resource description,Standard value  to show in a request form.
      2> Item category ,Component code,Component description , Component quantity ,Component Unit of measure ,BoM base quantity.
    Please help me how to get those values , what should be the aaproach , how to write the select quiry.
    Thanks

    Hi
    To get BOM details, do the following:
    1. Use the material number and goto Article to BOM link table (MAST) to get STLNR (BOM).
    2. With this STLNR, goto STPO table (where STLNR is the key field).  Here you will get all the BOM details like components (IDNRK), UoM (MEINS) etc....
    Hope this helps.
    THanks
    Vijay
    <b>PLZ REWARD POINTS IF HELPFUL</b>

  • Need to show a data in weeks for stacked column

      I need to show the data broken down in weeks if you choose the start date and end date.   I have to show in a stacked column chart. I am trying to show the values if you choose for example last month i need to show it by weeks for example 
    week    user name   total approved first approved    last aprovedDate  totalitemsAdded
    week 1   XYZ                 3                10/01/2012       10/05/2012         5
    week2   XYZ                  5                 etc                      etc            
      etc
    week 3 
    Below is the code and the result  i am getting now . 
    Current Results
    UserName TotalApproved
    FirstApprovedDate LastApprovedDate
       TotalItemsAdded
    XYZ            9
               2011-11-19 16:56:49.960
         2011-11-19 18:18:20.783
                   2
    DECLARE @StartDate DATETIME
    DECLARE @EndDate DATETIME
    SET @StartDate = '10/1/2012 '
    SET @EndDate = '10/31/2012'
    ;with Items as(
           SELECT
                  UserName = Profile.Description,
                  TotalItems = COUNT(TransactionID),
                  FirstAddedDate = MIN(UTCDate),
                  LastAddedDate = MAX(UTCDate)
           FROM Transactiondatabase.dbo.transaction
                    JOIN Biography.dbo.Profile ON transaction.ProfileId = Profile.ProfileID
           WHERE 
                  Data like '%ItemAdded%'
                    AND UTCDate BETWEEN @StartDate AND DATEADD(dd,1,@EndDate)
           GROUP BY
                  Profile.Description 
    Approved as
           SELECT 
                  UserName = Profile.Description,
                  TotalApproved = COUNT(TransactionID),
                  FirstApprovedDate = MIN(UTCDate),--Demo
                  LastApprovedDate = MAX(UTCDate)                 
           FROM Transactiondatabase..transaction
                    JOIN Biography.dbo.Profile ON transaction.ProfileId = Profile.ProfileID
           WHERE 
                  Data like '%Approved%'
                    AND UTCDate BETWEEN @StartDate AND DATEADD(dd,1,@EndDate)
           GROUP BY
                    Profile.Description
    Select Distinct Approved.*, TotalItemssAdded = sum(distinct Items.TotalItems)
    from Items, Approved  
    Group by Approved.UserName, Approved.FirstApprovedDate, Approved.LastApprovedDate, Approved.TotalApproved
    using ssrs 2005 

    Hi Sunny04,
    If I understand correctly, you want to display the data by weeks in a stacked column chart. If in this case, we can add a calculated field named week to display the week name, and then group it. For more details, please see the following steps:
    Right-click the dataset to add a calculated field with the values below:
    Name: Week
    Calculated field: =DatePart(DateInterval.WeekOfYear,Fields!FirstApprovedDate.Value,0,0)
    Add Week field to category group area in a stacked column chart.
    Right-click Week field to open the Properties dialog box, modify the expression of Label to like this:
    ="week"&Fields!Week.Value
    Add TotalApproved or TotalItemsAdded field to data area in the chart.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Need to show previous 3months data

    Hi
    I need to show last 3months data in the report. Currently i am able to do it by creating 3 reporsitory variables - Last 3months,last 2months, last month
    Variable created : Select to_char(add_months(sysdate,-3),'Month'),to_char(add_months(sysdate,-2),'Month'),to_char(add_months(sysdate,-1),'Month') from dual
    With these variables i have to include filter for current year in my request in answers.But for year 2011 it will create problem as i would need data for both the years but only for previous 3mnths from sysdate.
    Appreciate valuable suggestions.

    If you are looking for last 3 months data irrespective of year i.e. last 90 days data use the following at report level
    date >= timestampadd(sql_tsi_day,-90,current_date).

  • Strange - oledb data source preview shows results, but running results in 0 records

    So I have this as a command of a OLEDB source, and the preview shows a sample result set.  Mappings are correct, builds with no errors etc.  Works fine in SSMS. However, when I run this Dataflow task in SSIS, I get NOTHING.  Huh?
    Here is the query
    DECLARE @StartTime datetime,@EndTime DATETIME, @ExecTimeMS INT
    SELECT @StartTime=GETDATE()
    DECLARE @t TABLE (tval NVARCHAR(30) )
    INSERT INTO @t SELECT TOP 10 t.control_number FROM MyBigTable t
    SELECT @EndTime=GETDATE()
    SELECT @ExecTimeMS = DATEDIFF(ms,@StartTime,@EndTime) 
    SELECT CAST('Top10LogBigTSelect' as NVARCHAR(100)) as query_name,@ExecTimeMS as exec_time_ms, GETDATE() as record_date

    Found my answer here
    http://saysmymind.wordpress.com/2013/04/11/ole-db-data-source-in-ssis-returning-no-records-when-using-table-variable/
    The catch was to use NOCOUNT

  • Master-Detail only shows the first record of the Master's data

    I have an ADF Master Table, Detail table. I use ExcuteWithParams on the Master Table. When executed from a button (Button has partial submit = true for button, Master Table has PartialTrigger on button, and Detail table has PartialTrigger on Master table and button), it works fine. However, I want to pass the parameters in pageFlowScope variables, and have the ExecuteWithParams invoked upon page load. When I try to do this, the Detail table only shows the first record of the Master's data, no mater what row is clicked on the Master table.
    Master table now has no PartialTrigger, and Detail table has PartialTrigger on Master table. In my pageDef, I used an invoke action as follows:
    <invokeAction Binds="ExecuteWithParams" id="invokeExecuteWithParams"
    Refresh="always"/>
    What am I missing? I am using verion 11.1.1.3. Any help would be much appreciated.
    Thanks,
    Jessica

    Yes, it works when I drag the data control as a master detail without filtering any data. I want the user to be able to set search criteria to filter the data in the master table (For example, only pull back data with a transaction date between :startdate and :enddate). I can get it to work if I execute from an executewithparams button on the page, but not if I want to invoke the executewithparams upon page load with the parameter set by pageflowscope variables.
    Thank you for responding.
    Jessica

  • Master data load failed due to duplicate records .

    hello friends ,
    need some help .
    I am loading the master data from soruce sys , and it is throwing error of duplicate 56 records.
    I repeated the step , but found the same error once again .
    i could not find out the duplicate record , as thr are more than 24000 records , and in this 56 are duplicate . and this duplicate also looks like same.
    when i click on error records , it is showing me the below procedure .
    maintain the attribute in Psa SCREEN .
    I could not find the duplicate records , could you please let me know how can i maintain this .
    Regards

    Hi ,
    Reload the masterdata by cheking ignoreduplicate records check box.since the master data has overwriting capability the duplicate records will be overwritten
    cheers,
    Swapna.G

  • Date fields are showing as  /  /   in DSO for blank dates or no dates

    We are loading flat file data to DSO and the date fields are showing as  /  /   in DSO for blank dates or no dates in the flat file source system.  We don't want to see this / /  and instead of this, we would want to this field in DSO to be in blank. Please help how to achieve this. Is there any way to do this transformation. If yes, then can you please provide  the sample coding.
    Advance Thanks,
    Christy

    I have added the code and data loading is successful. while DSO activation, it is failing. The error message is,
    Value '#' of characteristic 0DATE is not a number with 000008 spaces.
    It seems that we need to change the code. Can you provide me the corrected code please. Thanks.
    Christy

  • In IPhoto I changed movie dates after thumb nails were created in IMovie but the new dates are not showing up in IMovie.  Is there someway to refresh the IPhoto event in IMovie?

    Background:  I'm transferring file folders from a Visa laptop via an external hard drive to my IMac.  In the folders are photos and videos from different cameras.  SO I first tried to import to IMovie but it would not recognize any of the files.  So then I imported into IPhoto and both photos and videos were imported and I created events for each folder.  When I first opened IMovie I had to wait for it to create "thumb nails".  Then I could view the events in IMovie BUT the video clips are not together because they have vastly different dates and are mixed with videos from other events.  I looked at the dates and said I can fix that in IPhoto which i did but those new dates are not showing up in IMovie.    I think I need to somehow refresh the event data that Imovie is using but have not found how to do that in either IPhoto or IMovie. 
    I'm doing this on three events with about 100 photos and videos.  But I have many 1000s more to do so need to know how to either fix this or delete these events, reimport, change the dates, then open again in IMovie.   I'm sure that would work but I can't understand why changing the dates in IPhoto is not being reflected in IMovie.  
    Appreciate any tips or pointers.
    OBTW this is my first question as a first time Apple owner. 

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • I need the code to delete record in the database not in the form???

    I need the code to delete record in the database not in the form...
    because when i execute a form always insert the datas in the data base but i want insert value on a text file and delete in the data base the record whith this value of text file.
    i'm spanish an my english is bad sorry.
    thank, javier

    Well, I fail to understand why you want to complicate easy things, but anyway you can do that by using TEXT_IO within Forms to create text file (see Forms builder help), and UTL_FILE package to read it within Pl/Sql : you could create a stored procedure, and call it from Forms passing the file name as parameter. See UTL_FILE documentation

  • How to delete parent table data even though it has child records

    hi all,
    How to delete parent table data even though it has child records.
    ex: delete from pa_request cascade constraints;
    But this command is not working .
    Regards,
    P Prakash

    833560 wrote:
    ex: delete from pa_request cascade constraints;cascade constraints is DROP table option. It can't be used with DELETE. You need to delete child rows first or drop foreign keys and recreate them with ON DELETE CASCADE. Then:
    delete from pa_request will automatically delete child rows. However, personally I don't like ON DELETE CASCADE. You can, by mistake, delete half of your database without even realizing it.
    SY.

Maybe you are looking for

  • How to print a BLOB (image) on a PDF report using Oracle APEX Listener as Print Server

    Hi, I use APEX 4.2. I have the following query as SQL text for a Report Queries in Shared Components: select     customer_id,     cust_first_name,     cust_last_name,     cust_street_address1,     cust_street_address2,     cust_city,     cust_state,

  • How to keep file name on "Insert as new"

    If a record has a related file, the file-name is stored in a field of that record. When you open the record and choose "Insert as new" everything is copied to a new record, except this file-name. How to save this file-name too? thanx

  • When will D610 tether support be available in Lightroom?

    I was excited to hear Lightroom 5.5 has been released. Imagine my chagrin to learn, yet again, tethering for the Nikon D610 is not available in this update. When will it be available? Also, market share reports show there are more Android users than

  • MaxDB and LiveCache installation

    Hello All, Tying to install LiveCache 7.7 part SCM 5.1 = SCM 2007 I am trying to install liveCache on SuSE 10(Linux) with MaxDB. I would like to know that if I need to install MaxDB before I install the Livecache server using sapinst? Please advice!

  • Releasing locks when using "Navigate Pushbutton" in Web Interface Builder

    Hi I am creating a basic BPS application in Web Interface Builder for manual data entry into a Cube. I have a requirement for a user to navigate away from the data entry screen to a "Start Screen".  To do this, I am using the "Navigate Pushbutton" co