Problems with saprfc library: CallReceive iconv error

Hi,
I tried to execute the following few lines of code
rfc = SAP::Rfc.new(:ashost => "iwdf3018.wdf.sap.corp" , :sysnr => "50" ,:lang => "EN" , :client => "800" , :user => "removed" , :passwd => "removed" , :trace => "0" )
iface = rfc.discover("RFC_GET_NAMETAB")
iface.TABNAME.value = "BAPIMATDET"
rfc.call iface
nameTab = iface.NAMETAB.value
and get the following error message for the 'call' statement
.../lib/ruby/gems/1.8/gems/saprfc-0.31-mswin32/lib/SAP/rfc.rb:1008:in `CallReceive': (16to8) iconv error: No error (RuntimeError)
        from C:/gluby/lib/ruby/gems/1.8/gems/saprfc-0.31-mswin32/lib/SAP/rfc.rb:1008:in `call'
when I set a breakpoint within the function module I can see the to be returned data, but seems like it doesn't get back to me.
calling other function modules works just fine.
Anybody any ideas??
Best,
Stefan

Hi - I just tried this:
[code]
#!/usr/bin/ruby
require 'rubygems'
require_gem 'saprfc'
$stderr.print "loaded...\n"
rfc = SAP::Rfc.new(:ashost => "ubuntu.local.net" ,
                   :sysnr => "01" ,:lang => "EN" ,
                   :client => "001" ,
                   :user => "developer" ,
                   :passwd => "developer" ,
                   :trace => "1" )
$stderr.print "connected...\n"
iface = rfc.discover("RFC_GET_NAMETAB")
$stderr.print "discovered...\n"
iface.TABNAME.value = "BAPIMATDET"
rfc.call(iface)
$stderr.print "called...\n"
iface.NAMETAB.hashRows do |r|
  $stderr.print "EXLENGTH: #{r['EXLENGTH'].unpack("H*")}\n"
end
[/code]
And it works fine for me:
[code]
loaded...
connected...
discovered...
called...
EXLENGTH: 0012
EXLENGTH: 0005
[/code]
Do you have a byte rder problem?

