Concatenating Date.

Hi Jayaprasath, First concatenate date and timestamp with a space in between if both are of string datatype from source using the below.      v_concat_field=date_field|| ' ' || timestamp_field  Note: datatype of v_concat_field should be string If any of the date or timestamp field is of numberis datatype, then use to_char to convert into string before concatination like below      v_concat_field=to_char(date_field)|| ' ' || to_char(timestamp_field) Now in the output port with datetime datatype use the below logic.      o_concat_field=TO_DATE(v_concat_field,'YYYYMMDD HH24MI') Note: datatype of o_concat_field should be date Please let me know if you find any issues with the above approach. Thanks,Deeshan.  

Dear All, As per my requirement, i'm getting date and timestamp seperatly, Date as 'yyyymmdd' and time as decimal of 4 (HH24MI). I need to load the both in a single date/Time Column as 'yyyymmdd HH24MI'. please help in solving the issue. ThanksJayaprasath S

Similar Messages

  • Bursting using a Concatenated Data Source

    Greetings,
    I am trying to burst a report using a concatenated data source. I have a bursting SQL query set up that works fine, but I am unsure how to handle the "Split By" option. I have a data model that pulls data from multiple queries, like this:
    DETAILS_A
    select * from table_a
    where payee_id in (:p_payee_id)
    DETAILS_B
    select * from table_b
    where payee_id in (:p_payee_id)
    So, if I choose to "Split By" Details_A_Row/Payee_ID, then the data from Details_A is split appropriately, but the reports I generate don't split the information from Details_B properly. I end up with reports where one payee has information for another payee from the Details_B data source. How can I specify that the report should also split/filter the info from Details_B?
    To put it another way, what I'd really like to do is go through a list of parameters (payee IDs in this example) and generate a report for each parameter. Is Bursting the most effective way to do this?
    From searching the forums, it seems like I might be able to accomplish this using Data Templates as my Data Model instead of SQL Queries. Am I on the right track with that? If so, you guys have any helpful links on how to create Data Templates?
    I am using BI Publisher version 10.1.3.4
    Any help is appreciated!
    Martin

    For data template samples, check the following out and then download the zip file (you may not be able to run the reports, but you can view the code)
    http://blogs.oracle.com/xmlpublisher/2009/06/data_template_progression.html
    Thanks,
    BIPuser

  • Problem with concatenated data store and VACHAR(4000) field

    Have a concatenated data store built from 18 columns in one table. The main column for the index is a VARCHAR(4000) field. When we insert more than 3215 characters in that field the row disappers from the index, 3215 characters or less works fine.
    Anyone know why?

    hi,
    If you want to display them in an input field you will need to use expression box and use the formula as store@datastorefield.
    if you want to display in the Plain text go to the display tab in the properties of plain text and use the same formula here, in plain text you can only display the values present in the datastore.
    Regards,
    Rk.

  • Concatenating data for field assignment in Dynamic Action

    In a dynamic action I am creating a record in a custom infotype.  In one of the custom infotype fields I need to assign a value of the number 28 concatenated with the personnel number.  The line in the dynamic action is
    W P9007-Z_INS_EE_PK = '28'&Pernr but the problem is I cannot get a concatenation to work.  How do you go about concatenating data together in a field assignment?

    Hi David,
    For this, you will have to write a small routine in a program and then call it in the dynamic action. Consult your technical team on this. Get them to write a routine which would concatenate the value and pass it to field RP50D-FIELD1. You would then call the routine and default the fields as shown below:
    F ZPROGRAM(Z_CONCATENATE)
    I INS,9007,,,
    W P9007-Z_INS_EE_PK=RP50D-FIELD1
    Here, ZPROGRAM is the name of the program and Z_CONCATENATE is the routine which would contain the logic to populate field RP50D-FIELD1 with concatenated value.
    Donnie

  • How to rename a flat file concatenating date and time the file name?

    I created a package where I run a first interface that uses a flat file from a server and load into a table in Teradata.
    After using the API OdiFtpPut, I used an FTP file and send to an outfit.
    Since this procedure will operate daily, I need at the time of FTP, get the concatenation destination file name, date and time of execution.
    What is the best practice for this?

    Using OdiFtpPut in the field where it informs the destination file name, instead of putting just the file name (lpn_pln.csv), I put as follows:
    - lp_pln_+<% = odiRef.getSysDate (ddMMyyyyhhmm ")%>+. csv
    For code example, today would record the name lp_pln310120111412.csv
    Anything you can add my msn ---> aluizs @ ig. com. br (no spaces)
    Edited by: andre_l_soares on 31/01/2011 08:16

  • Insert concatenated data from Varchar2 to Clob

    Hi,
    I have a table with the following structure:
    create table logmst (logno varchar2(10), log_detail1 varchar2(4000), log_detail2(4000));
    I would like to concatenate the data from log_detail1 and log_Detail2 into a Clob datatype. So, i have created another table:
    create table test(id varchar2(10), filedesc clob default empty_clob());
    I tried:
    insert into test (id, filedesc) select logno, to_clob(log_Detail1 || log_Detail2) from logmst;
    System shows ORA-01489: result of string concatenation is too long.
    Can somebody help? Thanks in advance.

    You have to write a small procedure. You cannot achieve this using a SQL statment.
    Declare
       myClob CLOB;
       logNo logMst.logNo%type;
       col1 logmst.log_detail1%type;
       col2 logmst.log_detail2%type;
       length_col1 number;
    begin
        For rec in (select logNo, log_Detail1, log_Detail2 from logMst)
        loop
                  logNo := rec.LogNo;
                  col1 := rec.Log_Detail1;
                  col2 := rec.Log_Detail2;
                     myClob := empty_clob();
                    dbms_lob.createtemporary(myClob, TRUE);
                    length_col1 := length(col1);
                    dbms_lob.write(myClob , length_col1,1,col1);
                    dbms_lob.write(myClob , length(col2), length_col1+1,col1);
                   -- Write here SQL statemnt to write this CLOB to your table...
        end loop;
    end;Thanks,
    Dharmesh Patel

  • Concatenating data in a repeating section of a dynamic form.

    I am creating a dynamic XPD template, based on an XML file with a number of repeating sections. The issue that I am currently struggling with is the need to concatenate some fields and display them within a repeating section of the document. I can get repeating section to work and I can concatenate data and display it, but I am unable to do both at the same time.
    When I follow the JavaScript example of concatenating fields in the Dunning Notice XPD template, the data shows up in the repeating section, but it never changes - only the data from the first instance of the repeating section is displayed.
    In the example data below, I want daysArrears and level to display in the same field separated by a slash, such as 224/3
    <?xml version="1.0" encoding="UTF-8" ?>
    <transaction xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <document>
    <docNum>205500005</docNum>
    <docDate>2005-06-06</docDate>
    <dueDate>2005-06-06</dueDate>
    <daysArrears>224</daysArrears>
    <level>3</level>
    <amount>12000.00</amount>
    </document>
    <document>
    <docNum>215000004</docNum>
    <docDate>2005-07-21</docDate>
    <dueDate>2005-09-10</dueDate>
    <daysArrears>128</daysArrears>
    <level>3</level>
    <amount>1500.65</amount>
    </document>
    <document>
    <docNum>228700002</docNum>
    <docDate>2005-10-19</docDate>
    <dueDate>2005-11-03</dueDate>
    <daysArrears>74</daysArrears>
    <level>3</level>
    <amount>12000.00</amount>
    </document>
    </transaction>
    How would I go about concatenating the data and displaying it correctly? An y help would be appreciated. Thanks.

    Hi dradeke,
    Thanks for your reply, which is indeed useful as clearly Adobe have made this task easier and less obscure in CS4 by adding simple interface functionality, however I'm stuck with using CS3 for the moment.  Its not majorly a problem as the video material in question can be exported uncompressed then setup with cue points using the Flash encoder as an alternative (i.e. or even After FX CS3 also) which both provide the same features as Premiere CS4 seemingly. It is just that it would be much easier to be able to drop in simple markers whilst working with Premiere CS3, as this is what we are going to be using primarily, I just wondered if anyone knew how to invoke this in CS3 - its possible you can't, the documentation is vague at best!
    However I really appreciate your response and help, thanks 

  • Custom KFF on custom form not querying concatenated data

    Hi ,
    A custom form is created ,which has a custom KFF field(which pops up a form with segment field).Both form field and segment1-n fields are based on same table ,the KFF field is inserting data into table,but unable to query concatenaed segment data into the KFF field fnd_flex.event call are made from pre-query,post-query,pre insert,pre update and when new item instance (form level triggers).pls help
    Thanks,

    The KFF view did not get created in case of custom KFF,Is that the reason?
    Thanks,

  • Concatenating date and time and then performing time calucations on this

    Hi,
    I have complex date/time calculation to perform in QD. Scenario is as follows:
    Objective: I want to calculate the difference in hours:mm:ss between the start order time and the end order time
    1. I have two fields one date & one time for each startorder time and an endorder time.
    2. I want to combine these together to get a date & time field for both startorder and endorder
    3. I want to calculate the difference between these 2 fields (datetime-start order & datetime- end order) to find the difference in hours:mm:ss
    Question is this possible in QD if so how?
    Or if it not possible in QD then is it possible in the transformation, if so how?
    thanks.

    Hi Amir,
    In the QD it only possible to get the date difference using replacement path and time difference cannot be calculated.
    You can achieve this by writing a routine at transformations level. You need to call a function module to time difference.
    /SDF/CMO_DATETIME_DIFFERENCE
    SD_DATETIME_DIFFERENCE.
    Hope this helps.............
    Rgs,
    Ravikanth.I

  • Urgent Needed: how to append $ & % to concatenated data.

    Hi Gurus,
    I have a report with
    D1  F1  F2  CONCATED.
    A    1$  2%  (1,2)--->But should be displayed as (1$,2%).
    Please help me how to achieve this. Efforts would be marked.
    Thanks in Advance.

    You can get more info in the on-line help and shipping examples but briefly, auto-indexing is a feature of for and while loops. If you wire an array to a for loop, each element of the array enters the for loop one a time. You do not need to use the index array fucntion to access individual elements. A scalar element exiting a for loop is automatically built into an array. This is the default behavior of for loops and the optional behavior of while loops. A quick way to create an example is to drop a for loop on a block diagram. Wire some constant to the iteration terminal (i.e. 5). Put the random number generator function inside the for loop. Wire the output of that to the edge of the for loop. Right click on the output tunnel and select C
    reate Indicator. You'll see that it creates an array. If you then run the VI, the array will be populated. Auto-indexing is very effecient because the array size is allocated according to the number wired to the iteration terminal or to the size of the input array. Using a shift register and build array is less effecient becasue there's no way for LabVIEW to know the final size of the output array so additional array allocation has to be done periodically.

  • Need Help....Data Concatenation

    Hey..How are you all..?
    If someone can take a look at my requirement and spend some on it, I would really appreciate help..
    Database version - 10g
    Requirement - Need to display 'Description' inforamtion in a single/one complete line for a single record ( as shown below) which are being entered in multiple lines through screen (this column is stored in single table only).
    engine_family sequence_num Description
    09          1     Includes:
    09          2     Clock on and off the job
    09          3     Move equipment to and from work area
    09          4     Record the following
    09          5     Generator set model number
    09          6     Generator set serial number
    09          7     Engine serial number
    09          8     Hours of operation
    09          9     Load/unload tools, equipment and repair parts
    09          10     Clean up work area
    09          11     Write repair order
    09          12     Write repair procedures
    I am not sure whether we can display this data by concatenation(concat) function through sql query or any other technique..?
    Please let me know how can concatenate the description from multiple lines to one line for a single record as displayed above...also let me know if you want other inputs from me..?
    Thanks
    Mark

    Hi, Mark,
    That's called String Aggregation , and this page shows several ways to do it:
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    I think LISTAGG is the only technique that won't work in Oracle 10. (Too bad; it's the best one.)
    If the order of the concatenated data isn't important, then I recommend the user-defined aggregate function. You have to copy it from the site (about 60 lines of PL/SQL) and install it, but you only have to do that once. It's a very handy function.
    If order is important, then the SYS_CONNECT_BY_PATH technique is good.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    If the output isn't completely obvious, describe what it is. (For example, if you want to have a string with embedded newline characters, so that the one string appears on multiple lines.) It helps if you fiormat the output, and type hese 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    Edited by: Frank Kulash on Oct 13, 2010 12:56 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Retrieve of data from two columns into one column

    For eg: i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    Through a select i want the output of my data in one single
    columns, Well I can do this by using union.
    But my output should be like
    if I select by condition where A=2
    my output should be
    2
    1
    3
    7
    4
    because all these numbers are linked with 2 how do i do this
    because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
    Hope u got my point what i exactly want
    Can anyone help me it is quite urgent.
    Regards
    Vamsi Mohan

    i do not a concatenated data
    i have a data in a table with columns A & B of same size
    A B
    1 2
    2
    3 1
    4 2
    5 3
    6 5
    7 1
    8 4
    9
    10 8
    if my where condition is 'where A=2'
    my output should be
    1
    2
    3
    4
    5
    6
    8
    10
    i want my query to search as loop so that it keeps on searching
    for related data as in my case it is
    2 is linked to 1
    1 is linked to 3
    3 is linked to 4
    my query should keep on seaching for linked numbers till
    it does not find any mathing linked numbers
    and the resulted output should come in one single column

  • Creating a report having Multiple Data Models...

    Using BI publisher for Word 10.1.3.4
    I am attempting to create a template in MS Word with the report settings I have created in BI Publisher.
    I've created two data models, both referencing different tables that I will need on the report itself. The issue I have having is whenever I use the table wizard, the rowset is grayed out and only the default data model (sql query) can be used.
    I looked around and was unable to find a solution to this.

    I have done this and it worked.
    However I created an additional data model (I need 3 total) and only 2 of them are showing up.
    I tried logging in and out of BI Publisher, setting the main data model to the new one and then back to the concatenated data source and nothing seems to work.
    Whenever I got back into BI Publisher, I attempted to run the table wizard and got the following error:
    "The table wizard can't handle this data xml."
    Please advise.

  • How does the Concatenation works in DS

    Hi Firends,
    For my requirement , I have created a DS wiht the Line item table (FAGLFLEXA & BKPF) and am using a std DS 2lis_06_inv . Now in My req , i found a situation where I have to get an unique from R3 to BW which is made up of 3 fields (i.e, SRVPOS , INTROW from ESLL table & NUMKN from ESKL (i.e , ESLL-SRVPOS, ESLL-INTROW, ESKL-NUMKN). Now My question is how can I get a field with concatenated data from these 3 fields ( from 2 different tables) ?
    Do I need to enhance my Custom DS or std DS .? I tried with Custom DS using only 2 fields i.e, SRVPOS and INTROW from ESLL with matching BELNR. I found no records for this when I see in RSA3.
    If I need to enhance this with Std DS (2lis_06_inv) Where can I do this ?Is it in LBWE , do I need to write the ABAP code to get populate this unique key?
    I wrote the code like this for 2 fields concatenation.
    select single * from ESLL into I_ESLL where BELNR = l_s_ZOXS530272-BELNR.
    CONCATENATE I_ESLL-SRVPOS I_ESLL-INTROW into INVSUB.
    *.(Here I need to unclude ESKL NUMKN field as well in the concatenation)
    if sy-subrc = 0.
    modify C_t_data from l_s_ZOXS530272 index l_tabix.
    l_s_ZOXS530272-ZZINVSUB = I_ESLL-SRVPOS
    Can any one let me know ASAP what is the solution for this please.
    thanks in advance

    Just like previous iPods except it uses the lastest spec,  version 4.

  • Bursting with multiple data sources

    Hello all,
    I am working in a retail environment and we are building reports for the stores. There are several reports and they all receive the same reports. We are using BIP Entreprise with the bursting feature and it works very well.
    The problem is that there are too many reports and we would like to combine all reports of the same store within the same PDF. We use the multiple data source feature and was able to concatenate all reports together.
    Using this new report and template, we can not make the bursting functionality to work properly: the bursted report do not contain all the required report components.
    For example, I have 2 queries A and B each producing reports for 3 stores: 2, 4 and 5. Without bursting, the output is as is:
    Query A - Store 2
    Query A - Store 4
    Query A - Store 5
    Query B - Store 2
    Query B - Store 4
    Query B - Store 5
    With bursting into a file using the store number, I get the following:
    File 1 - Store 2 - Query A
    File 2 - Store 4 - Query A
    File 3 - Store 5 - Query A
    + Store 2 - Query B
    + Store 4 - Query B
    + Store 5 - Query B
    I would like to have the following output:
    File 1 - Store 2 - Query A
    + Store 2 - Query B
    File 2 - Store 4 - Query A
    + Store 4 - Query B
    File 3 - Store 5 - Query A
    + Store 5 - Query B
    The main question is: can this be done using BI Pub Enterprise? We using version 10.1.3.3.2
    If it is, can you provide me with help on how to configure either/or the requests and template to accomplish this task?
    I create an SR and Oracle Support does not have an answser and suggested that somebody in the Forum might help.
    Thanks in advance,
    Minh

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

Maybe you are looking for

  • Category for message 06356: No delivery costs can be posted in case of mult

    Hi experts! I know why the system issues message "06356: No delivery costs can be posted in case of multiple account assignment", but I need to set this message as an ERROR because it is a WARNING by default. I tried it via SPRO -> Materials Manageme

  • Recurring Instances not scheduling on its own after the SP4 installation

    Hi, We have installed the BO XI R2  SP4 2 days ago. Some of the recurring instances are not scheduling on its own. Environment : Clustered - 3 servers with CMS running on 2 servers. We did not do the install live. We disabled/stopped all the services

  • I can't install my Adobe Photoshop Elements 9

    Hi, I got a adobe Photoshop Elements 9 and a Adobe Premiere Elements 9 as a present but I can't install it. I own a Windows 7 notebook therefore I can't use the CD because my notebook doesn't have a CD-Rom Drive. Is there a way to install it without

  • I cannot play my video in the ipod

    my ipod supports videos, brand new, i downloaded a video from internet and a software to convert video to be compatible with tha i pod but it says, it does it , but when i try to put in my ipod, it would not take it because it says this cannot be pla

  • How to undo a highlight.

    I used the highlight tool in the Tools;Comment and Markup section. I need to undo the highlight, not just change the color. How do I accomplish this task? Thanks for your help!