Program is working fine in one version but not in other how to handle this

hi all,
i have a program which works fine in ECC5. in that program i have used some XML related classes and interfaces. but when i try to execute this in 4.6c version its showing lot of all errors saying that so and so class or so and so interface is not supported in 4.6c version like that.
how to overcome these errors, means how to make the classes and interfaces which work fine in ECC5 to work well in 4.6c version.

Hello Mr. Rich,
the coding which u provided was very helpful it almost solved my problem,but at
the the last iam stuck up with a small problem. i wrote the coding like this for my
program
tables:mara.
type-pools: truxs.
parameters: p_matnr like mara-matnr.
data: ixml type truxs_xml_table.
data: xxml like line of ixml.
data: size type i.
data: file_str type string.
file_str = 'C:\simp.xml'.
data: begin of itab_mara occurs 0,
          matnr like mara-matnr,
          ernam like mara-ernam,
          aenam like mara-aenam,
          vpsta like mara-vpsta,
      end of itab_mara.
select matnr ernam aenam vpsta from mara into table itab_mara up to 5
rows where matnr = p_matnr.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
  I_FIELD_SEPERATOR          =
  I_LINE_HEADER              =
  I_FILENAME                 =
  I_APPL_KEEP                = ' '
  I_XML_DOC_NAME             =
IMPORTING
   PE_BIN_FILESIZE            = size
  TABLES
    I_TAB_SAP_DATA             = itab_mara
CHANGING
   I_TAB_CONVERTED_DATA       = ixml
EXCEPTIONS
  CONVERSION_FAILED          = 1
  OTHERS                     = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
   BIN_FILESIZE                  = size
    FILENAME                      = file_str
   FILETYPE                      = 'BIN'
  APPEND                        = ' '
  WRITE_FIELD_SEPARATOR         = ' '
  HEADER                        = '00'
  TRUNC_TRAILING_BLANKS         = ' '
  WRITE_LF                      = 'X'
  COL_SELECT                    = ' '
  COL_SELECT_MASK               = ' '
  DAT_MODE                      = ' '
IMPORTING
  FILELENGTH                    =
  TABLES
    DATA_TAB                      = ixml
EXCEPTIONS
  FILE_WRITE_ERROR              = 1
  NO_BATCH                      = 2
  GUI_REFUSE_FILETRANSFER       = 3
  INVALID_TYPE                  = 4
  NO_AUTHORITY                  = 5
  UNKNOWN_ERROR                 = 6
  HEADER_NOT_ALLOWED            = 7
  SEPARATOR_NOT_ALLOWED         = 8
  FILESIZE_NOT_ALLOWED          = 9
  HEADER_TOO_LONG               = 10
  DP_ERROR_CREATE               = 11
  DP_ERROR_SEND                 = 12
  DP_ERROR_WRITE                = 13
  UNKNOWN_DP_ERROR              = 14
  ACCESS_DENIED                 = 15
  DP_OUT_OF_MEMORY              = 16
  DISK_FULL                     = 17
  DP_TIMEOUT                    = 18
  FILE_NOT_FOUND                = 19
  DATAPROVIDER_EXCEPTION        = 20
  CONTROL_FLUSH_ERROR           = 21
   OTHERS                        = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
but when i try to open the XML file into which the data has to be downloaded it shows the following error.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'file:///C:/simp.xml'. Line 1, Position 23
<?xml version="1.0"?><%_TYPE0000000019><%_TYPE0000000019><MATNR Datatype="C" Length="18">00000000008...
help me to resolve this problem.
thanks,
anil.

