Problem in output file in unicode system

Hi ,
When we are downloading data from SAP to application server(Unix system)
the output xml file contains # symbol in the begining of the file. we are using
'Open data set dataset name for output in textmode encoding non unicode'.
we have upgraded from SAP 4.7 to ECC6.0 recently . please advice the solution to get rid of this # sign from output file.
thanks & Ragards,
Sarath

Use the following logic to remove #
constants:c_cr_lf(1)  type c VALUE cl_abap_char_utilities=>cr_lf.
then in open dataset after reading string from file use following statement:
replace all occurrences OF c_cr_lf in gv_string WITH ''.
Please reward if useful
Edited by: arunchandra c p on Jul 24, 2008 11:47 AM

Similar Messages

  • Unable to Open unix file in UNICODE system which created NON-UNICODE system

    Unable to Open unix file in UNICODE system which created in NON-UNICODE system
    We have two SAP systems both are ECC6.0 but System 1 is NON-Unicode and System2 is Unicode system.
    There is a common unix directory/folder for both system.
    Our requirement is to create one file on unix common folder and write the data to file from system1 .
    In system2 open the same file for appending mode to write the data .
    The file in system 1 created with below sentence.
    OPEN DATASET g_unix_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    Now I have to append the data from system 2 to same file.
    I have tried to used below statement in system 2 to open the file but sy-subrc value comes as '8'.
    1> OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING UTF-8.
    2>OPEN DATASET g_unix_file FOR APPENDING IN legacy TEXT MODE CODE PAGE
    cdp IGNORING CONVERSION ERRORS  .
    3>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING Default.
    4>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.
    Tried out all the possibilities as per F1 help given for open dataset , but still there is problem with opn file in appending as well output mode.However the file successfully open in Input mode(Read).
    Please advice suggestion to resolve this issue.
    Thanks.

    Messgae captured as 'Permission Denied". The program gets triggered with system user Id PPID.
    How to check the security access of the User ID.

  • Problem in output file generation in AL11 tcode

    Hi experts,
                     I am doing one proxy to file scenario.file to be generated as a fixed length format .when i run the scenario, i am getting all the values in output payload correctly in Sxmb_moni and file is also created.But when i scroll upto last to the file generated in ALL11 directory. I am not getting whole values that generated in output payload.In my case my last value is generating in output payload but i am getting trimmed value in file generated in al11 directory.when i save this text file also in local system , i am again only getting trimmed values as seen in All11 directory.when i tried with changing any field length value before that last field with small length(size)value.I am able to see the whole output payload value in file also while scrolling in the file generated in al11 directory

    >
    deepak jaiswal wrote:
    > Hi,
    >
    > I summed the fixed length of all fields and it's sum comes 515. But it displays me upto length 514 values in file generated in al11 only.
    >
    > Please help me to reslove this issue.
    >
    > Deepak jaiswal
    Since in AL11 you can have only 256 char in a row, so I hope you will be getting 3 rows in your case. Correct??
    First row 256
    2nd   row 256
    3rd   row   1
    Total     513
    So out will be 513 which is correct because from first 2 rows it has truncated 1 char from both rows. Please check your output length again to confirm.
    So it is not a problem neither your's nor AL11's. When you write your file at legacy system then it will show the correct data or use FTP adapter and write the file on your local machine to see all the char.
    I hope this solves your problem.

  • Reading TemSe files in unicode system showing greek letters

    Hi Gurus,
    I am facing issue with the newly converted unicode (cp 4102) spool files. I am using the standard functions RSTS_OPEN_RLC , RSTS_READ and RSTS_CLOSE to read TemSe files and create output files on application server using OPEN DATASET and TRANSFER.
    After conversion to unicode, these function calls are returning some greek characters with size of the itab doubled (and that is due to double-byte UTF-16 charcter set) .
    The program generates
    Runtime Error          CONVT_CODEPAGE
    Except.                CX_SY_CONVERSION_CODEPAGE
    " While a text was being converted from code page '4102' to '1100', on
    the following occurred:
    - an character was discovered that could not be represented in one o
    the two code pages;
    - the system established that this conversion is not supported."
    the statement
    TRANSFER TEMSE_DATA TO ACT_FILE
    generates this error.
    Can someone tell me what is missing ?
    TIA
    Wasim

    The extra characters are pasted below:
    ㄀  㤀㄀    ㈀㈀㄀㐀㄀ ㈀㜀㐀㐀㐀  㤀 ㈀ 㘀 㤀㈀ 圀 㤀㐀㄀ ㄀唀⸀匀⸀ 䈀䄀一䬀
    These kind of characters are also visible in SP11 contents for spool files.
    Again the question: which font to you use to display in your SAPGUI?
    The spool files are generated through language EN and should not show any non-english characters.
    That doesn´t tell anything. One advantage of Unicode is that you can enter, display and modify all languages/characters with an English logon.
    Another question: What technology is generating those spool files? Sapscript? Smartforms? Self written program?
    Markus

  • Error message when publishing and problems opening output file

    I have 5 projects linked together. When I publish one, I get a message that the files listed below are linked to the open project, and one or more of these projects may require exporting. I have tried to open these files and choose File | Export | Project to | but the options in the list (Flash 8 and Flash CS3) are both grayed out--on every one of these files. I'm publishing to Flash 9.
    I didn't think much about this message until a few reviewers said they can't open the project, or when they do, they don't see my playbar on the skin.
    One more thing--when an IT person was trying to help one reviewer open the output file, the IT person said "Oh, there's a problem with the code in line 25." I guess that's the html code? I'm not a programmer, but I can look at html code. What should I be seeing there in line 25?
    Is their problem opening the output file(s) related to my message about possibly needing to export files? Why might they be having problems getting the output file to open?
    Thanks for any insights you can provide!
    SAM

    Hi Sam
    It depends on a number of things. Are you certain you uploaded all the files involved? If not, there will be problems.
    The message about the linked files is quite simply advising you that you have links from that particular movie that will expect to find the files being linked to.
    If a person isn't seeing playback controls and you have included them, it's likely you haven't provided the correct link for them to open and play the file. Typically you provide a link to the HTML page Captivate creates. As long as all the output files are in the same place on the server, you should be good to go.
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Problem with FM NAMETAB_GET in Unicode system

    Hi everyone,
    I'm working in a landscape that has a non-unicode development, non-unicode testing, unicode testing and non-unicode production. The intention is to have a unicode production in the future.
    I have an application that has been developed to visualize IDocs so that end users will use this application instead of WE02, WE05, etc (don't know why and this can't be changed). The thing is that this application uses FM NAMETAB_GET to get the fields of the segment, the dictionary length and the offset in order to parse the IDoc.
    In non-unicode systems it works fine, but after testing in the unicode system, we found out that it wasn't parsing right, and the problem is that FM NAMETAB_GET is doubling the length of the fields (I guess because Unicode chars need 2 bytes). So the length and offset are wrong and my segment is parsed incorrectly. Does anyone know how to solve this? Is it anyway to tell this FM to work IN CHARACTER MODE? Remember that I can't divide the lenght by 2 because I have some non-unicode systems in the landscape.
    Best regards and thank you!
    Pablo

    Problem solved, I will directly use FM DDIF_NAMETAB_GET which gives me the desired data in DFIES_TAB: Thanks

  • GUI_DOWNLOAD PDF File in Unicode System

    Hi Team.
    We are Upgrade to ECC 6.0 with Unicode.
    We are reading a PDF File from Unix directory and use the GUI_DOWNLOAD function to the user can download the file.
    Original we have a  WS_DOWLOAD function and all right.
    But with this function the file is incorrect.
    This is the right File
    %PDF-1.3%âãÏÓ1 0 obj<</Producer(htmldoc 1.8.18 Copyright 1997-2002 Easy Software Products, All Rights Reserved.)/CreationDate(D:20080814090000-0600)>>endobj 2 0 Obj<</Type/Encoding/Differences[ .......
    And in SAP the File Down with this format:
    % P D F - 1 . 3
    % â ã Ï Ó
    1   0   o b j < < / P r o d u c e r ( h t m l d o c   1 . 8 . 1 8   C o p y r i g h t   1 9 9 7 - 2 0 0 2   E a s y   S o f t w a r e   P r o d u c t s ,   A l l   R i g h t s   R e s e r v e d . ) / C r e a t i o n D a t e ( D : 2 0 0 8 0 8 1 4 0 9 0 0 0 0 - 0 6 0 0 ) > > e n d o b j
    2   0   o b j < < / T y p e / E n c o d i n g / D i f f e r e n c e s [   3 2 / s p a c e / e x c l a m / q u o t e d b l / n u m b e r s i g n / d o l l a r / p e r c e n t / a m p e r s a n d / q u o t e s i n g l e / p a r e n l e f t / p a r e n r i g h t / a s t e r i s k / p l u s / c o m m a / m i n u s / p e r i o d / s l a s h / z e r o / o n e / t w o / t h r e e / f o u r / f i v e / s i x / s e v e n / e i g h t / n i n e / c
    Any body have a Idea of this problem.
    Thanks
    We try change the table to Binary Mode, and the problem continue

    The problem continue. Our system is SAP ECC 6.0 with UNICODE.
    Ath the moment I'm test with character table and HEX table and the File download to the local PC with errors
    % P D F - 1 . 3
    % â ã Ï Ó
    1   0   o b j < < / P r o d u c e r ( h t m l d o c   1 . 8 . 1 8   C o p y r i g h t   1 9 9 7 - 2 0 0 2   E a s y   S o f t w a r e   P r o d u c t s ,   A l l   R i g h t s   R e s e r v e d . ) / C r e a t i o n D a t e ( D : 2 0 0 8 0 8 1 4 0 9 0 0 0 0 - 0 6 0 0 ) > > e n d o b j
    2   0   o b j < < / T y p e / E n c o d i n g / D i f f e r e n c e s [   3 2 / s p a c e / e x c l a m / q u o t e d b l / n u m b e r s i g n / d o l l a r / p e r c e n t / a m p e r s a n d / q u o t e s i n g l e / p a r e n l e f t / p a r e n r i g h t / a s t e r i s k / p l u s / c o m m a / m i n u s / p e r i o d / s l a s h / z e r o / o n e / t w o / t h r e e / f o u r / f i v e / s i x / s e v e n / e i g h t / n i n e / c o l o n / s e m i c o l o n / l e s s / e q u a l / g r
    The file download  in Binary mode. But continue add a blank character before each character.
    Thanks team

  • RFUMSV00 (Tax report) wrong generation of DME file in Unicode system

    Hello gurus,
    I've a problem running the program RFUMSV00 (Advance Return for Tax on Sales/Purchases) transaction S_ALR_87012357 when "Create DME file" check box is selected and a format tree and a file name are specified.
    On 4.7 it was working properly but now on ECC6.0, that is unicode compliant, does not work correctly because each char of each field on the downloaded table into Unix directory has preceeded by an hash (#).
    So 1234 becomes #1#2#3#4...
    The problem seems to be related to codepages and I found in debug that the RFUMSV00 program calls from the include I_RFUMS_DME_FORMS the following routine at line 119:  PERFORM write_file_to_system USING lt_dme_file.
    This form contains a call to the following function:
        CALL FUNCTION 'FI_PAYM_FILE_OPEN'      
                  EXPORTING
                  i_temse_name = par_tems
                  i_file_name  = l_file_name.
    without specifying the codepage as further parameter so the function open the dataset for output in binary mode (and here the problem) because i_codepage is initial
    Pls see below.
        IF i_codepage IS INITIAL.
          OPEN DATASET i_file_name FOR OUTPUT   "Open File to write
                                   IN BINARY MODE.
        ELSEIF i_codepage = '4110' AND
               cl_abap_char_utilities=>charsize > 1. " UTF-8 and Unicode
          OPEN DATASET i_file_name IN TEXT MODE FOR OUTPUT
                                           ENCODING DEFAULT.
        ELSEIF i_codepage = '4102' OR i_codepage = '4103' OR i_codepage = '4110'.
          OPEN DATASET i_file_name FOR OUTPUT
                                   IN BINARY MODE.
        ELSE.
          OPEN DATASET i_file_name FOR OUTPUT   "Open File to write
                                   IN LEGACY BINARY MODE
                                   CODE PAGE i_codepage
                                   IGNORING CONVERSION ERRORS.
    Putting '4110' on i_codepage all is working magically perfect.
    Does anybody know where set the code page (4110) or how to solve this problem ?
    Thanks a lot in advance & best regards
    Tony

    Hello Rob,
    thanks for your reply.
    Yes I did a check of the OSS notes and I found that OSS 1365764  (Pls see below) describes exactly the problem I have but it is relevant only for payments and DME files created with this purpose.
    Also the DCP parameter (that has to be specified at user level) is only relevant for RFFO* programs.
    Note 1365764 - Codepage of DME file
    https://service.sap.com/sap/support/notes/1365764
    Also the two following notes
    Note 911190 - PMW: Entering the code page when writing and downloading
    https://service.sap.com/sap/support/notes/911190
    Note 899205 - RFUMSV00: DMEE format tree with additional parameters
    https://service.sap.com/sap/support/notes/899205
    So to be honest I do not really know how to look at to solve the issue.
    Thanks again for your reply & best regards
    Tony
    Edited by: Antonio Lanza on Nov 9, 2010 9:33 AM

  • Problem in output file generation in AL11 tcode - need quick help

    Hi experts,
    Scenario:- Proxy to File ( file is generated in AL11 directory folder.
    Probelm:
    Last field value is generated with correct values in SXMB_MONI output payload, But when I open a file in AL11 the last field fiew value are getting trimmed. Also when I get the dump of file - file also has the same trimmed value.
    For example: Expected value in MONI is 12345 where as in AL11 i m getting 1234
    I have reduce the length of previous fields and run the scenario again - for this scenario all the values are coming in AL11 as well as in MONI.
    Is somthing to do with screen width length.
    Deepak Jaiswal.
    Edited by: deepak jaiswal on Aug 6, 2009 11:45 AM

    HI ,
          Its a problem with File Transfer tcode sxda_tools and AL11 sometimes. Ask your Basis team to give you file contents from PI Server directly.  This file should have right contents as you expected.
    I also faced the same problem and wasted lot of time to solve it.
    Hence, check the folder where you dump this file on application server and give this path to basis to provide you this file from server.
    Regards,
    Anurag Garg

  • Problem with cl_abap_char_utilities= horizontal_tab in Unicode system

    Hello Experts,
    My code in 4.7 system was,
    *DATA: gf_tab TYPE x VALUE '9'.
      CONCATENATE '[bc^bd128]' gp_user gf_tab gp_pw '[/]'
      INTO        gf_anmeldung.
      WRITE:  30  gf_anmeldung.*
    The output will be printed to a barcode printer and we get the barcode.  The barcode contains, the user name, tab delimiter and the password.
    Now, Using a scanner (handheld device) we scan the barcode.  The scanner is connected to the SAP server.  So as we give the user name and the password in the SAP easy access screen, the scanner takes the values from the barcode.  This means, the user name from the barcode ->to the user name field, tab delimter -> to come to the next field, password from the barcode ->to the password field.  This logins the SAP in the handheld device.
    Now, in ECC 6 system, the code was changed as below,
    DATA: gf_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
    After this change, now the scanner is not recognizing and throws the error "fill in all the required fields"
    I am not sure, if it is not retrieving the user name or the tab delimiter is creating the problem.
    Any suggestion would be appreciated.
    Cheers,
    Balaji
    Edited by: Balaji Dhandapani on Feb 3, 2010 6:34 PM

    Hi ,
    I think in the older version u r using the '09' as the end of line , So in the barcode it is consideringthe user id and then thinking that end of line and putting the next string say password in the correct postion.
    Try to use the CR_LF( Carriage return and line feed).
    Try this.
    Regards,
    Bharani.

  • How do I avoid a/v sync problems in output files?

    Hi.
    I wanted to process a video and iMovie 09 doesn't support deinterlacing, so I deinterlaced the video in another program and generated an mjpeg avi (1920x1080), then a wav for the audio. When I import these two into iMovie 09 and paste the audio, everything works and previewing the video doesn't show any problems.
    However, when I try to export this through quicktime, the audio gets a half second lag from the beginning which is never recovered through the video. This makes the video useless, as from the first 10 seconds you notice the performers' movements don't match the song (it's a live performance from a music group).
    In the quicktime export options I select an MP4 container (no ISMA), H.264 codec, resolution 1920x1080HD, 29.97 fps (just as the source was), and automatic reference frame. The audio options are set to AAC-LC (music), because I can't select anything else.
    Is there anything I can do to make this work? Why is it working correctly inside iMovie 09 only?

    What kind of video is your source?
    Probably the answer is to use a better deinterlacing tool. There are two great tools that are free. (MPEG Streamclip and JES Deinterlacer). THere is no need to create a separate video file and audio file. Use one of these tools and convert to Apple Intermediate Codec.

  • RFEBBECODA00 problem with output files

    Hello
    We are implementing Belgian payments. We make use of CODA 2.1, so RFEBBECODA00 should be the correct program. When running this program with a valid statement file the system doesn;t generatei the UMSATZ.TXT and AUSZUG.TXT on my given path. Everything seems ok, I get a correct list.
    What can be wrong? Anything with Unix perhaps?
    Regards
    DT123

    We are working with SAP version 6.0
    Edited by: M. Semmelink on Sep 30, 2010 1:43 PM

  • After updating silverlight, i'm unable to open any pdf files in the system

    After updating silverlight, i'm unable to open any pdf files in the system

    According to your User Agent you posted this question using Internet Explorer 11 on Windows 8.1. Are you having a problem with Firefox? What Firefox version?
    You said you are having a problem opening PDF files on your system. Can you explain that better? Mozilla Support can help you with opening PDF files in Firefox, which uses a built-in PDF reader. Maybe one of these articles will help?
    * [[View PDF files in Firefox without downloading them]]
    * [[How to disable the built-in PDF viewer and use another viewer]]

  • Using a data output file as an input file for test development

    I have an output file from a system that I would like to use to simulate the device being attached to the computer.  Using the read module I can input the entire file into the charting module, but it reads the entire file.  Is there a way setup the input to read one line approx. once per second and chart it (i.e.. A 3600 line file would take approx. 1 hour to read and chart)?
    Thanks in advance.

    Set up the Read module to only read once per second or minute.... 
    If you're reading a DDF file, it will always read back a full block of data, so you want to have stored the data at one sample/block. One way to do that is to read it back and write is out as ASCII, so that DASYLab loses the block size context.
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • GUI_DOWNLOAD problems with CR+LF when transfering from unicode system

    Hi,
    I was successfuly used FM GUI_DOWNLOAD in a non-unicode systems for years. Lately I faced a challenge to rewrite my code for a unicode system. The configuration is:
    - SAP R/3 unicode system;
    - data to be downloaded at presentation server in a non-unicode codepage (cp 9504).
    I have successfuly used a GUI_DOWNLOAD-parameter CODEPAGE and the data is translated correctly when checking local file, but due to some reasons CRLF are replaced with '#' (which is default value of REPLACEMENT parameter of this function) - means at the end of each row as a result I have '##' instead of CRLF.
    My question is: how can I force correct behaviour of GUI_DOWNLOAD in order to get my output file at presentation server with CR+LF?
    Any help would be highly appreciated.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    SAP/ABAP consultant
    VBS Ltd.
    P.S. In order to find some other way to fix my problem I'm still playing with the instanciation of a CL_ABAP_CONV_OBJ and its methods create & convert, but without success for now - resulted strings are not as expected.

    Hi,
    in fact, I never placed CRLF in my lines before your suggestion. The rest was done by the FM 'GUI_DOWNLOAD'. It works fine even when I use unicode file as output - means I got my CRLF at the end of the record in MY OUTPUT FILE ONLY but not in my internal table - I never placed CR+LF in there.
    The problem occures when I tried to use GUI_DOWNLOAD with parameter CODEPAGE = '9504' (some non-unicode codepage), and the original data (my internal table) is in unicode. Then (in my opinion) this function doesn't translate the unicoded CR+LF into non-unicode ones (if thats possible at all, I can't be sure) and the result is '##' in the output file.
    I checked the value of CL_ABAP_CHAR_UTILITIES=>CR_LF by getting it in my variable - and it is '##'.
    Whet should I put into this class-attribute in order to get it working in this scenario? I have no idea...
    The attribute type is ABAP_CR_LF - which is char 2.
    What next?
    Thanks,
    Ivaylo

Maybe you are looking for

  • 2 accounts on Mail

    I am trying to set up 2 different accounts on Mail. One is a .mac account, the other is a POP account run through a Microsoft Exchange server. Both accounts work fine by themselves on seperate computers. However, when I set them up on one iBook neith

  • End of file reached error

    Coherence 3.5 We are getting following exception - Caused by: com.tangosol.io.lh.LHIOException: /local/home/beuser/cachestore/lh03861950282677193497~, Primary file, Reading, Group 25253, Frame 25253: End of file reached. at com.tangosol.io.lh.LHSubs.

  • Forte access to AS/400 Databases

    Does anyone have any experiences accessing an AS/400 database from a Forte partition? If so, we would like to know if ODBC or some other technique was used. If ODBC was used, what vendor supplied the ODBC connection? To unsubscribe, email '[email pro

  • Change wireless to direct to computer

    How can I change from wireless to print direct from computer?  Can't use wireless as I don't have enough data time 

  • Change in OBILC

    Hi All, I wqant to change the filed Only Balance in Local Currency field. some postings are done already. I want to change the filed now Can it be done or are there anyother program to change that field. Thanks in advance. Surya