Space btn characters

Hi all,
             I need to print a CHAR16 variable using smartform in a way that there should be space between each character.
eg : 89007-01-004501-20-1 needs to be output as
8 9 0 0 7 - 0 1 - 0 0 4 5 0 1 - 2 0 - 1
Pls help how to do this??

hi.
just check this code.
REPORT ztn_test .
data: val(16),
      str type string,
      length type i,
      var type i value 0.
val = '321-1-12-1'.
length = strlen( val ).
BREAK-POINT.
DO length TIMES.
  cONCATENATE val+var(1)  str into str SEPARATED BY space.
   var = var + 1.
ENDDO.
write str.

Similar Messages

  • Removing spaces between characters using a loop

    How can I remove spaces between characters using a loop? I made a program that tests the validity of a social insurance number. However, I'd like to be able to remove the spaces in the input if the users sepeates their SIN using spaces. example (123 456 789 becomes 123456789)
    Thank you
    Edited by: umhodzic on Feb 10, 2008 2:43 PM

    umhodzic wrote:
    Thank you for your response. However, the procudre must be done using a loop.It doesn't have to be done using a loop, as already shown. However if you have some ignorant person telling you you have to have a loop, then here's a solution that uses a loop:String s = "123 456 789";
    while (s.contains(" ")) {
      s = s.replaceAll(" ", "");
    }

  • More space between characters in different system...

    Hi,
    I'm facing a problem with a smartform.
    For the same document, there is a difference between my development system and my quality system.
    When I print my document in the quality system there is more space between the characters of the document !
    The smartform and style are the same in both systems.
    Is there someone who can help me to solve this issue ?
    Many thanks,
    Giu

    Hi Giu,
    Are you printing to the same printer and using the same printer drivers on both systems?
    Regards,
    Nick

  • Acro 9.2 Prof. adds randomly spaces between characters when document is safed

    We encountered the problem, that the prof. 9.2 version adds randomly spaces between words and characters in a way that the text layout is unfeasible.
    The document was absolutely correct generated from Word to PDF, but after the first save in Acrobat it is corrupted.
    The real bad fact is, that is problem occurs not on all workstations. Some are working without this bad problem. OS is Win XP SP3.
    Has anyone an idea how to solve this?? In the meantime we switched back to Acro 8 on the bad workstations.
    Thanx
    Don

    Firstly, there's no such thing as Apache 9.3, there's Apache 1 (and subversions) and Apache 2 (and subversions). Your error message -
    Oracle-HTTP-Server/1.3.28Shows you're using Apache 1.3.28
    Secondly, I'm confused by your comment -
    I do not have Apache 9.3 or higher but I think oracle should offer this in its companion CDOracle does offer the Apache server, if you're saying you didn't get it from Oracle then where did your Apache server come from?
    Thirdly, I notice from your config file -
    ErrorLog "|E:\oracle\product\10.1.0\Companion\Apache\Apache\bin\rotatelogs logs/error_log 43200"That you're piping the logs through rotatelogs, are you sure the logfiles haven't just been renamed?

  • Read from Text File.vi adds spaces between characters

    I'm openning a text file in LabVIEW, and and need to parse some information from it.  However, when I open the file, there are extra spaces between the letters.  When I just open the same file with Notepad or Wordpad, the spaces are not there.  Is there a way to eliminate this problem?

    And, since after the \FF\FE, every other character is \00, you can even do a homebrew quick&dirty solution.
    Are the files always like that, or are some "normal"?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    readspecialfile.png ‏12 KB

  • Ff 4b12 no longer prints properly - adds multiple spaces between characters

    b11 worked great. printing from gmail to either my HP 1022N or to primo pdf now adds the extra spaces. IE works fine as does FF3.6.13. How do I go back to 4.b11 until this is resolved?

    Here's the ftp server link to beta 11: ftp://ftp.mozilla.org/pub/firefox/releases/4.0b11/win32/en-US/Firefox%20Setup%204.0%20Beta%2011.exe
    (For Windows)
    This is a known problem and mozilla fixed it with the latest nightly builds and the upcoming RC.

  • Receiver SFTP adapter giving spaces between characters in the Output file

    Hi PI Experts,
    My Scenario is: Paymul (EDI file ) ECC -> PI -> SFTP server.
    Source Sender File adapter able to pickup this Paymul D96A file and able to send messages to target SFTP server using SFTP receiver adapter.
    But, Generated Output file having single space between each character. I am not using any content conversion modules in Receiver SFTP adapter.
    Also not having any mappings to transform the messages. it is just pass through interface.
    I have attached example Output file. I have changed the .Dat file to .txt just to attach here.
    Could any one try to help me on this. Please let me know incase need any more details.
    Thanks,
    Govindu.

    Hi Govindu,
    Please see if the below Endcoding settings wont resolve your issue.
    File Type - Text
    File Encoding - ISO-8859-1
    Regards,
    Jannus Botha

  • Safari pdf printing problem- adding spaces and characters to doc

    when I print some pdf documents, spaces and charactors are added. the document looks fine on the screen and prints fine directly from Adobe Reader. the problem is with Safari and Adobe plugin. same results on 10.4 and 10.3 machines. do not have this problem printing from Firefox. any suggestions
    thanks, david
    G4   Mac OS X (10.4.5)  

    Hi,
    I would appreciate any comments.
    Thanks

  • How to provide space withing Characters

    We area using Reports 6i and while runing we are looking for space withing the value for example in running time reports provide the output as
    SHISHU PAUL
    but we like output as
    S H I S H U P A U L
    Thanks
    Shishu Paul

    Hello Shishu,
    If i understood you right. You have an output txt, example: SHISHU PAUL
    But you want to display it in your report as: S H I S H U P A U L
    If so, try this:
    function CF_spaceFormula return CHAR is
    start_num  number := 1;
    txt_with_space varchar(1000) := :<your_txt_column_nm>;
    begin
       for i in 1..length(:<your_txt_column_nm>) loop
              txt_with_space := substr(txt_with_space, 1, start_num)||' '||substr(txt_with_space, start_num+1,(length(txt_with_space)- start_num+1));
              start_num := start_num + 2;
       end loop;
       return(txt_with_space);
    end;-Marilyn

  • ClearScan - buggy OCR - arbitrary spaces in words

    I've got 400 pages from a document, scanned @ 600 dpi color.With Acrobat 9 I converted them to 1 PDF, internally all pages stored as JPG2000, high quality. File size ~ 350 MB.
    If I do OCR on this file (Acrobat 9 or 10) without ClearScan, everything is ok.
    If I do OCR on this file (Acrobat 9 or 10) with ClearScan, the text looks perfect. But: If I copy and paste text (to the Windows Editor), most words contain spaces, I get "Abcd ef g hijklmnop" instead of "Abcdefghijklmnop". Of course, that also means, I can not find "Abcdefghijklmnop", if I try to search for it. Hence, over 90% of the OCR result is useless - because not searchable.
    Now, for test purposes I exportet 1 page (from the original 350 MB non-OCR'd PDF) to a new PDF. I did OCR on this 1-page-file (with Acrobat 9) with ClearScan, and the above problem did not appear: No arbitrary spaces, text was ok and searchable.
    Did nobody ever watch this behaviour, although it concerns both Acrobat 9 and 10 ?

    I think I found the solution to your problem. Just save the problematic OCR Clearscan document as Text (Plain). By just doing so, Acrobat Pro corrects and eliminates all the spaces between characters. Then you only need to save again the PDF document, and you will see (even if hard to believe) that it is already fixed. At least it worked very well to me!

  • File XML Content Conversion: Problem with special characters

    Hello,
    in a file sender cc content conversion is used to transform a flat structure to XML. What we experiencecd is that the message mapping failed due to a character that was not allowed in XML:
    I was assuming that the file content conversion just creates XML messages with allowed characters. Is there any way to configure content conversion to remove control characters which are not allowed in XML? Unfortunately the sender system cannot be modified.
    Thank you.

    Hi Florian,
      Please use this UDF to remove special characters which prevent XML messages to form properly.
    public static String removeSpecialChar(String s)
              try
                   s=s.replaceAll("&","& amp ;");
                   s=s.replaceAll("<"  , "  & lt ;");
                   s=s.replaceAll(">", "& gt ;");
                   s=s.replaceAll("'", "& apos ;");
                   s=s.replaceAll("\"", "& quot ;");
              catch(Exception e)
                   e.printStackTrace();
              return s;
    Please remove spaces between characters within double quotes. I have added them because otherwise you can't see this code properly. Please check this below link , please replace the characters with proper values as the display is causing a problem here   
    http://support.microsoft.com/kb/316063
    regards
    Anupam
    Edited by: anupamsap on Jul 7, 2011 4:22 PM
    Edited by: anupamsap on Jul 7, 2011 4:23 PM

  • Replace not latin characters from file name.

    Dear friends,
    I tried a lot but even after reading the documentation about all the available CF functions I could not find a way  to accomplish this:
    As you already know from my previous post I'm trying to finish an application which manages multiple images. I have reached a really good point and I was ready to implement the solutions you suggest on this post when the client did something marvellous. He uploaded some images named "Εικόνα 123.jpg" (Image 123.jpg in English) which actually broke the Flex application that retrieves the images because the firewall does not allow high bit characters to go through. I now need to add a function that will evaluate every character in the file name individually and it will remove or replace (I do not care) all the characters that are not latin or numbers (spaces, greek characters, special characters, etc). As I've already said no known function is able to do that (as far as I know of course) and I guess that the solution could be hiding in regular expressions which is not my strong point. So I need your help here.
    Thank you in advance,
    John

    Thanks Ian,
    I cannot figure out how to use asc() function for this. I will have to run a test in every single character and replace the invalid ones but I will never now the actual string length (how many characters each image name will have) and I will  possibly end up destroying the extensions (.jpg) as well. To make it a little more complicated let me tell you that I will have to run this twice. Once for the full image path (ie d:\company\aptown\images\Εικόνα 123.jpg) in which I will have to change only the ...Εικόνα 123... part and not anything else, and once for a comma separated list of the image names (ie Εικόνα 123.jpg, Εικόνα 124.jpg, Εικόνα 125.jpg, Εικόνα 126.jpg). And don't be misleaded from the pattern. The customer may upload an image named with a complitely different way using invalid characters though, for example "Αντίγραφο της Εικόνας 123.jpg" (Copy of the image 123.jpg in English).
    Seems to be impossible ,
    I hope it is not.
    Yannis

  • Problem when printing Thai Characters in Smartform

    Hi All,
    When printing thai characters in smartform it takes more spaces between characters than required. I tried all possible font to adjust the character spacing.
    Can anyone help me out.
    Thanks,
    Khushboo Dand

    Dear Khushboo, Jag
    I have observed that tThe tiny boxes that are appearing in the Smartform text element is only occuring when you are printing a variable whose content is thai and nothing else with that. by nothing else i mean no THAI hardcoded text.
    if you try and check you will observe that when you try to print something like this in your Text element
    with your paragraph format alright/ output device and device type everythng in place
    eg:
    ของผู้มีเงินได้ &G_VAR& -
    is printing alright : content of G_VAR is thai characters
    but if you are printing just the variable
    eg:
    &G_VAR& --- it will print boxes
    to overcome this after trying no.of checks / online helps / settings etc etc which , ofcourse, did not help
    I did a lil bit trick with the system
    You can create a character format in your smartstyle with FONT : THANGSAN and maintain the COLOR as white
    now go to your text element key in a THAI character at the start or end of you variable and assign your new character format to that character. and Eureka! it will work
    eg: <CF> ข </>  &G_VAR&  - --- seen in your change editor
    where CF is the new "colorless" character format I have asked you to create.
    Thanks and Regards,
    Charu.
    Edited by: Charu Borkar on Aug 3, 2011 00.14 am

  • OIM-How can i set a password policy which does not contain any space?

    How can i set a password policy which does not contain any space?
    I put space at Characters not allowed but it is not working.
    Can anyone help me out?

    You can go to Settings>Messages and turn off Messages. Then go to Settings>General>Restrictions and turn on the the Restriction that prevent changing accounts.
    I just verified that it works.

  • ACM12c Upload Document API adds characters to documentName

    Hi,
    I managed to create a service to upload documents to ACM. This allows me to upload email attachments and body to ACM.
    This works pretty much, using the following code:
            ICaseStreamService caseStreamService = getCaseStreamService();
            caseStreamService.uploadDocument(context, caseIdentifier, docName, mimeType, inputStream, comments,
                                             permissionTag);
    However, it turns out that when I give in a docName as string like '2015-01-06-14:27:16-Mail:FW: Iets simpeler mailtje voor case  [168,1].html' somewhere in the API a character is added to the front and sometimes to the end of the document name: 'J2015-01-06-14:27:16-Mail:FW: Iets simpeler mailtje voor case [168,1].html' (note the 'J' added to the front). Every time it is a different character.
    And although I upload the message body with content/Mime-type 'text/html', when I try to download it from the case-documents, it is handled as a TXT file. When it is saved, a .txt extension is added, it should be .html.
    Anyone any ideas?
    Regards,
    Martien

    It turns out that when you use a long document name, espesially with spaces and special characters, it can happen that the documentname is prefixed.
    If you use just a relatively small document name, without spaces these characters does not show up.
    Also I found that I prefixed my document-names with a date-timestamp, with (shame) colon's (":") in the time-stamp... I removed the dashes from the date and the colons from the time.
    I used to use the email-subject from the incoming email as part of the document name. But that can contain special characters as well. Now I use a generic documentname for the emailbodies, and put the subject into the comment field.
    Now it works.

Maybe you are looking for