Similar Messages

  • ANT Deployment issue. works fine in one environment but fails in other

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna

    Hi KrishnaBhaskarla,
    I have something related to ant script, Can you please provide me the steps for deploying applications using ant script.
    Regards
    Kumar

  • Safari works fine in one account, but not another

    In one account ONLY, Safari doesn't work. I get a "can't connect to internet" error message. In that same account, email works fine, so I know I am connected. Tried emptying Safari folders, re-setting Safari, and downloading the latest Safari. Nothing helps.
    Any suggestions?
    Many thanks.
    RSF

    Hi
    The usual remedy for "can't connect to Internet" is to add DNS numbers to the Network panel.
    Go to System Preferences>Network. Select your connection, then select "advanced". In the DNS panel add these codes:
    If you live in the United States: 4.2.2.1 and 4.2.2.2
    Outside the US: 208.67.222.220 and 208.67.220.222
    Select "OK", then select "apply".
    Restart Safari.

  • Paypal button code works fine for one button but not another

    Hey there, I have a paypal btn with this code on it:
    on(release){
    mylv = new LoadVars();
    mylv.cmd = '_s-xclick';
    mylv.encrypted = '-----BEGIN
    PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBAD
    CBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD
    VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW
    5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ==-----END
    PKCS7-----';
    mylv.send('https://www.paypal.com/cgi-bin/webscr', 'POST');
    (i took a few characters out of the encrypted string--just in
    case and to shorten the post)
    This button works fine.
    Now, I need a second button for a different item.
    So, I went on to paypal last night and generated a "buy now
    button" several different times. Copied and pasted the encrypted
    string where the old one is. When I have the site live and click on
    the new button it takes me to a paypal pages that says "We were
    unable to decrypt the certificate id."
    Any one have this issue before? And does anyone have any idea
    of how to correct it?
    Thank you in advanced,
    hutch

    HI Bob,
    You can test your settings by clicking the big "Test My DNS" button at <https://www.dns-oarc.net/oarc/services/dnsentropy>. If you see "Poor" on any of the tests, don't use that domain name server! Remove it from Apple Menu => System Preferences =>Network =>DNS Servers or similar location in your router if you've got a 'home network'. If all you have is "poor" DNS servers in your list, call your ISP and insist that they give you the address of a name server which is protected against the recently exposed DNS cache-poisoning threat.
    Also, open System Preferences/Network. Click the DNS tab. Add these numbers in the DNS Servers box.
    208.67.222.222
    208.67.220.220
    See if that helps.
    Carolyn

  • Search is working fine on one server but not giving results from other servers. moss 2007?

    hi,
    we have multi server or wfe architecture. configured search service on one server 01, central admin is 02, and query as 03, now crawled content with hostname:port of 01. everything is fine.
    but now when we trying to search results its giving results on server 01 which is index and query role. but didnt return any results in other servers.
    help is really appreciated.
    Thanks,
    SJ

    I thought you are posting question in wrong forum. Please move the question to
    https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointsearch. There some one will help
    Ravin Singh D

  • "printer is offline" appears on one computer but not the other (both windows 7)

    printer is offline" appears on one computer but not the other (both windows 7)

    This is pretty common to see when your firewall kicks in and blocks certain communication paths the printer takes.
    Here's a list of ports and programs that when allowed through the firewall, will restore communiction.
    Ports to open:
    UDP ports: 427, 161, 139
    TCP ports: 9200, 9220, 9290, 9500
    Programs to allow:
    hpiscnapp.exe
    hpoews01.exe
    hpofxm08.exe
    hposfx08.exe
    hposid01.exe
    hpqkygrp.exe
    hpqste08.exe
    hpqtra08.exe
    hpznui01.exe
    hpzwiz01.exe
    SLP_Service (also known as UDP 427)
    Have your security software provider walk you through allowing these items through your firewall.
    If this does not fix your issue, it is most likely an issue with the driver configuration. Your router may have assisgned the printer a new IP address and this can be changed in the properties of the existing driver.

  • BDC with call transaction VD02 works fin in A mode but not in N mode

    Hi All,
        I have BDC program developed in 4.6c using call transaction VD02 works fine with mode A but not with mode N.
    Now we upgraded to ECC 6.0.Do I need to change anything?

    No, you don't have to change anything for ECC. BTW, I wonder why VD02 is not working in the background for you?

  • How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    Can you give me a screenshot of the User Accounts window in Control Panel?
    Please create a screenshot by following the guide mentioned at [[How do I create a screenshot of my problem?]].
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. You really help us to visualize the problem.

  • WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    Question
    WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    I just updated my whatsapp...clicked on whatsapp in appstore and now can access my whatsapp

  • How do I send group emails from my iPad? They work fine from my MacBook but not the iPad.

    How do I send group emails from an iPad? They work fine on my MacBook but not my iPad.

    You need a third party app to do that. Look at Mail Shot or Group Email in the app store. You cannot do it with the built in mail app and the contacts app in iOS 5 without a third party app.

  • How do I enable auto-complete for gmail password? I have five accounts and it works for 3 of them but not the other 2.

    I have five gmail accounts. Three of them have the auto-complete feature enabled for the password. The two most recent accounts do not auto-fill so I must type in my password every time. The auto-fill works fine on my laptop but not on my desk-top. My operating system is Windows XP.

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • Encrypted message on one Mac, but not the other, from same server

    I run Mail.app on two Macs, both getting mail off the same Exchange server. Multiple times in the last few weeks, a message will download to one Mac and be fine, and then the other Mac will retrieve the message, and it will suddenly be encrypted. Before a bunch of garbled text, something like the following always appears:
    --000_25539419161D7744ABC322B480ED5DA507650F7Acmhprdexc04netj
    Content-Type: text/plain; charset="utf-8"
    Content-Transfer-Encoding: base64
    If you go to Webmail on the server, the message reads fine. And it is readable on the other Mac. I tried going to View/Message and choosing "next best alternative" but those options are grayed out. Could there be anything else set locally that is making the email unreadable on one machine but not the other? The unreadable version is always on this Mac (a Mac Mini) and not the other one (a MacBook), even though both are running the same OS version and Mail.app version.

    Navigate to your Applications folder.
    Right Click on iTunes and select Show Package Contents.
    Navigate to Contents/MacOS/
    Double-click on iTunes Helper(to get it running). This allows iTunes to start when you plug in your iPhone.
    Open System Preferences and go to Users & Groups.
    Select the Login Items tab to view the list.
    Drag iTunes Helper from the Finder into the Login Items to get it to run at login.
    Delete it from Login Items on the Mac you don't want it to start iTunes on.

  • FaceTime: I have a iPad, iPhone, iMac all on the same apple Id/account. Without changing id/email address can I use FaceTime between any 2 of my devices? It works from iPad to iPhone but not the other way??? I would like talk/see my kids if am away

    FaceTime: I have a iPad, iPhone, iMac all on the same apple Id/account. Without changing id/email address can I use FaceTime between any 2 of my devices? It works from iPad to iPhone but not the other way??? I would like talk/see my kids if am away.
    Hope you can help.
    I have added a new email address but kept my Id, but I get busy when trying from iPhone to iPad as they are clashing. Like find my iPhone app hence trying to keep them all on one account

    IOS: using facetime http://support.apple.com/kb/ht4319
    using an ipad will use the email address since you can't make a phone call.  see the link.
    Your basically calling/emailing yourself that's why your getting a busy signal.

  • "No connectivity with the server" error for one document but not the other, in the same document library

    We have a number of users all of a sudden getting "No connectivity with the server.  The file 'xxx' can't be opened because the server couldn't be contacted." errors trying to open MS Office docs (Word, Excel, etc.) in SharePoint with IE,
    just by clicking the link and selecting the "Read Only" option.  If they select the "Check Out and Edit" option, they can open the document no problem.  One of my customers gets the error on one document but not the other, in
    the same document library!  The older document (a weekly report) was copied and renamed as per standard procedure.  She can read the older document, but not the new one.
    It is definitely a profile issue, as other people have logged onto the machines of the users with problems and do not get the error.  We have also renamed people's c:\user profile folders and the corresponding Profilelist registry entry and the newly
    created profile does not experience the error for these people.  Renaming the profile back restores all their personal settings but the error reappears.  When we copied the old profile's folder structure into the new profile, many of the user settings
    were restored (but not all, like Dreamweaver settings) but the error did not appear.  We think that the system folders files (like AppData) weren't totally copied over so we're going to run another test using xcopy.  We are rebooting between
    logons to make sure all files are unlocked.
    The laptops and computers are mainly 32bit, Win7 Enterprise running IE9 and Office 2010 Professional Plus, but there's a few 64bit machines as well. The SharePoint farm has 1 WFE, 1 App Server running search and CA, and a shared database server running SQL
    2005 SP4.  SharePoint is 64bit MOSS 2007 with the latest CU.
    We've checked the logs on the client as well as on the server and there aren't any helpful entries.  We've also run Process Monitor, also with no helpful entries.  We're planning to run something like Fiddler next.
    It's not everyone, because there are many people are accessing the SharePoint system and the same files.  It is also not a permission thing, as we've tested by giving the users elevated permissions with no changes.  One person experiencing
    the errors is a Site Collection Admin.  That same person ran a test where I coped a simple Excel file into a Document Library which contained a problem file.  They were able to open it Read Only no problems that day, but the next day, the same
    file gave them an error.   In their case, they usually get a "xxx is not checked out" error and only occasionally get the "No connectivity with the server" error.
    We've tried lots of things including:
    Deleting IE cache
    Deleting SharePoint Drafts and webcache folder contents
    Running IE without add-ons
    Upgrading and Downgrading IE
    Uninstalling and re-installing IE
    Reinstalling our SSL certs
    Repairing Office
    Removing and then adding back in the Microsoft Office "Microsoft SharePoint Foundation Support" Office Tool 
    Deleting all HKLM and HKLU Office registry settings
    Toggling IE Compatibility Settings
    Toggling the IE Automatic Logon option
    Toggling the location of checked out files
    Adding the site in the trusted sites list
    Adding the site to the WebClient\Parameters registry locations
    Making sure the WebClient service is started
    Rebooting the machine (lol :)
    This is becoming a serious issue, not just because of the inconvenience for the users having to check out every document they want to read, but we have some files with macros that open up other documents to run which are now failing.  There aren't
    "check out" workarounds for some of those macros.
    We're planning to open a ticket with Microsoft, but I'm throwing it out here first in case someone has run into this before, or may have some suggestions on what to try next.  Thanks!
    -Richard.
    PS  I think this needs to be in the "General" forum instead?

    It took three days of dedicated troubleshooting, but I have found the cause of the errors, and a couple of fixes.  It helped tremendously that my own machine was throwing the error.  I have scheduled a couple of users to work with me to test the
    various fixes, to see which one works best, so the story isn't over yet.
    I had backed up my c:\users profile folder and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key so I could restore my profile after I was done.  I made a copy of the profile folder and was using that for awhile,
    but then made another copy where I had deleted a lot of content out of it so that the copies would go faster.  Since a newly created profile did not have errors, I was trying to copy back as much of the profile as possible to make it easier for our users
    to get back to work.  Instead of blowing away their profile and starting from scratch (which we know worked) I wanted to narrow down what was causing the error and just skip that from the restore.  The concept was to keep as much as the users profile
    in tact (application settings, etc.) not just restoring their desktop and My Documents folders.
    When we first tested a few weeks ago, simply copying the folder contents didn't reproduce the error.  I then tried xcopy, but got the "can't read file" error.  Then I tried robocopy, and ran into the "junction" problem. 
    I went back to xcopy, and found that placing the excludes.txt file in the windows/system32 folder eliminated the error.
    So the process went as follows: 
    Reboot and log into the machine as another user
    Delete the profile and associated registry key
    Reboot and log into the machine as the affected user, creating a new profile, and there is no error
    Reboot and log in as the other user
    xcopy the contents of the skinned-down backed-up profile to the newly created profile
    Reboot and log in as the affected user, and the error occurs
    Repeat the above, but add items in the excludes.txt file to see what, when eliminated, causes the error not to appear in the last step
    I eventually found that skipping the c:\users\<profile folder>\appdata\local\Microsoft\office\14.0 folder allowed the entire profile to be copied over without the error occurring.  That was strange, because we've cleaned out the cache folders
    before which didn't fix the issue. 
    So I went about it the opposite way, and tried to delete the 14.0 folder from the restored profile, and after reboot, the error still occurred.
    What eventually worked was deleting the 14.0 folder and copying over a 14.0 folder from a newly created profile!
    One way to do this was to:
    Reboot and log in as another user
    Rename the c:\users profile folder
    Rename the appropriate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList] registry key
    Reboot and log in as the affected user, confirm that there is no error
    Reboot and log in as the other user
    Copy the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder to the other user's desktop
    Delete new profile folder, and rename the backup to be the production folder
    Delete the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder and then paste the 14.0 copy from the desktop
    Reboot and log in as the affected user, confirm that there is no error
    We've tried this on a couple machines and it works.  I had to run Windows Explorer as Administrator to access the other profile's folders.
    We've also successfully copied a 14.0 folder created by one profile on one affected computer over another profile's folder on another computer, eliminating the error, so we're trying that first, as that is fewer steps.
    We may attempt to script this, but the self-help instructions are only 5 lines long:
    Reboot and log into the affected computer with another account
    Go to <link to location of 14.0 folder on network> and copy the 14.0 folder
    Run Windows Explorer as Administrator
    Go to c:\users\<profile folder>\appdata\local\microsoft\office and delete the 14.0 folder, and paste the copied 14.0 folder (trying to overwrite it makes Win7 want to merge the folders)
    Reboot and log into your normal account, and confirm the error is gone
    I'll come back and report after we go into the field with this fix, but after the few tests, I am cautiously optimistic that this is it.

  • Why is my iPhoto library greyed out in the Screensaver folder selection dialog on one iMac but not my other?

    Why is my iPhoto library greyed out in the Screensaver folder selection dialog on one iMac but not my other?

    I have an update to my issue above, with a Semi-solution found. I brought my Macbook Air back to the Genus bar today and they were able to identify (using “Activity Monitor”) that when the particular iPhoto library was being launched through iPhoto both Photostream and iPhoto's CPU% usage was excessively high (between 100% - 200% each). She discovered that if we turn off Photostream in iCloud settings iPhoto then behaved fast and snappy and CPU% came back down to a healthier level. When we turned Photostream back on the problem continued. After an hour of trying to trouble shoot why Photostream was causing the issue they recommended I keep Photostream turned off until a future software update/fix comes out. The particular Genus I worked with was not familiar with this issue. I’m very happy to at least be able to use iPhoto again, but if anyone has ideas or theories on how the Photostream conflict can be fixed please share. Thanks.

Maybe you are looking for

  • Critical update won't load for office 2011 released 2.10.15

    A critical update appears  for Office 2011   released 2.10.2015   14.4.8  113.6 MB This update fixes critical issues. As soon as it goes through all the install process, it says it was successful, Then it immediatlely shows up as a critical update ne

  • OC4J Deployment with JMX

    Hi, I'm trying to deploy my .ear to OC4J. I've recently added JMX to the project. From what I've found about JMX and OC4J, the MBeanServerFactory is required. If I do not use the factory and just use the MBeanExporter (autodetect=true), I get a succe

  • HT4061 I can't get serial number to contact tech support

    The iPad won't start and the print is too small for me to see. I am on the road and need to contact support

  • Autorefresh Limit - ReadOnly cache

    Hi, I have a readonly cachegroup with about 2million records, about 100 thousand records are updated in Oracle but this data is not refreshing in T10. My cache group parameters are... Cache Group Type: Read Only Autorefresh: Yes Autorefresh Mode: Inc

  • WDA Component Theme Change

    Dear All, I want to Change theme of WDA Component. Using parameter WDTHEMEROOT i m passing new theme but its not working. So i have tried to pass the theme programmatically using SAP-CSSURL. It is taking the theme but the theme layout is not displaye