Similar Messages

  • Problems with Aperture Library

    My iMac crashed as I was importing some pictures. When I restarted it said there was a problem with the library and it needed to be repaired. After the repair I find that when I open Aperture I get an error message:There was an error opening the database for the library “/Users/samswallow/Pictures/Aperture Library.aplibrary”. I quit that and Aperture closes.  I have reinstalled Aperture and it makes no difference. All my photos are still there in Aperture Library Masters and can be seen in Preview. I would value any help on this.

    Did you do a repair or a rebuild?  And did the action complete normally?
    I would do the permissions repair then the library repair again and if you still get the errors do the rebuild. Note before doing the rebuild you should have a backup of your library. While it rarely happens rebuilds can make things worst.

  • While installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    while installing adobe creative cloud , getting the following error msg " There seems to be a problem with the download process. Error code:201"

    Creative Cloud Help / Error downloading Creative Cloud applications
    http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html

  • Problem with Adobe Premiere Elements 10 : error DW046

    Dear community members,
    I have bought Adobe Premiere Elements  10 and installed it from the DVDs on my MAC OSX10.5.8 on december 27, 2013
    When creating a new project , I get the following message :
    following a serious error, Premiere Elements 10 must stop
    Then I click OK and I get a new message :
    The Premiere 10 application has closed suddenly after having been rebooted
    Then I end up to the error report window. I have sent the error report  to Apple  ( I can send it to you if you want)
    I have also got the following error message :
    DW046 : following conflicting process were running, block : dynamiclinkmanager
    Notice : it seems this problem is occuring since I underwent a power failure while working on a project. When I want to open an existing project I get the following message :
    it seems that Premiere Elements has closed in an unexpected way during the last session. Do you want to open the previous project?
    When I say YES, I save it and it comes back to the welcome menu and I cannot see this project.
    I have tried to deinstall and reinstall Premiere 10 : this is impossible since I am required to deactivate dynamiclinkmanager that I cannot find.
    Notice that Adobe AIR is unable to find a solution whilst it recognizes there is a problem.
    Thanks you for your help

    AT Romano,
    The various links you have provided were very helpful. I could kill the dynamiclinkmanager.
    It seems that it is now working.
    Thank you, your reply was very quick and your advices very good
    Kitaguchi38
    Date: Wed, 1 Jan 2014 19:39:00 -0800
    From: [email protected]
    To: [email protected]
    Subject: problem with Adobe Premiere Elements 10 : error DW046
        Re: problem with Adobe Premiere Elements 10 : error DW046
        created by A.T. Romano in Premiere Elements - View the full discussion
    kitaguchi38
    When you get the message
    it seems that Premiere Elements has closed in an unexpected way during the last session. Do you want to open the previous project?
    Do you go to the last AutoSave to open that or do you go to the save location of the project file (project.prel) to open that file?
    Are you getting message to close the dynamiclinkmanager so that you can move forward?
    If so, please check out dynamiclinkmanager location in the following link
    http://helpx.adobe.com/photoshop-elements/kb/preference-file-locations -photoshop-elements.html
    Have you seen this Photoshop Elements Forum thread with the same DW046?
    http://support.muse.adobe.com/message/4771879
    More later.
    ATR
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5972397#5972397
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5972397#5972397
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5972397#5972397. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Premiere Elements at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I can't install wmpfirefoxplugin at Firefox 4, It show "The installer has encountered an unexpected error installing theis package. This may indicate a problem with this package. The error code is 2755.

    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755.

    Although you're getting a different error message, perhaps try the procedure from the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • The installer has encountered an unexpected error installing this package.This may indicate a problem with this package. The error code is 2869

    Hi,
    I am getting error "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869." while installing SAP B1DE.
    Note:
    Downloaded the B1DE from B1DE:SAP Business One Development Environment Tools
    Using Window XP , .Net 2008, SAP B1 8.81 Version
    Company Name, Contact Person, Namespace all were given while installing. All of its length is less than 8
    Any help is appreciated.
    Thanks in advance.
    Parvatha Solai.N

    Hi,
    Try post a comment in B1DE 2.0.1 new version! blog.
    Beni.

  • Problems with itunes library and order of tracks

    Hello,
    I downloaded the new update, and I'm having a problem with my library when accessed from the browser. Before itunes 7, my tracks were in order that they appeared on the album, now they are in alphabetical order. Is there a way to make it go back the way it was before the update--in order by track number?
    thanks.
    chris

    I was having the same problem and I knew there had to be an easy answer. I knew it for sure when I saw your topic unanswered. Just right click, or control click on the bar where it says name, album, genre, etc. and select "track number," this will give you the option to put them in their original order.
    You can also access this under "view options" in the view pull down menu.
    emac, mini, QS G4, ibook, etc.   Mac OS X (10.4.7)  

  • Problem with runas command. Elevation error

    Running on Win 8.1 Pro I'm facing a problem with runas.
    What I'm trying to do is launch an mmc as my domain admin account.
    Therefore I type this command from an elevated cmd (Right-click "Run as Administrator"):
    runas /user:Contoso\MyDomainAdmin /noprofile mmc
    This worked like a charm in Windows 7, and on my Win81Pro client it yields:
    RUNAS ERROR: Unable to run - mmc
    740: The requested operation requires elevation.
    The account I'm logged in with, is local admin, and the UAC slider is set in the bottom.
    In the eventviewer, I only see some special logons where my normal account is trying to impersonate my domain admin account, and the next event, the domain admin's session is destroyed.
    If this is by design, how would I then run mmc as my domain admin and at the same time avoid its credentials being stored on the local machine?
    Thanks in advance!

    yes, you need to be local admin to be able to elevate!
    I've tested this on a system here and I reproduce the issue you encountered. Some investigation showed running a program that requires elevation using runas is not  possible http://msdn.microsoft.com/en-us/library/bb756922.aspx
    MCP/MCSA/MCTS/MCITP

  • IPhoto performance problems with large library

    I recently purchased a new MacBook Pro Retina (2013 model) with top-of-line options. The hardware specs are 2.6Ghz Core i7 (8 cores), 16 GB RAM, 1 TB SSD, and OS X 10.9.1 (Mavericks).
    The machine came with iPhoto 11 (v9.5.1). I successfully ported my iPhoto library from my old MacBook Pro to the new machine. The iPhoto library is about 550 GB on disk, and consists of about 2000 Events, 95000 Photos, and about 50 Albums & Smart Albums. The images in the library are a mix of JPEG, RAW and other content types such as MOV and AVI etc.
    I have measured the performance of the internal SSD with tools like Black Magic and seen read & write speeds in excess of 850 MB/sec (obviously sequential). This is the fastest disk performance of any machine I've ever worked on, so I question whether iPhoto is slow because of this.
    Despite the formidable hardware resources of this machine (proven running other workloads), iPhoto still behaves like a dog with my library. Opening iPhoto takes about 10 seconds to get to the first screen. Deleting a bunch of photos will result in a spinning disc for about 10-15 seconds while the images move to the Trash. Emptying the trash with 500-1000 photos takes about 15 minutes. Reorganizing events can take up to 30 seconds. Even browsing from photo to photo incurs lags of several seconds. This lack of response time makes the sw frustrating if not impossible to use efficiently.
    During all these delays I have monitored system perfromance with various tools like Activity Monitor and iStat Menus. The odd thing is that when iPhoto is spinning its disc I am not seeing any kind of system resource bottleneck. In other worlds, CPU is barely utilized on any of the 8 cores, disk IO is minimal, and there is zero network IO. To ensure maximum RAM utilization, I run iPhoto after a fresh reboot and do not launch any other apps while it's running. For the life of me I cannot imagine what iPhoto is doing.
    I have also tried several of the library recover / rebuild options as well, but no problems were reported with the library and performance did not improve.
    I am considering upgrading to Aperture, but I wonder if both these solutions have serious design limitations when working on large libraries, which result in significant performance issues.
    I would be interested in learning what experience other users have when working on iPhoto libraries of similar size.
    Summary:
    iPhoto library size on disk: 550 GB
    Events: approx 2,000
    Photos: approx 95,000
    Albums & Smart Albums: approx 100
    Regards,
    Nico

    Hi Léonie, All the sw is at latest update. The library was simply copied from the old machine to the new machine. When I launched the new version of iPhoto (on the new machine) I pointed it to the copied iPhoto library and it picked it up without any issue. The first time I opened it, iPhoto spent some time migrating the data format from the old iPhoto version to the new, but that was done only once. I am not sharing the library between the old iPhoto and new; now the migrated library is for the exclusive use of the new iPhoto.
    Regarding error messages in syslog, it's quite funny, I do see them, and they reflect the fact that iPhoto has gone off to la-la land for extended periods of time, ignoring all user input (this is what results in the spinning disc in Mac OS):
    1/28/14 9:16:18.792 PM WindowServer[127]: disable_update_timeout: UI updates were forcibly disabled by application "iPhoto" for over 1.00 seconds. Server has re-enabled them.
    1/28/14 9:16:20.926 PM WindowServer[127]: common_reenable_update: UI updates were finally reenabled by application "iPhoto" after 3.13 seconds (server forcibly re-enabled them after 1.00 seconds)
    So that was a common 3 second "hang" of iPhoto. Nothing apart from those kinds of messages.
    Thanks for the links to iStat... i do in fact have the latest version of it and don't have that problem with Mavericks.

  • Problem with concurrency library in Mac

    Hi!
    I'm having a bit of a problem with my first java development (hence I post in this forum). Just as general info, it is an applet that does ftp upload, which uses the apache library. Now, the problem I have stems from the fact that I implemented it with SwingWorker, and thus it uses concurrency. I developed the applet in a Windows environment using JBuilder 2007, and I got everything working just fine in Windows - it tested 100% great. Now, Mac doesn't want to cooperate :( for some reason. It gives me a DefClassNotFoundError for java.util.concurrent.RunnableFuture, and I presume the same applies to all the concurrent subclasses. Digging a bit on the net I found the jsr166 library and tried including it in the list of loaded jars, but then I got a "prohibited package" error. Just out of curiosity I looked this one up and learned that you can't do that 'cause the vm doesn't accept any package starting with "java" - security issues, which sounds good... but doesn't help me solve the problem. Right now I'm a bit stuck with this... Anybody?
    Thanks in advance,
    J

    Thanks for your answer. I'm running version 5 on the test Mac, and unfortunately can't upgrade to v6 because it's running OS 10.4.11 (as are most mac's at my client's, the intended target), and the only upgrade available is for 10.5
    Now, what strikes me as very odd is that concurrency wouldn't be present in earlier-then-6 versions of the Mac vm - I mean, it's not exactly "the latest development in the java universe" or anything like that. I'm sure there is something else which I'm obviously missing.

  • Problem with my Library Program (mouse clics and keyboard strokes not work

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688186]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I work in a library in Saint-Raphaël France. We have a full web program placed on our server named Vubis Smart (Infor Society) to manage the books (our database). When using Firefox to access from remote machines every 3 mouse clics, only one is functional ; second problem when i type on the keyboard every 3to6 letters, a letter did not appear. With Microsoft internet explorer no problems. This problem appears only in our computers (not in the other libraries). Windows vista pro sp2. Dual core e5300, RAM2Go. Antivirus Trend Office Scan. How can i analyse this fact ? Thanx for your help, as i realy want to use Firefox instead of IR(Bleahh).
    == This happened
    ==
    Every time Firefox opened
    == we started using Firefox
    ==
    == Troubleshooting information
    ==
    no extension used. Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6
    == Firefox version
    ==
    3.6
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2) Gecko/20100115 Firefox/3.6
    == Plugins installed
    ==
    *-Default Plug-in
    *Shockwave Flash 10.0 r12
    *Picasa plugin
    *3.0.50106.0
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    *Java(TM) Platform SE binary
    *Adobe PDF Plug-In For Firefox and Netscape
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.

    i solved my problem myself  !!
    you have to reset NVRAM  and  SMC  on your macBook !
    you can find the instruction by search in apple website .!

  • Problem with Vision Builder and LabView: Error -1074395995, File not found

    I have created an inspection with Vision Builder AI 2009 SP1. In it I load some pictures from the HDD and run some checks over it. It works fine. Then I have migrated it to LabView 2010, I get a message that the migration is successfull, but when I run the VI on LabView I get a fail status. I have been checking my program and I have found and error when I try to load the picture from file: Error -1074395995 occurred at IMAQ ReadImageAndVisionInfo
    Possible reason(s): IMAQ Vision:  File not found.
    But I am not sure which file it refers to. At first I thought it was the picture I wanted to load, but I have checked the path and it is correct, so maybe it refers to another thing. What puzzles me most is that it works perfectly on Vision Builder and I have changed nothing in LabView, maybe it is a problem with the migration. Any clues?

    Here's a screenshot of what I'm talking about. Put a break point here and see what the path is and compare that with what Vision Builder AI is using (described where to find this in the previous post). You could find where this global is used to make debugging easier.
    Hope this helps,
    Brad
    Attachments:
    Generated Code.png ‏43 KB

  • Problem with PnP devices, Unknown device, error code:28

    Hello, my USB Mass Storage Device Not Recognized( Flash drive- HP v156w, 16 GB)
     Full story : I opened flash disk,  started  to loading and opening files very slow, suddenly all writing, names of the files become unreadable. I took off the flash disk and try again. I got the message- disk have to be formated to be used
    again. After a lot of try I got this message:
     Unknown device doesn't have a driver ; and Problem with PnP devices when i run trouble shoot in devices and printers on my Sony VAIO laptop( Windows 8, 64 bit), and error code:28 for unknown device doesn't have a driver.
    Do other usb devices work ok in the same usb port? - yes
    Has someone else/or you used it on another pc?- yes
    Does it work ok on a different pc?  - the same problem
    Did you pull it out with using 'Safely Remove Hardware'? -  yes, a lot of time after its become invisible, unknoun
    Was it previously working ok with your W8 laptop? - never tried befor
    Disk Management can't see the drive.
    device manager:
    usb device with yellow sine and instead name strange sines
    divice tipe - other devices
    manufacturer - unknown
    location- on USB Mass Storage Device
    status: The drivers for this device are not installed. (Code 28)
    To find a driver for this device, click Update Driver.
    I have done that -
      "open device manager make sure show hidden devices is ticked and right click on all the USB hidden devices and unistall them. once done reboot and put in the flash drive again and see if windows finds it."
    situation the same(((( Disk Management can't see the drive.
    please if any one know the fix please help
    Its very important info for me on the flash disk.

    I'd ask them over here.
    http://answers.microsoft.com/en-us/windows/forum/windows_8?tab=Threads
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • I get this error when I try to install iTunes 10.7: "The installer has encountered an unexpected error installing this package. This may indocate a problem with this package. The error code is 2203."

    I am running Windows 7 64bit. I downloaded the latest version of iTunes and ran the installer. This message pops up, I click OK and the installation continues. Then, when I try to launch iTunes I get this: "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5)". I have also received this error message even when the installation hasn't had any problems. I have uninstalled, reinstalled, restarted, repaired my .net framework,  uninstalled all components following the steps in Article: HT1923 http://support.apple.com/kb/HT1923 all to no avail. It still won't run. It was working perfectly before I updated it to 10.7. After that it all went to crap. I even tried installing the previous version and still get this error message. Any suggestions?

    Okay ... so it's not one of the cases of bodged up ACLs on the Apple folder in Common Files. (That's been underlying a few of the recalcitrant E7W5s.
    Just in case, let's try the fixit from the following document:
    Fix problems with programs that can't be installed or uninstalled

  • TS3212 I have a new computer, a HP with windows 8. I try to install itunes and get error. Says the installer has encountered an enexpected error installing thics package. This may indicate a problem with the package. The error code is 2503.

    I'm having problems installing Itines on my new computer with Windows 8. I always get problem with install. the error code is 2503. How do I correct this?

    Although you're getting a different error message, perhaps try the procedure from the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

Maybe you are looking for

  • I am not able to share a link to a web page on my face book page when I am using Firefox.

    I recently have tried to share a link to a video clip from youtube and another from Yahoo on my face page. When I click on the facebook icon to try I get the page that at the bottom has a button saying share. When I click on it nothing happens. I was

  • Reports output in Excel form fail - Finished successf output is voided

    Hi We have oracle 10g application server on solaris. A few of the reports are configured to have the output in PDF and other reports in excel form. The reports which are configured to give the output in excel form fail with Finished successfully but

  • SSL Config for SAP webgui service of ABAP

    Hi Gurus, We have a duel stack system, details are as follows: ECC 6.0 SR2 ABAP Stack 11 Java Stack 13 we want to access the webgui via internet and for this we have configured the webdispatcher which is behid the firewall. we had created the ccr and

  • Regarding IR components........

    Hi all, Can anyone please send me a blog that gives a detailed explanation about all IR components that are present in a namespace??i mean including fault msg types,context objects,adapter objects etc. Thanks in Advance

  • Interactive Form Error:  Invalid Response Code: (503) Service Unavailable

    Hi, Here i am Facing a Problem while i try to develop a sample application using Interactive Forms. When i tried to Deploy it. the Error i am getting is    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Re