Open Dataset for input in BINARY MODE not working after ECC 6.0 upgrade

Hi All,
Our requirement is to download an XML file from the application server and there is a customized program to download these files.
This program uses the statement,  Open dataset ...for input in BINARY MODE
and it works perfect for 4.7. There were no issues. But, after the upgrade to ECC 6.0 this does not work.
When the data is read in ECC 6.0 , it is shown in some special characters and it could not be opened with XML editor and the file is not completely downloaded. I read through the forum and tried the following statement as well,
Open dataset....for input in LEGACY BINARY MODE.
After this statement, there were no special characters, but there is a blank space introduced before every character.
Example : TEST(actual)
                  T E S T (After the legacy binary mode)
Could you please let me know if there is any solution to rectify this problem. Appreciate your help.
Thanks a million.
Edited by: Manikd on May 12, 2011 3:52 PM

But this program was already using BINARY MODE and after upgrade this is not working. I know, it may work in TEXT MODE. However, I cannot change the whole program to TEXT mode now.

Similar Messages

  • Bad data added in Open Dataset for output in Binary mode

    Hello,
    I am getting random bad data being added to the end of the file that is created on the file server when I run the Open Dataset for output in Binary mode.  This data sometimes looks like information about the Unix file server.  If I do the Open Dataset in Text mode, it does not add the extra bad data.
    ** transfer file to Unix File server
           DATA: LIN TYPE P.
                                                                                    OPEN DATASET P_APPFIL FOR OUTPUT IN BINARY MODE.
                                                                                    DESCRIBE TABLE XML_TAB LINES LIN.
                                                                                    IF LIN EQ 0.
             EXIT.
           ELSE.
             LOOP AT XML_TAB.
               TRANSFER XML_TAB TO P_APPFIL.
             ENDLOOP.
           ENDIF.
                                                                                    CLOSE DATASET P_APPFIL.
    Running the program 2 times with the same variant will give different results.
    For example, the data in file should end with </cPedigreeXML> but it added data as shown below:
    </cPedigreeXML>8        ˜        I   X-UNKNOWN                                                 9            œ        I   X-UNKNOWN                                                10   
                C   X-UNKNOWN   
    Then, when the program was run again with the same selections, it did not add the erroneous data at the end.
    This is a real problem because the bad data that gets added causes the file to error in the application.  Any help would be greatly appreciated.
    Thanks,
    Bob

    Hi Bob,
          Use CLEAR statement after TRANSFER statement and check once.
         IF LIN EQ 0.
             EXIT.
           ELSE.
             LOOP AT XML_TAB.
               TRANSFER XML_TAB TO P_APPFIL.
               <b>CLEAR XML_TAB.</b>
             ENDLOOP.
           ENDIF.
    Thanks,
    Vinay

  • OPEN DATASET FOR INPUT IN TEXT MODE - linesize issue

    Hi,
    I faced a problem when opened ANSI file with CYRILLIC in ECC 6.0 Unicode system - the system cuts the line to 250 characters. Below is snip of code:
    REPORT  Z_TEST_01 LINE-SIZE 1023.
    DATA:
      file TYPE char40 VALUE 'ansi_file.txt',
      line TYPE char1024, len TYPE i.
    OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    WHILE sy-subrc = 0.
          READ DATASET file INTO line ACTUAL LENGTH len.
            WRITE: / len, line.
    ENDWHILE.
    CLOSE DATASET file.
    In this case, variable LEN always get value 250. File-content is correctly converted from ANSI and all CYRILLIC is displayed to the screen. I changed type for LINE - initialy the type was STRING, actially.
    Further, tried to open it in BINARY - like this:
    DATA:
      file TYPE char40 VALUE 'ansi_file.txt',
      line TYPE char1024, len TYPE i.
    FIELD-SYMBOLS <hex_container> TYPE x.
    OPEN DATASET file FOR INPUT IN BINARY MODE.
    ASSIGN line TO <hex_container> CASTING.
    DO.
      READ DATASET file INTO <hex_container>.
      IF sy-subrc = 0.
        WRITE: / line.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    CLOSE DATASET file.
    WRITE: / line.
    In this case I got bigger linesize (obviously 1024), but faced conversion issues - the file contains some CYRILLIC and it is messed. Played for few hours with conversions - using additions: IN LEGACY BINARY MODE... BIG/LITTLE ENDIAN, CODE PAGE... without success. So decided to ask...
    Well, I searched SDN for a similar issue, but didn't found, except this one:
    Re: OPEN DATASET STRING Problem
    Could someone points me what am I doing wrong? How can I read my ANSI file with line-size more than 250 chars? Actually, in my case line size may vary up to 1800 chars. Further, afrer conversion and some validation, I should save it back to the AS.
    Many thans in advance.
    Regards,
    Ivaylo Mutafchiev

    Sorry for the noise - it is not an issue anymore.

  • BSP iview not working after ECC 6.0 upgrade

    Hi,
            We are using MSS application in our portal.When we click the Employee list under manager profile it redirects us to a new page aontaining 3 to 4 iviews like general data,Personal data(Par file based iview) etc
    After selecting the employee all data pertaining to the employee appear in these iviews(data comes from SAP HR system).There is one more iview that represents the emergency information of the employee that is a BSP iview.Few days before we have upgraded ECC 4.6 to ECC 6.0 after this upgrade we are getting values in all par file based iview but the data is missing in the BSP iview.
    Can anyone help?
    Regards
    Imran

    Hi,
    Are you getting any error? After upgrade do you activated the bsp service through
    T Code: sicf
    then Service Execute, then
    defalut_host --> sap -->bc --> bsp --> sap -->your BSP Application Name, then right click and Activate.
    Regards,
    SrinivaS

  • Open dataset for input don't work after upgrade from 46C to 47

    We did an upgrade from 46C to 47, after that all the Z programs that have the sentence "open dataset for input" alwas send a sy-subrc = 8, the curios things is that the sentece "open dataset for output" works ok.
    Please I need help to solve this?
    En example of code.
    PARAMETERS: P_ARCHF(60) OBLIGATORY DEFAULT
                'C:\20050900.txt' LOWER CASE.
    OPEN DATASET P_ARCHF FOR INPUT IN TEXT MODE.
    IF SY-SUBRC <> 0. MESSAGE i001 WITH ARCHIVO. stop. endif.

    Well, it's telling you that the datset doesn't exist. From the help in 4.7:
    OPEN DATASET
    Addition 1a
    ... FOR INPUT
    Effect
    OPEN ... FOR INPUT opens the file in read mode.
    If the file does not exist, OPEN ... FOR INPUT fails with Return Code SY-SUBRC = 8.
    Note
    If OPEN DATASET is not executed in a Unicode program and if the user has write authorization for the file, the file is opened in read and write mode. Otherwise, it is only opened in read mode.
    Rob

  • My laser jet 100 color MFP M175nw is not working after windows 8.1 upgrade,

    my laser jet 100 color MFP M175nw is not working after windows 8.1 upgrade, driver on your website fails to setup at 83 % with an error message

    Welcome to the HP Forums  MillaMagia,
    I see by your post that the USB isn't being recognized.
    I can help you with this issue.
    Are you using the same USB cable? (known good USB cable)
    You want to use the normal USB slot 2.0 cable and not the latest USB 3.0.
    USB 3.0 are supposed to be backwards compatible.
    Try another USB port on the Laptop, some of the USB ports are more powered then others.
    I have provided a document to see if the printer is partially recognized in the device manager, which is causing the printer not to be recognized again. (the uninstall from the CD should have removed the entry and the printer from the registry)
    Leave the printer turned on and the USB cable connected directly to the computer and the printer's power cord directly into a wall outlet.
    How do I get into Windows Device Manager?
    Here is a document for Identifying problems in Windows Device Manager.
    Check to see if there are any hardware driver conflicts, you might see a ! mark or a red x beside a device with a conflict or unknown device, look under universal serial bus controllers, look for USB printing support or mass storage device, delete the entry by right clicking and select uninstall, OK.
    Let me know how it was listed. (screen shots welcome)
    If this is a Laptop then check the power management settings.
    Access the device manager. Windows 8-How do I access the Device Manager.
    Select universal serial bus controllers from the list, for each USB root hub, right click and left click on properties, for power management remove the check mark for "Allow the computer to turn off this device to save power". It allows the computer to limit or turn off power for this device.
    Disconnect the USB, run the full uninstall and reinstall the printer software again.
    If you need further assistance, let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • IMessage not working after iOS 5.1 upgrade! Feedback pls

    iMessage not working after iOS 5.1 upgrade, anybody experiencing this as well? Feedback please......

    You shouldn't have to hard restart and it shouldn't have anything to do with your router.  If anyone else runs into this problem try resetting the network settings on your phone.  All the steps to do this can be found here http://tekshot5.com/ios-5-1-imessage-fix/
    Edit: Some of us don't have the option of resetting our DNS servers.  I run my own for example for caching purposes.

  • A1: Home button not working after Ideapad A1 ICS upgrade

    So yesterday I finally tried the ICS upgrade for my Ideapad A1. It worked OK besides all data on internal memory and SD being deleted so I had to reinstall all my apps or restore from Titanium backup.
    In any case the only real problem is that the home button is not working after the upgrade. Does anybody else have this problem and maybe even a solution?
    Thanks!

    Hi, Im using A1 16G and tried to upgrade to ICS for couple of days i read too many articles in different forums....
    Can you put any instruction on how you made it?
    Thanks

  • 7 u j m keys not working after 10.8.1 upgrade, late 2008 aluminum Macbook

    That's all, these keys do not work after update/upgrade today. They were working fine right before i did the update and are not working now. If I hit the M ket a few times i do get some garbage. Help?

    Thanks, but still the same. It boot normally only if there isn't any usb device attach to the computer. I'm using usb mouse instead of bluetooth mouse and it happens not to boot normally like usual.
    The technician said it would be okay if any usb devices attach to the computer during the boot apparently it won't boot normally.
    Any alternative sir?

  • Problem writing file ANSI to UTF-8. OPEN DATASET FOR OUTPUT IN TEXT MODE

    Hello everybody,
    My report needs  to create a file in ANSI so I am using this sentence: * "OPEN DATASET p_dir_a FOR OUTPUT IN TEXT MODE ENCODING DEFAULT."*  almost all charters in the file are well generating excepting for this two: ( Á ) & ( Í ) because SAP assigns the same code to both characters ( Ã? ) = 'xC3'  which is not correct, the right code should be ( Á ) = 'xC1'  ( Í ) = 'xCD' respectively
    from this string = ( ÁÉÍÓÚáéíóúàèìòùÀÈÌÒÙ ) only those two characters are wrong converted.
    Also I tray to catch a conversion error with this sentence:
              TRY.
                TRANSFER <field> TO p_dir_a NO END OF LINE.
              CATCH cx_sy_conversion_codepage.
                MESSAGE 'error' type 'I'.
            ENDTRY.
    but never enters in it.
    Does anyone know where I can configure SAP to SET this value correctly?
    Thanks for your help.

    was a server problem, not SAP

  • Open dataset with Chinese file name does not work

    HI Guru,
       I have an issue now, when I try to open dataset '/test/file.txt'  it works, but when I tried to open a file name contains Chinese file name like open dataset '/test/文件.txt'  , it failed again and again, no matter in text mode or legacy text mode  or binary mode also I tried encodings.    I need to read/write files to application server.  the backend OS is HP Unix 11.
      thank you in advance.

    Moving this thread from WDA to ABAP General becuase it has nothing to do with WDA.  Please in the future pick your forum appropriately.

  • SAP FTP Binary Does not work after EHP 7 Upgrade

    Hi All,
    Since EHP 7, if I try to execute an external command through sm49, which has a shell script for ftp connection and fetching files, the 'binary' command after ftp connection is not working.
    Result? I'm fetching corrupted files once in a while. The same was fine before the upgrade. The script runs fine at OS level. We are using AIX.
    Did anyone see this issue before? Is there a solution?
    Please help, it's quite urgent.
    Thank you.
    Uday

    Hi Uday,
    Since EHP 7, if I try to execute an external command through sm49, which has a shell script for ftp connection and fetching files, the 'binary' command after ftp connection is not working.
    1) What is the exact error message you get ?
    2) Did you check permission to the script . Ensure sidadm has full access to execute it.
    3) Did you check Test Connection to TCP/IP RFC destinations SAPFTP and SAPFTPA are working fine in SM59 ?
    Regards,
    Deepak Kori

  • Edirol UA-25EX Sound Input not working after 10.6.6 upgrade

    Hello,
    I am using an Edirol UA-25EX sound card for sound input (mike) and output.
    Since I upgraded to 10.6.6, sound input is not working anymore.
    I tried to unplug / replug. I tried to reboot. I tried to uninstall and reinstall Edirol's driver for Snow Leopard.
    Nothing worked. Any help ?
    Thanks
    Seb

    By switching the sampling rate at the rear of the device, unplugging and replugging it, I manage to make it work again
    Strange
    Seb

  • 11.1.1.6.4 Repository variables for DSN and USER do not work after upgrade

    Hi,
    The Repository Variables OLAP_DSN and OLAP_USER no longer work after upgrading to 11.1.1.6.4 i.e they return a connection error when trying to import metadata but the connection is correct if explicitly set without the variable used.
    I have tried the following resolution:
    - From command line execute commands to set variable properties via admintool.exe /command vartext.txt
    Open rpdname user password
    SetProperty "Variable" "OLAP_DSN" Initializer "'ORCL.GLOBAL'"
    Save
    Close
    Exit
    This script works fine as demonstrated by commenting out Save, Close, Exit and running. But it does not resolve the problem.
    The issue is consistent as in the OLAP_USER variable does not work if DNS for connection pool set to ORCL.GLOBAL.
    Is this a bug?
    Thanks in advance
    Edited by: 983325 on 26-Feb-2013 02:35

    There is a 3.1.0.5 client. First thing I would try is the newest client.
    Sent from Cisco Technical Support iPad App

  • Messages not working after 10.9.2 upgrade - XPCIMDMessageStoreSendXPCMessage fails

    I have upgraded five machines to 10.9.2, but one of them has run into a persistent problem with messages.
    On startup, I get a Message that an internal error has ocurred and asks me to relaunch. After that the window comes up and the acount window shows me logged in, but the history is not updated and new messages take forever to deliver or do not go through at all. They usually do not update on the local display.
    The console log shows lot of failures like these:
    - 2/27/14 6:33:44.954 PM imagent[371]: [Warning] __XPCIMDMessageStoreSendXPCMessage failed too many times...bailing!
    I have set up another account and tried logging in from it, but it shows the same behavior.
    The firewall is off, certificate seem to be fine. When I log out and back in, the other systems devices get all the nag messages about the system and numbers being added, so it is communicating with the server. But messages are not coming through.
    I have cleared all preferences and caches, but the behavior does not change.
    I have reverted the system to 10.9 by installing over it. Messages immediately works fine (same preferences etc.) Everything works great, but I'd rather not live with the SSL bug.
    I have upgraded using the Combo Update and another time using the App Store. The behavior stays the same.
    The other four machines and my 4 iOS devices are all working as expected.
    Does anybody have any ideas? My family and friends use Messages a lot, so I need it on my main machine.
    Thanks,
    -- Harald

    Hi,
    I will presume again then.
    I would also try these one at a time.  Doing it this way is less invasive than doing them altogether.
    The Console Message looks more like it belongs to an iMessage sending than an AIM, Jabber or Yahoo ones.
    In this case I would try deleting com.apple.imessages.bag.plist
    This is not the Account info for iMessages but it is the server the app (and IMAgent) connect to.
    If that does not work I would try the iMessages account one (com.apple.ids.service.com.apple.madrid.plist)
    This is the one in use in Mavericks.
    You may still have the Mountain Lion one present (com.apple.imservice.iMessage.plist)
    You could try using Activity Monitor to Force Quit IMAgent but you first need to turn Off FaceTime even if it is not open (IMAgent does it's "Listening" as well as for the Messages app.
    It goes without saying the Messages app should also be Quit.
    I would again restart the computer when Quit the IMAgent app.
    7:22 pm      Saturday; March 1, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

Maybe you are looking for