Concat Function

Hello,
I built an interface to do some light ETL then export the results into a file
Here's my current interface:
Source_table, source_file, target_file
I joined the Source_table and source_file to only have match records into the result file.
On the mapping area at the target file. I've put in a condition basically says "if soure_table.field_a = 'abc' then concat(source_table.field_b with source_table_field_c)"
When I run this interface, my result file doesn't have the concatenation results. Any sugestion how to fix this is appreciated?
Thanks.

HI
I am not exactly figure out your issue but I will try to give a solution and hope it may helps you
"if soure_table.field_a = 'abc' then
source_table.field_b=source_table.field_b||' '||source_table_field_c
end if
Regards,
Phanikanth

Similar Messages

  • How to use Special Characters in CONCAT function or another form with Xquer

    Hello everyone
    I'm using PS3 OEPE within message flow (proxy)and I'm using Xquery.
    I'm using the CONCAT function, but this does not allow me to concatenate special characters not allowed, for example:
    I want to concatenate these strings:
    String1 = “<get-person><id-person&;gt;”
    String2 = “123”
    String3 = “</id-person&;gt; </get-person>”
    I want to represent characters regex. It means no XML characters
    Someone knows some way, any function that allows me to concatenate in OSB these values with Xquery?
    Edited by: chromosoma on Sep 5, 2012 5:59 PM

    Hi,
    It seems to me you're doing things in the most complicated way possible...
    Firstly, you should use codepoints-to-string not the reverse... Secondly, the function work with decimals, not hexa
    http://www.xqueryfunctions.com/xq/fn_codepoints-to-string.html
    http://www.xqueryfunctions.com/xq/fn_string-to-codepoints.html
    This works...
    concat(codepoints-to-string(38),'lt',codepoints-to-string(59),'get-person')But this also works... Note that I've inserted a space between the & and the lt so the forum formatting can show it...
    let
    $String1 := "& lt;get-person& gt;& lt;id-person& gt;",
    $String2 := "123",
    $String3 := "& lt;/id-person& gt;& lt;/get-person& gt;"
    return
         concat($String1,$String2,$String3)And, finally this also works... So what's the reason for escaping < and > with &lt and > and why codepoints?
    let
    $String1 := "<get-person><id-person>",
    $String2 := "123",
    $String3 := "</id-person></get-person>"
    return
         concat($String1,$String2,$String3)Cheers,
    Vlad

  • SQL Concat function seem not to work properly in SQL query data model. BIP 11g

    I try to use this function to show entire name CONCAT(name, ' ', surname) and it doesnt show the surname. it looks like it only tooks 2 arguments. I use it with the option "Add element by expression" within a SQL Query - Data set.
    Lucia

    i don't believe you
    please post more info, may be screen or sql or some more useful statement
    CONCAT(name, ' ', surname) and it doesnt show the surname
    may be because for some case "surname" is empty  or may be you incorrect use concat function
    one way mentioned by BluShadow is " || " operator  - http://docs.oracle.com/cd/B28359_01/server.111/b28286/operators003.htm#SQLRF51156
    and another is concat function http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions026.htm#SQLRF00619
    so for your case it can be like
    CONCAT(CONCAT(name, ' '), surname)

  • Problems with concat-function in xdofx-paragraph

    hi their,
    i have a problem with the concat-function in xdofx-paragraph.
    i fill variable with the decode-function and i will these evaluate in if-then-else-statement. it must be nested.
    now i would like to bring together element tag(field) with variable, but those not work.
    i try the simple if-statement and it works. why?
    <?variable@incontext: v_sa?><?xdofx: decode(SA, ’GS’,’Grundschule’, ’MS’,’Mittelschule’,’GYM’,’Gymnasium’, ’BS’,’Berufsschule’,’AFS’,’Förderschule’,’B2’,’2.Bildungsweg’)?><?end variable?>
    don't works
    <?xdofx:if SA and SPR then concat(SPR,string($v_sa)) else SPR end if?>
    works
    <?if: SA or SPR?><?if:SA and SPR?><?concat(SPR,string($v_sa))?><?end if?>
    can anyone help me, please
    thanks a lot for advice
    best regards
    Holger Hauschild

    I don't know if you ever resolved this, but you may just ned to change a setting on your query properties.  When data is entered into planning layouts and saved, that data is put into a "yellow" request in the underlying infocube. 
    Until the necessary volume of data is posted which causes this to change to "green", it remains yellow.  Note that this request could also be changed to green several ways.  i.e. manually, by flipping the "real-time infocube behavior" switch, etc. 
    Anyway, as long as it "yellow" your query, by default will not consider it, unless you change it's properties to tell it to consider "yellow" requests.  This can be done via RSRT and pressing the "properties" button.  Choose request status "2" and your problem should be solved

  • Using concat Function in Mapping

    Hello,
    I have a mapping where I'm using the standart concat function to concatenate the content of two queues. Every queue has normally only one entry. When both queues have one entry, it is working without any issues.
    But now my problem: First queue has one entry and second queue has only a supresser. When I want to concatenate both queues, the result is also a supresser. But I'd like to have that the result will be the entry of the first queue when second queue exists of supresser...
    How can I get this realized that the concat function is also working in this case? 
    Is there maybe a workaround?
    Thank you for your help.

    Hi Lukas
    You can add the node function MapwithDefault with default value space after the field which is having suppress value.
    Then add the output of MapwithDefault to the second input of concat function.
    This will generate the output as the value of first field.
    let me know if you have any doubts.

  • Using Concat function - in Excel Source

    Hi,
    I am using an Excel file as a source and oracle table as a target.
    In the Excel file i need to concatenate two columns and map it to the target oracle column based on a condition.
    I used the concat function in Expression Editor, but its throwing an error 'Undefined expression' as our source is not a oracle.
    What should i do to execute the excel function in ODI?
    Thanks in Advance
    Ram Mohan T.

    Hi,
    Probably, you have mistake in Excell syntax, try to concutenate columns by Oracle (set 'target' radiobutton in mapping and use '||') and we will see...

  • Issue in concat function

    Hi All,
    I have a requirement like all the input variable of BPEL Notification process have to be sent in the mail body.
    But when i use concat function I am getting error as 'Invalid XQuery Expression'.
    I have used concat like
    Concat('Hi the of the Customer you are looking for is Name:','','INPUT VARIABLE WHICH I GET', 'Age', '',''INPUT VARIABLE2 WHICH I GET')
    Can anyone say me how this can be done.
    Thanks in advance

    Hi vivek thanks for your reply.
    The example which u have given wil work for different variables. But I want to assign all the inputvariables in my Notification Process Mail body.
    Any example where concat can be used for many string variables will be of great help.
    I wil explain the scnerio
    I am getting the Customer Name, Customer ID, Customer Address.... as input to BPEL Notification process.
    I want my Notification body to look like this.
    Hi,
    The details of customer are:
    Name of the Customer : Vivek (THIS IS THE INPUT VARIABLE WHICH I GET IN BPEL PROCESS)
    Customer ID: 2334566(THIS IS THE INPUT VARIABLE WHICH I GET IN BPEL PROCESS)
    Customer Address: 47, XXXXXX, XXX street, xxxx-444444(THIS IS THE INPUT VARIABLE WHICH I GET IN BPEL PROCESS)
    what expression can i use to concat all these things. I want to do it in one expression.
    I have nearly 15 input variables which has to be send in my mail.

  • Concern on Message Mapping - Concat function

    Hello Experts,
    We have a concern in our message mapping structure. The target field is "Sold-To id" at line level and source filed is "Customer No" which appears in the header node. We are using a series of concat functions while mapping these two fields. Now,  the issue is that the second concact function's input queue does not read all the values passed from the first concat function's output queue. We have checked their respective contexts but could not find the cause of this behaviour.
    Due to this the mappiing fails and the target field is not populated with the required values.
    Kindly advice.
    Thanks in advance,
    Elizabeth Jacob.

    Hi Elizabeth,
    You have
    1 KUNNR value
    2. VTWEG values
    2  SPART values
    And you wan two output to be generated (1 for each concatenated value of KUNNR, VTWEG and SPART). Is this right??
    If yes then use the node function useoneasmany with KUNNR, so that KUNNR get repeated twice(one for each value of VTWEG and SPART)
    Your mappign shoudl be like this
    KUNNR --------------------------------|
    VTWEG (context line)----------------| useoneasmany---------------------------------------| concat -----------------------------------| concat
    VTWEG( do not change context) --|                      VTWEG( do not change context) --|      SPART do not change context) --|
    Regards
    Suraj

  • Oracle analytic concat function

    hello all does someone knows a workaround for oracle sql analytic concat function?It seems tha toracle does not supports such in a single statement.

    http://www.oracle.com/technology/oramag/oracle/06-jul/o46sql.html

  • Concatanate new line using concat function in BPEL process

    Hi,
    Anyone please tell me how can i concatenate new line at the end of a string in concat function?

    If using xsl you can use this one:
    <xsl:value-of select='concat("First Name :: ",/ns1:ProcessRequest/ns1:firstName)'/>
    <xsl:text> &hashxD; &hashxA;</xsl:text>
    <xsl:value-of select='concat("Last Name :: ",/ns1:ProcessRequest/ns1:lastName)'/>
    give # in place of hash

  • Cast and Concat functions error

    Hi
    I am getting below errors while doing cast and concat
    The error message is nQSError: 22020] Function Concat does not support non-text types.
    and my concat code is
    CAST (cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char) AS DATE )
    Error when tried it differently [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] .
    CAST (concat(cast(day(current_date) as char)||'-'||month(current_date)||'-'||cast(year(Core."Dim - Date"."Date") as char)) AS DATE )
    Please suggest.

    Hi,
    CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
    USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
    and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
    CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    Here I have taken this part of the code from above code and started testing from answers
    CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM
    CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    what I could make out is when I was casting it to date I was getting the error
    ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute:
    So When I have casted it to char and removed the year function from concatenation it worked out.
    With the same idea I have used this part of the code in my main code above but here char was not working out, so I need to use date and there were no compilation
    errors as it used to be before.
    CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1)
    USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend
    and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = CAST ( TRIM(BOTH ' ' FROM CAST ( EXTRACT( DAY FROM CURRENT_DATE )
    AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' ' FROM CAST ( EXTRACT( MONTH FROM CURRENT_DATE ) AS CHARACTER ( 30 ))) || '/' || TRIM(BOTH ' '
    FROM CAST (Core."Dim - Date"."Year" AS CHARACTER ( 30 ))) AS DATE )) ELSE 0 END
    Now when I check results in reports. I get the error ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtExecute
    The problem here happening is
    Core."Dim - Date"."Date" data type is DATETIME
    and the concat string whole date type is DATE.
    Its like datetime=date
    Since becuase of this mismatch I assume I am getting this error.
    So I thought of changing the data type of Core."Dim - Date"."Date" data type in rpd. Even though I checked out to do the changes I am unable to do though I login with
    Admin account.
    Secondly I thought of changing the concat string whole date type to DATETIME then I get the syntax error.
    Any help on this would be much appreciated.
    Thanks.
    Edited by: 949675 on May 7, 2013 5:33 AM

  • How to specify ASCII code in the delimeter of concat function

    Hi, all.
      In a graphical mapping in XI, how do we specify ASCII code
    (hexadecimal) in the delimiter of concat standard function?
      i'd like to use spaces with ASCII code(0x20) as a delimiter
    because if we just enter spaces it would be very difficult
    to identify what and how many delimiters are.
      Thanks.

    Hi,
    >> if we just enter spaces it would be very difficult
    >>to identify what and how many delimiters are.
    why dont you write a small userdefined function where you add number of spaces based on a loop.
    int totalspaces = 10;
    for(int i = 0; i<totalspaces;i++)
       a += "";
    return a;
    cheers,
    naveen

  • Concat function or equivalent for CDS view?

    Trying to create a CDS view and looking to combine multiple character fields (e.g. first_name + last_name) and am wondering if this is possible? Am on CRM NW 7.4 SP5 on HANA.
    Using the arithmetic function gives me the following.
    Data type CHAR is currently not supported in an arithmetic expression
    Looking at the official documentation here, it doesn't appear to be included?
    ABAP Keyword Documentation
    I can always create a AMDP or even a HANA native view, just wondering if anyone has come across the same issue and found a solution within CDS view?
    Thanks in advance,
    Sean.

    Hi Sean,
    there's no concatenate function as of 7.4 SP5.
    A workaround in OpenSQL (if that's the combination you use), you could use the columns of your choice in the projection list like (I use literals in the example for simplicity):
    'a' as a,
    'b' as b
    and concatenate later by means of OpenSQL:
    select a && b from <cds_view> into ….
    However, if you want to use the view in an ALV this does not help you, I know…
    Cheers,
      Jasmin

  • New line in concat function in message mapping

    Did any1 succeded adding 2 xml elemnts with LF/CR ( new line ) between them?
    so when I use content conversion to txt file it will put new line between this 2 elements?
    I tried the following delimiters
    '0x0D''0x0A'
    'nl'
    ''0x0D''''0x0A''
    nothing worked
    thx
    Shai

    Shai,
    Here is a simple udf for adding a new line between two fields. Similarly you can extend it.
    Create a "Value" UDF as name "input" and add two arguments 'a' and 'b'.
    Add this code:
    String lines;
    lines = "";
    lines = lines.concat(a + '\n' + b + '\n' );
    return lines;
    Also while testing in test tab if you dont see the new line in the ouptut then view the source of the output. There you can see the new line.
    Regards,
    ---Satish

  • BPEL 1st Scenario (Using concat function and display)

    Hi,
    I am completely new to BPEL space and i am trying to execute the 1st scenario, which is to concat the source text with some input value and print the output.
    I installed the software's mentioned in the link - https://java.net/projects/oraclesoasuite11g/pages/Home ( Please let me know if anything is missed out)
    The issue that i am facing is when i am trying to deploy the project I am getting "IntegratedWeblogicServer" option in "application server" (wizard), which in turn doesn't have "SOAServers", so i am not able to complete the wizard.
    I have seen some posts saying "connection should be set up ,with application server and integrated server", how to do that ?
    Also, please let me know how to get to the admin's page, where the input text will be filled into and is there any particular sequence in which the servers (Oracle BPEL process manager/Oracle DB/Oracle service bus/Web logic server/). I am hoping I have all the components but i am not able to configure them correctly.
    Could someone help me on this.
    Regards,
    Pallab

    Hi All,
    I am assuming there is some installation issue, as multiple components needs to be installed for this scenario. To do it correctly, I want to start afresh, I have to following software installable and below is my system details. Please guide me if anything is missed out, and how to get the "SOASERVERS"  while deploying the project(in application server).
    Also I am not getting any integration server,in [JDeveloper->view-> integration server] (seen some blog, where they are asking to configure it after configuring the application server), how to configure it , if at all it is necessary.
    1.jdevstudio11117install.exe
    2.ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip;ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip
    3.OracleXE112_Win32.zip
    4.ofm_rcu_win_11.1.1.7.0_64_disk1_1of1.zip
    5.ofm_osb_generic_11.1.1.7.0_disk1_1of1.zip
    6.wls1036_generic.jar
    Also which servers needs to be started and in which order it should be started.
    Could anyone please guide how to proceed with these installable.
    Regards,
    Pallab

Maybe you are looking for

  • Deployment of Web Filters in CE 7.1

    Hello everyone. We are trying to deploy web filters for CE7.1 & add them to the /irj by editing the web.xml files manually on the file system (E:\usr\sap\CE1\J00\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\web.xml). This used to work o

  • How to use stock bought icons

    This is probably very basic stuff, but i always found alternative ways to do it, so i never learned the "right" way. When i now buy illustrations and icons from stock agencies, i get the file i buy as a jpg file, usually containing a group of icons.

  • Problem sending email to gmail address

    My husband and I both have Blackberry Curve 8330. Our daughter has a Samsung Exclaim. We're all on the same account with Sprint. When I try to send an email to my daughter's gmail address, the message does not go through.  I get a red X next to the m

  • JTable - No column name

    I am implementing a grid structure using class JTable with 'n' number of rows and single column. The data for 'n' rows will be read from a vector. I don't want to give any column name. How should I do this? Thanks.

  • No more Notifications

    Hi, I myself and my colleagues are subscriber of the Novell Forum and enjoyed our daily digests - but 2nd or 3rd of June we all haven't received any mail from the forums. From what I can tell our GroupWise servers are not the problem... Anyone has an