Trying to concatenate 3 fields wiht commas and spaces

I have some simple code below but my results are not what i would expect.    i tried using separated by spaces but then it put a space between my 1st field and the comma
CONCATENATE TRAN_STRUCTURE-NACHN ','  '  ' TRAN_STRUCTURE-VORNA ' '
TRAN_STRUCTURE-MIDNM
INTO RESULT.
I want to see this.
Allen, Joe M
but i am getting this
Allen,JoeM

Hi Immich,
<b>Allen, Joe M</b>
1. For this we have to <b>write two concatenate</b> statements.
2. like this.
REPORT ABC.
DATA : F1(15) TYPE C.
DATA : F2(15) TYPE C.
DATA : F3(15) TYPE C.
DATA : STR(25) TYPE C.
F1 = 'Allen'.
F2 = 'Joe'.
F3 = 'M'.
CONCATENATE F1 ',' INTO STR.
CONCATENATE STR F2 F3 INTO STR
SEPARATED BY SPACE.
WRITE STR.
regards,
amit m.

Similar Messages

  • Removing Commas and Spaces from Field

    I have a table called TableD1 in a database with a field called "Range".
    The ranges are like 1-1000; 1001-2000; etc. up to like 1000000-200000.
    That is how they are supposed to look, they are not numeric fields, just general, containing a low, a dash and a high all in the same field.
    I just discovered that quite a few of the entries have included commas and spaces, like 1-1,000 or 100000 - 200000.
    I need to write a Query that will remove all of the commas from the data in TableD1's "Range" field, then all of the spaces.
    I imagine they are some kind of Update statements but because of the potential to blow up the whole thing, I'm reluctant to experiment.
    Does anyone know what code I should use?
    Thank you in advance for any help.
    Gee

    Making sure you've taken a backup. Pull the data into temp table and do the testing. once you satisfied with the output then do the update on the main table.
    create table #temp
    Range varchar(100)
    insert into #temp values('1-1,000'),('100000 - 200000')
    select replace(replace(Range,',',''),' ','') from #temp
    --update #temp set Range=replace(replace(Range,',',''),' ','')
    Validate the the output of the select statement.
    --Prashanth

  • Concatenate Date fields as month and year

    Hi,
      I want to concatenate the field bseg-augdt as month and year.
    And have to append as a seperate field (Fiscal month | fiscal year) in the output.
    Plz help me to overcome this issue.
    Thanks and Regards,
    Karthik
    Moderator message: very basic, please try yourself and search for information before asking.
    locked by: Thomas Zloch on Aug 4, 2010 1:22 PM

    Env : ORACLE REPORTS 9I
    I am passing 3 parameters to the report:
    Parameters are of type CHAR
    Report Parameters
    Year / Month :   2005 / AUG
    Effective Date :
    The colunm in table is eff_date
    eff_date
    01/08/2005
    02/08/2005
    03/08/2005
    15/09/2005
    17/09/2005
    18/09/2005
    29/09/2005The problem is:
    1)If I dont enter anything,I just get displayed 2 record for the above.
    It should display all records rather than 2.
    2)If I enter Effective date as 01-AUG-2005,no records are displayed.
    This is my code:
    Select col1,col2
    from   TableA
    where ( TRUNC(ch.eff_date) = nvl (:E_DATE, TRUNC(ch.eff_date) ) 
    AND     TRUNC(ch.eff_date, 'MONTH') = nvl (TO_DATE(:YR||:MTH,                                                                                                          'yyyymon') ,
                                               TRUNC(ch.eff_date) )
          )Shud i change the AND to OR?

  • Trying to create a Field Validation Expression and need help

    I have a picklist field and another field that are in question. I want to set some sort of rule that forces the second field to be populated only If specific values are selected from the picklist field.
    I was going the route of a field validation Rule, but everything i've tried so far does not produce the results i am trying to achieve.
    The first type of expression i tried was:
    ([<plProduction_Print_Account_Category_ITAG>] <> LookupValue("OCC_CUST_LOV_ACCOUNT_1", "No Production Print") AND ([<stSIC_Code_ITAG>] IS NULL))
    This is generating the field validation error message when i select any of the correct values from the picklist. the problem is still the second field, which will generate the error if a value is entered into the second field, regardless of the picklist value selected. Switching the "IS NULL" to "IS NOT NULL" only reverses the problem on the second field, causing the error to generate when the second field is updated to a NULL or blank value.
    I also tried :
    = 'No Production Print' AND [<stSIC_Code_ITAG>] IS NOT NULL
    and got similar results.
    ([<plProduction_Print_Account_Category_ITAG>] = LookupValue("OCC_CUST_LOV_ACCOUNT_1", "No Production Print"))
    Similar results as well.
    Does this need to be an IIF statement? Do I need to make this a workflow expression instead? i could really use some help as I have tried everything i can think of and admit, i'm not the expression guru!!!. Any assistance would be appreciated.
    TeknoMan

    Yes we have the same request and we used the following expression. Example we have a field "Método de pago" ( [<plMtodo_de_pago_ITAG<]), it's values are "CHEQUE and DEPOSITO" if we select DEPOSITO three more fields were requiered Route, Sucursal de banco and Clabe so we have to put this validation in the four fields including Metodo de pago.
    [<plMtodo_de_pago_ITAG>] <> "DEPOSITO" OR ([<Route>] IS NOT NULL AND [<nSucursal_de_banco_ITAG>] IS NOT NULL AND [<stCLABE_ITAG>] IS NOT NULL)
    well in the field CLABE we put the following [<plMtodo_de_pago_ITAG>] <> "DEPOSITO" OR ([<Route>] IS NOT NULL AND [<nSucursal_de_banco_ITAG>] IS NOT NULL AND [<stCLABE_ITAG>] IS NOT NULL AND Len([<stCLABE_ITAG>])=18) this was because the len of the value must be 18 characters.
    I hope this works for you
    Regards Catalina Valadez
    Edited by: CatalinaV on 12/03/2009 10:54 AM
    Edited by: CatalinaV on 12/03/2009 10:55 AM

  • Comma and space as seperators in background report ??

    Hello Experts,
    Hope I am posting in a correct group. I am having an issue when I run a report in the background. When I download the report from spool in SM37 into Excel file, the number appears for example:
    value 19,999.00$ would show 19 999,00.
    This makes it difficult to manipulate/ analysis data further.. I appreciate if anyone would share solutions on this.
    Monica

    Hello,
    Download and manipulate the same in excel,
    If you want you can put $ otherwise you can remove.
    Check for excel "Options"
    Regards,
    Ravi

  • Concatenate Two Fields Using EQL

    I am trying to concatenate two fields my company has in Endeca and am not being able to accomplish this. I have a Call_Num field and a Task_Num field. I would like to combine these fields with a hyphen in between. In the SQL queries I have written, I've been able to do this by typing: Call_Num || '-' || Task_Num. I tried this in EQL and am told that it doesn't recognize the ||. I tried using the keyword Concat (like you do in Excel) - CONCAT(Call_Num, '-', Task_Num), and it didn't recognize that either. I spoke to someone else in my company who uses Endeca and they told me that I need to convert Call_Num and Task_Num to integers (both fields are currently formatted as text - which is what I want, because Task_Num usually starts with a 0), multiply them by 1000 and then add them together. That isn't what I'm looking for either.
    I feel like I'm banging my head against a brick wall. I've been working on this simple task for about an hour now and have not met with any success.
    Any assistance you can provide would be greatly appreciated.

    EQL is for run-time querying, whereas you want the index to contain this as a concatenated property. Either generate this property as a concatenated version in your data feed to Endeca, or add a Record Manipulator to your pipeline of:
    <EXPRESSION TYPE="VOID" NAME="CREATE">
    <EXPRNODE NAME="PROP_NAME" VALUE="_YourConcatenatedAttribute"/>
    <EXPRESSION TYPE="STRING" NAME="CONCAT">
    <EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
    <EXPRNODE NAME="PROP_NAME" VALUE="Call_Num"/>
    </EXPRESSION>
    <EXPRESSION TYPE="STRING" NAME="CONST">
    <EXPRNODE NAME="VALUE" VALUE="-"/>
    </EXPRESSION>
    <EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
    <EXPRNODE NAME="PROP_NAME" VALUE="Task_Num"/>
    </EXPRESSION>
    </EXPRESSION>
    </EXPRESSION>
    Define a property in your pipeline and then map "\_YourConcatenatedAttribute" to this (the "_" prefix just reminds you that the source attribute is programmatically generated rather than being the name of a property in your source data). You can then use this concatenated property for any sorting, filtering etc. you want to do.
    Michael

  • Error in update rules when trying to add a field

    Hi Gurus,
    I would appreciate if u could help me out.
    I am trying to add the field Cumulative order quantity in sales unit ( 0CML_OR_QTY) in the update rule of 2LIS_11_VAITM. The field already exists in transfer rule and communication structure. When i am trying to add the field its giving and error message :No routine has been created for InfoObject BP:Business Partner Group (from Hierarchy) (data ield: Cumulative order quantity in sales units).
    I have tried to make the BP field as initial value. But still the same error persisted.
    Kindly let me know as to how to proceed.
    Thanks & Regards,
    Kapil

    Hi,
    Are you creating update rules for a ODS or a cube. If it is an ODS please make sure that none of your Key Fields are referring to the routine.
    Now first please add this 0CML_OR_QTY to your data target and activate it. Once you do that you will see that it will automatically come in the update rules and will be not assigned. Now once this is done you can assign the required value
    Regards,
    Pramod

  • Concatenate fields using commas

    How do I concatenate fields using proper English separators? I'm using Acrobat Pro X.
    I have fields named Field1, Field2, Field3, Field4 and Result.
    Example 1
    In Field1, I enter Apples. In Field2, Oranges. The other two fields are empty (Null).
    In the Result field it returns "Apples and Oranges."
    Example 2
    I add Grapes in Field3.
    The Result field returns, "Apples, Oranges, and Grapes."
    Example 3
    I add Pears to Field4,
    The Result should be,  "Apples, Oranges, Grapes, and Pears."
    Any help is appreciated.

    The script for this will be scaled up to ten total fields once complete and will only contain consecutively filled fields. This is what I have currently. It uses a separate field for the conjunction and obviously leaves the remaining commas and the end of the returned result.
    var a=getField(“Field1”).valueAsString
    var b=getField(“Field2”).valueAsString 
    var c=getField(“Field3”).valueAsString 
    var d=getField(“Field4”).valueAsString 
    var e=getField(“Field5”).valueAsString 
    var f=getField(“Field6”).valueAsString 
    var g=getField(“Field7”).valueAsString 
    var h=getField(“Field8”).valueAsString 
    var i=getField(“Field9”).valueAsString 
    var j=getField(“Field10”).valueAsString 
    var sep=getField(“separator”).valueAsString; 
    if(sep.length>=1) 
    {event.value=a+sep+ b+sep+ c+sep+ d+sep+ e+sep+ f+sep+ g+sep+ h+sep+ i+sep+ j+sep}
    Else event.value +””;

  • How to add comma and dollar sign that places automatically in input text field

    I have this ROI calculator which has several text input field
    on frame one with calculate and reset buttons. When a user enters
    numerical values in the text field, and jumping to the next field,
    I want the input text filed be updated with dollar sign and with
    comma.
    Next when they hit "ENTER" key or click "Calculate ROI"
    button, all the input text fields on frame 2 as a result of
    calculations be updated with dollar sign and comma. I also need
    that once the comma sign is assigned then it would not add any more
    even if user presses the button. Can someone help me in
    this?

    If you want to Set the Comma when you Switch to next Text
    Field
    Use onKillFocus / onSetFocus Functions.
    to restrict multiple comma, Before Adding comma use
    myText.text =
    myText.text.split(",").join("").split("$").join("");
    So this will give you the value without Comma and Dollar
    symbol, Now add the Comma and dollar.
    or you need to use a Flag for onChange Event.

  • I have os x 10.5.8 and noticed a menu extra that I have never seen before. Is there a way to identify it? I tried to delete it i.e. comm drag, didn't work.

    I have os x 10.5.8 and noticed a menu extra that I have never seen before. Is there a way to identify it? I tried to delete it i.e. comm + drag, didn't work.

    If you can't CMD+ drag it off, try this...
    You've probably got a couple of corrupt preference files.
    Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions...
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/<yourname>/Library/Preferences/ com.apple.systemuiserver.plist
    /Users/<yourname>/Library/Preferences/ByHost/com.apple.systemuiserver.xxx.plist
    where 'xxx' is a 12 digit (hexadecimal) numeric string.
    This will reset your Menu Bar to the default, you'll need to go through System Preferences to reset the ones you need. (If they are already checked, uncheck them first and then recheck them).
    reboot

  • When I am trying to create an organization in HRMS, and clicking on Type field, it is showing me "Frm-41830: List of values contains no entries". Please suggest me what is the solution

    When I am trying to create an organization in HRMS, and clicking on Type field, it is showing me "Frm-41830: List of values contains no entries". Please suggest me what is the solution

    Hi,
    Type is one part of Org creation....
    Optionally, select an organization type in the Type field.
    Organization types do not classify your organization, you use them for reporting purposes only. The type may identify the function an organization performs, such as Administration or Service, or the level of each organization in your enterprise, such as Division, Department or Cost Center. You create the organization types you require by entering values for the Lookup Type ORG_TYPE.
    Regards:
    Shahzad M. Saleem (mark this answer as helpful if it helps u)

  • MARA table field STAWN (Comm./imp. code EU ) is not updating in MARC table

    Dear Experts,
    From MARA table field STAWN (Comm./imp. code EU ) is not updating in MARC table field STAWN (Comm./imp. code EU ) by MM02 Transaction
    Is there any SAP standard functionality to over come above issue or needed  ABAP coding for the same ????
    Regards
    Hanumant

    Dear All,
    Thanks for your reply
    I tried to update the the field after adding plant and other detail actually that field will be gray mode (display) and cannot update
    my question i want to update MARC_STAWN field (Forign trade import) for my existing all material , those material MARA_STAWN (basic data 3 ) is also blank but system is allowing me to update in MARA_STAWN (basic data 3) but system will not update to MARC_STAWN (Forign trade import) field.
    What is the best method to Coppy all MARA Stawn fields to the MARC Stawn field.
    Regards
    Hanumant.

  • ADF 11g- Selecting Maximum value of a field on Commit Button

    Hi
    I am trying to assign a value to a field on form by selecting max(id)+1 from database table on commit button.
    It assign the value to field but try to commit before assigning value.
    code is like this:-
    public String commandButton2_action() {                  ////////////////a commit button.
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    commandButton3_action();////////////Retrieve the maximum value from database.
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    please do guide. what to do.
    Regards
    M Niaz

    Thanks,
    I know, that's why i am try to put this on save button instead on any other.
    But this is not an issue whether to use sequence or max()+1. I can use sequence instead but even then i have to get the nextvalue on form before commit.
    and i have to put that on commit button.
    Commit but try to commit the form before getting anything from DB.
    M Niaz

  • Regular Expression with comma and encapsulated charaters

    Would appreciate some help. Looking for a regular expression to remove comma's from encapsulated text as follows
    For example
    - Input
    1,"This is a string, need to remove the comma",Another text string,10
    - Required output
    1,"This is a string; need to remove the comma",Another text string,10
    Have tried to use the REGEXP_REPLACE but could not grasp the pattern matching.
    Thanks John

    John Heaton wrote:
    Thanks for the solution,this works great for a single field encapsulated by " and containing ,. I am parsing several different file definitions so it would need to cascade through the string for a undetermined number of times and replace all occurrences. Then try (performance-wise) MODEL solution:
    {code}
    with t as (
    select '1,"This is a string, need to remove the comma",Another text string,10' txt from dual union all
    select '1,"remove this comma,",Another text string,10,"remove this comma,",xxx,"remove this comma,",11' txt from dual
    select txt_original,
    txt
    from t
    model
    partition by(row_number() over(order by 1) p)
    dimension by(1 rn)
    measures(txt txt_original,txt,0 quote)
    rules
    iterate(
    1e9
    until(
    iteration_number + 1 = length(txt[1])
    quote[1] = case substr(txt[1],iteration_number + 1,1)
    when '"' then quote[1] + 1
    else quote[1]
    end,
    txt[1] = case substr(txt[1],iteration_number + 1,1)
    when ',' then case mod(quote[1],2)
    when 1 then substr(txt[1],1,iteration_number) || ';' || substr(txt[1],iteration_number + 2)
    else txt[1]
    end
    else txt[1]
    end
    TXT_ORIGINAL TXT
    1,"This is a string, need to remove the comma",Another text string,10 1,"This is a string; need to remove the comma",Another text string,10
    1,"remove this comma,",Another text string,10,"remove this comma,",xxx,"remove this comma,",11 1,"remove this comma;",Another text string,10,"remove this comma;",xxx,"remove this comma;",11
    SQL>
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with comma and point

    Hello,
    I have a problem with comma and point in a double-digit.
    I use a english driver for HM8142. When I get the values then I only get
    int-digits. How can I change "Use comma as separator" . I tried to change
    the option in LabVIEW.
    I changed it, then I got the window. "To change, restart the programm". I
    have done this. But when I have a look at the option, it is not changed.
    What can I do?
    I am not the admin on the computer.
    Martin

    Hi Martin,
    you do not have to change any system settings neither in LabVIEW nor in your windows.
    All instrument drivers should use a point as decimal separator. You can overwrite the decimal point handling in the string functions "Scan from string" and "Format into string".
    Make a right click on the function and use "Edit Scan String". In the dialog open the ring under "Selected operation", the last entry allows you to set the character for the decimal separator. This separator will be used for all the following floating point numbers.
    From your name and problem I think you are located in central europe. I do not have a german version of LV so I cannot tell you how the elements are named in german.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

Maybe you are looking for

  • Adobe Photoshop CS5 fails to launch on OS X Mavericks

    I just updated my Mac to Mavericks.  Adobe Photoshop CS5 fails to launch.  How can I update to the latest version of Adobe Photoshop?  What should I check in my configuration to get things working?           - Ken

  • Stream setup issue

    I'm trying to set up Streams between to identical Db's (but with different names). These databases are situtated on different servers. Now, I'm setting up Streams via Enterprise manager but ever time the job runs, I'm getting this error message. Any

  • Javascript to Optimise a file at 150 and Retain/Embed all the fonts

    I need a Javascript to Optimise a file at 150 and retain and embed fonts. Any Help? Acrobat version 9.

  • Uninstalling AIM from MBP and task bar!

    Hi I don't know where else to post this. I'm working on my MacBook Pro and all of the sudden I get a pop-up message from AIM (AOL Instant Messenger) that I'm logged into my account from more than 1 computer. Now that's really funny because I never lo

  • I dont want it anymore someone please help!!

    I only needed photoshop for one class last quarter and can't seem to get rid of it ): I've been paying $11/mo and I dont want to use it anymore but nobody will help me someone please help!