Conactenating with diffrent spaces

I have a req. of conactenating vaiables with diffrent space values.
E.g. Var1, Var2 ,Var3............Var n  need to be seperated by diffrent space values.
    Like Var1  Var2         Var3..                      .. Varn
     or    Var1            Var2   Var3..           ... Varn
     or    Var1       Var2                      Var3..           ... Varn  etc.
The spaces are not unique but having diffrent lengths.
The Concatenate option with diffrent spaces doesn't work. I have checked it.
Any Ideas.

Hi,
Check the below code.
data: v_space1(1),
      v_space2(2),
      v_space3(3).
data: v_text1(10),
      v_text2(10),
      v_text3(10).
concatenate 'Hello' v_space1 '1' into v_text1
respecting blanks.
concatenate 'Hello' v_space2 '2' into v_text2
respecting blanks.
concatenate 'Hello' v_space3 '3' into v_text3
respecting blanks.
write:/ v_text1.
write:/ v_text2.
write:/ v_text3.
Regards,
Kumar Bandanadham

Similar Messages

  • Can't update a sql-table with a space

    Hello,
    In a transaktion I'm getting some Values from a SAP-ERP System via JCO.
    I update a sql-table with this values with a sql-query command.
    But sometimes the values I get from SAP-ERP are empty (space) and I'm not able to update the sql-table because of a null-value exception. (The column doesn't allow null-values). It seems that MII thinks null and space are the same.
    I tried to something like this when passing the value to the sql-query parameter but it didn't work:
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", " ")
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", " ")
    this works but I don't want to have a "_"
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", "_")
    Any suggestions?
    thank you.
    Matthias

    The problem is Oracle doesn't know the space function. But it knows a similar function: NVL --> replaces a null value with something else. So this statement works fine for me:
    update marc set
    LGort = '[Param.3]',
    dispo = '[Param.4]',
    schgt = NVL('[Param.5]', ' '),
    dismm = '[Param.6]',
    sobsl = NVL('[Param.7]',' '),
    fevor = '[Param.8]'
    where matnr = '[Param.1]' and werks = '[Param.2]'
    If Param.5 or Param.7 is null Oracle replaces it with a space in every other case it is the parameter itself.
    Christian, thank you for your hint with the space function. So I remembered the NVL-function.
    Regards
    Matthias

  • Fill with blanks(spaces) a VARCHAR2 type

    Thanks in advance,
    I have a VARCHAR2 type rtesta's var of length x(100 char)
    how i can fill(write) it without create a other varchar2 var that it'll be only filled with blanks(spaces). e.g
    rtesta := ' PC'||fil1||'xxx||fill2....
    where fil1 = say 10 spaces.. fill2 = 63 spaces and so on
    I would like something as
    rtesta := ' PC'|| RPAD(null,10)||'xxx||RPAD(null,63) ...
    but.... Oracle treats an empty string as null. And nulls are always a bit special within Oracle. Particularly, rpad('', n) and lpad('', n) returns null.
    Exists a built in for my problem?
    Thanks

    alter table your_table modify(your_column char(100));
    update your_table set your_column = ' '
      where your_clumn is null;  /* (added) But,this is no good for performance */
    alter table your_table modify(your_column varchar2(100));Exapmples.
    SQL> set null (null)
    SQL> create table test (vc varchar2(100));
    Table created.
    SQL> insert into test values ('');
    1 row created.
    SQL> insert into test values ('a');
    1 row created.
    SQL> insert into test values ('abcde');
    1 row created.
    SQL> select substr(vc,1,10) vc,length(vc) len from test;
    VC                          LEN
    (null)               (null)
    a                             1
    abcde                         5
    SQL> alter table test modify(vc char(100));
    Table altered.
    SQL> update test set vc = ' ' where vc is null;
    1 row updated.
    SQL> alter table test modify(vc varchar2(100));
    Table altered.
    SQL> select substr(vc,1,10) vc,length(vc) len from test;
    VC                          LEN
                                100
    a                           100
    abcde                       100----
    I misread OP's problem, sorry.
    Message was edited by:
    ushitaki

  • Office Web Apps Server 2013 - Word Web App - Problem with Tab space

    Hello We have Office Web Apps Server 2013 running with SharePoint 2013.  Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space.
    Has anyone noticed this?  Is this a bug?
    -thanks
    thomas
    -Tom

    Yes, currently the Word Web App does not support
    Tab Keyboard shortcut for editing document content .
    For more information, you can have a look at
    the article:
    http://office.microsoft.com/en-us/office-online-help/keyboard-shortcuts-in-word-online-HA010378332.aspx?CTT=5&origin=HA010380212
    http://social.technet.microsoft.com/Forums/en-US/3f5978d3-67a1-4c8c-981f-32493d72610b/office-web-apps-server-2013-word-web-app-problem-with-tab-space?forum=sharepointgeneral

  • Report Parameters with a space between, not working

    I have a problem with a report in SQL Server 2012 that uses cascading multi-valued parameters. I am using AdventureWorks2012DW as a sample, and all parameters work except for one with a space in this case its SalesTerritoryCountry and the parameter is 'North
    America' which has a space. How do i get it to return data? here is my Stpre procedure for you to try.
    Create Procedure dbo.uspReportParams
    @Region varchar(15),
    @Country varchar(60)
    AS
    BEGIN
    SET NOCOUNT ON
    Select st.SalesTerritoryGroup [Region], st.SalesTerritoryCountry [Country], r.BusinessType [Business Type], SUM(rs.SalesAmount) [Sales Amount]
    from DimReseller r join FactResellerSales rs on r.ResellerKey = rs.ResellerKey
    join DimDate d on rs.OrderDateKey = d.DateKey
    join DimProduct p on p.ProductKey = rs.ProductKey
    join DimSalesTerritory st on rs.SalesTerritoryKey = st.SalesTerritoryKey
    where st.SalesTerritoryGroup IN (Select [splitdata] FROM dbo.fnSplitString (@Region,', '))
    --AND st.SalesTerritoryGroup <> 'NA'
    AND st.SalesTerritoryCountry IN (Select [splitdata] FROM dbo.fnSplitString (@Country,', '))
    Group by st.SalesTerritoryGroup, st.SalesTerritoryCountry, r.BusinessType
    END
    IF i check it with other parameters it works except for North America
    EXEC dbo.uspReportParams @Region = 'Europe,Pacific,North America', @Country = 'Germany,France,United Kingdom,Australia,Canada'

    Thanxs for the reply i will explain more. The Issue is on parameter region which is 'North America', it should return data for United states and Canada.... the spaces for the SalesTerritoryCountry dont matter but for the SalesTerritoryGroup. 
    I have made another discovery which has puzzled me more: If i place paramater 'North America' as the first value when executing the procedure, everything works well but if i place it elsewher ther is a problem here is a example to show what im saying
    EXEC dbo.uspReportParams @Region = 'North America,Europe,Pacific', @Country = 'Germany,France,United Kingdom,Australia,Canada'
    The results for Region 'North America' and Countries 'United States' + 'Canada' Show 
    Its working as expected
    You're using an AND condition in the filter so it will only return the countries which are included in @Country filter as it is the lower level
    I guess may be what you want is this??
    Create Procedure dbo.uspReportParams
    @Region varchar(15),
    @Country varchar(60)
    AS
    BEGIN
    SET NOCOUNT ON
    Select st.SalesTerritoryGroup [Region], st.SalesTerritoryCountry [Country], r.BusinessType [Business Type], SUM(rs.SalesAmount) [Sales Amount]
    from DimReseller r join FactResellerSales rs on r.ResellerKey = rs.ResellerKey
    join DimDate d on rs.OrderDateKey = d.DateKey
    join DimProduct p on p.ProductKey = rs.ProductKey
    join DimSalesTerritory st on rs.SalesTerritoryKey = st.SalesTerritoryKey
    where (st.SalesTerritoryGroup IN (Select [splitdata] FROM dbo.fnSplitString (@Region,', '))
    --AND st.SalesTerritoryGroup <> 'NA'
    OR st.SalesTerritoryCountry IN (Select [splitdata] FROM dbo.fnSplitString (@Country,', ')))
    Group by st.SalesTerritoryGroup, st.SalesTerritoryCountry, r.BusinessType
    END
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • I bought a new iphone and as i was setting my apple ID account and i signed in to my account and confirmed two useres with diffrent numbers that were signed to the same apple ID and it messed up my i messege and face time. how do i fix that ?

    i bought a new iphone and as i was setting my apple ID account and i signed in to my account and confirmed two useres with diffrent numbers that were signed to the same apple ID and it messed up my i messege and face time. how do i fix that or delete one user ?

    Hello sapiii96,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    To sign out of your Apple ID
    Go to Settings > FaceTime, tap your Apple ID, and select Sign Out.
    Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out.
    Best of luck,
    Mario

  • Itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?

    itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?
    new to itunes, used windows media player before that and always ripped music directly to an external hardrive and accessed it through the player. now that i downloaded itunes it is taking from the external hardrive and copying a second file for each song onto my lap top hard drive which does not have the capacity for all my music. as itunes converts music files i want them saved back onto my external drive or another location i have space for rather than the lap top. how do i change the setting to move the itunes media folder to another location. assuming that hitting copy and past and dropping it in a random location will cause a few errors.

    When I have done this, all I did was network the two machines and copy the contents of the iTunes folder to the other machine, and that's it.
    My understanding (which may not be 100% correct) is that the one file that is absolutely necessary is iTunes Library, and that the XML file is actually a copy auto-generated from the iTunes Library, appearing in a different format only for non-iTunes apps that take advantage of the iTunes Library data.
    As far as I know, if you simply have the Library (database) file and all your original music files, iTunes on that computer should operate as it did on your old computer. I believe that the Album Artwork, Genius Data, and XML files can be regenerated from the Library file. Not sure about the Extras file.

  • Replacing inconsistant spacing with single space in a string

    is it possible to replace multiple spaces within a string with one space only. Number of spaces is different all the time.
    say one field contains strings with imbedded spaces
    I need to replace all these values so that there will be only one space between words.
    For Eg.
    Input                             Expected Result
    aaa    bbb                       aaa bbb
    ww                vv             ww vv
    ww ss      kk                    ww ss kk
    [/code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    user11253970 wrote:
    I am in Oracle 9i :( I can not use reg exp
    Assuming strings do not contain CHR(0) (character with ascii code 0):
    SQL> SELECT  'aaa          bbb  aaa bbb' str,
      2          replace(replace(replace('aaa          bbb  aaa bbb',' ',' ' || CHR(0)),CHR(0) || ' '),CHR(0)) new_str
      3    FROM  dual
      4  /
    STR                                 NEW_STR
    aaa          bbb  aaa bbb           aaa bbb aaa bbb
    SQL> SY.

  • I have 2 PC´s and both have iTunes with diffrents Songs, but only 1 iPod

    Hello ..
    My English is not so good,i learn it in school, but i hope you understand me and i get some help from you.. plZ
    MY Problem :
    I have 2 PC´s( My PC and the PC of my mom ) and every PC have iTunes with diffrents songs, because my mom dosen´t like my music =D and i don´t like her Music...
    But we only got one iPod Video....
    Now my Question :
    How to get all the Music form both iTunes on the iPod ?
    I hope you can help me and please don´t write to difficult englisch xD
    LiKE you all

    If you want to connect and use an iPod on more than one computer or with more than one library you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. The content of iTunes and the iPod are not syncronised in this mode so the two can be different. You can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library:
    Using iPod with Multiple computers
    Managing content manually on iPod
    Syncing Music to iPod
    Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod

  • Need to generate the excel file with diffrent sheets using utl_file package

    Hi,
    Sorry for previous message in which I had missed the usage of " UTL_FILE " package
    I need to generate the excel file with diffrent sheets . Currently I am generating the data in three diffrent excel files using
    " UTL_File " package and my requirement is to generate this in a single excel file with diffrent sheets.
    Please help on this
    Thanks & Regards,
    Krishna Vyavahare

    Hello 10866107,
    at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the packages behind second and fourth link support more than one worksheet.
    Regards
    Marcus

  • Indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.

    indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.
    thanks in advance!

    If you are unable to enter the passcode into your device, you will have to restore the device to circumvent that passcode.
    Is the music purchased from iTunes? If it is you can contact iTunes support and ask them to allow you to re-download the music that you purchased from iTunes.
    Also, do you sync the device regularly? When syncing an iPod Touch/iPhone a backup file is made. That backup file doesn't contain your music but it does contain your address book, application data, pictures, notes, etc. After restoring your device, you can try restoring from the last backup that was made of your device so you will not have to start over completely from scratch.
    Hope this helps!

  • Playing a DRM (FMRMS) protected .flv with a space in the filename fails on OS X

    As the subject says, when trying to play a DRM encrypted .flv with a space in the filename it fails on OS X it works on Windows and I am 99% sure it works on Linux as well.
    I changed my files to not include a space but it appears now that if there is a space in any part of the path as well it fails.
    If anyone has an idea on what to do it would be appreciated.
    I have tried to use the File.nativePath and File.url properties after confirming that File.exists returns true.
    I tried escaping the spaces manually with + and %20 but none seem to work.
    The error is that the file just doesn't seem to play.  I will update this question if I find any more information.
    Thanks
    Glen.

    As the subject says, when trying to play a DRM encrypted .flv with a space in the filename it fails on OS X it works on Windows and I am 99% sure it works on Linux as well.
    I changed my files to not include a space but it appears now that if there is a space in any part of the path as well it fails.
    If anyone has an idea on what to do it would be appreciated.
    I have tried to use the File.nativePath and File.url properties after confirming that File.exists returns true.
    I tried escaping the spaces manually with + and %20 but none seem to work.
    The error is that the file just doesn't seem to play.  I will update this question if I find any more information.
    Thanks
    Glen.

  • Firefox 3 cannot download files with white space in the filename

    When opening attachments in e-mail Firefox is unable to handle files with white space in the name. This is not the same as the white space file name truncation problem documented on this site (where file names with white space are truncated on saving.) The issue is that the browser will prompt to allow the file to be saved, but it will not prompt to open the file as an option. If I rename the file to remove white space then I do receive the "Open with..." dialog box. I verified that Firefox 2 did not have this problem and I can open attachments with white space in the file names just fine using that version of the browser (2.0.0.20).
    == This happened ==
    Every time Firefox opened
    == Upgraded to version 3

    When a user clicks on an attachment with spaces, the filename is truncated to the first whitespace. While IE, Chrome & Safari handle this, Firefox refuses to accept mime headers with unquoted filename parameters. According to Firefox's bugzilla/knowledgebase, Firefox's behavior is the correct behavior and it's a problem with most webservers or web applications. This problem can be easily corrected by surrounding the filename parameter with double quotes.
    Eg.
    Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");

  • How to replace a character in a string with blank space.

    Hi,
    How to replace a character in a string with blank space.
    Note:
    I have to change string  CL_DS_1===========CM01 to CL_DS_1               CM01.
    i.e) I have to replace '=' with ' '.
    I have already tried with <b>REPLACE ALL OCCURRENCES OF '=' IN temp_fill_string WITH ' '</b>
    Its not working.

    Hi,
    Try with this..
    call method textedit- >replace_all
      exporting
        case_sensitive_mode = case_sensitive_mode
        replace_string = replace_string
        search_string = search_string
        whole_word_mode = whole_word_mode
      changing
        counter = counter
      exceptions
        error_cntl_call_method = 1
        invalid_parameter = 2.
    <b>Parameters</b>      <b> Description</b>    <b> Possible values</b>
    case_sensitive_mode    Upper-/lowercase       false Do not observe (default value)
                                                                       true  Observe
    replace_string                Text to replace the 
                                         occurrences of
                                         SEARCH_STRING
    search_string                 Text to be replaced
    whole_word_mode          Only replace whole words   false Find whole words and                                                                               
    parts of words (default                                                                               
    value)
                                                                               true  Only find whole words
    counter                         Return value specifying how
                                        many times the search string
                                        was replaced
    Regards,
      Jayaram...

  • Why FileUtils::CopyFile doesn't work with blank space?

    Hi all,
    If I have a destination directory with blank space inside, looks like: "C:\Users\Pattrick James\Documents" for Windows or "Macintosh HD:Users:Pattrick James:Documents" for Mac.
    Then I want to copy a file to that directory, use FileUtils::CopyFile(src, des). Why it doesn't work?
    Can someone please help me to resolve this issue without change my path?

    Sorry, it works fine. It happens because the permission of the directory.

Maybe you are looking for

  • Deploy the .ear file in Oracle 10g Application server10.1.3

    Hi Friends, I have deploy the .ear file in Oracle10g Application Sever 10.1.3 through Enterprise Manager. in Progress Messages shows the application has been successfully deployed,like this when i hit the URL in Web brower, i got a HTTP 403 showing..

  • Error while Configuring IT0008 in PA 30

    Dear Gurus, I'm running Hiring Action through PA40 in IDES Server and i configured infogroup in this particular order. i.e 0000, 0002, 0001, 0006, 0007, 0008. Issue:- 1. After saving IT0002 my session is jumping to user login page and after providing

  • How to customize mode_show_about in a custom portlet?

    I have created a custom PL/SQL portlet. I have set the has_help flag to true and have created a page under the p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_HELP. When you click on the help link from the portlet header, the page that you

  • Best practice Qualifications in infotype 0024

    Hi Im looking for a smarter way for the enduser to copy or delimit qualifications in infotype 24. Copy: If a qualification gets a new proficiency from a certain date, you have to create and search for the relevant qualification. Why not a Copy button

  • My microphone disappeared in my messages on mini iPad

    Where did my microphone go when I try to use it in My Messages?