Python sapnwrfc FUNCTION CALL ERROR

Hi everyone,
I am trying an external rfc connection with sapnwrfc-0.05 for Python. I have the latest nwrfcsdk from SAP. It took me a while to figure out the new python module methods, but I am now able to connect successfuly.
I have a function module that I need to call and feed external data to it. This function is writing to a Z table of mine. I have done this successfuly with previous versions of python sapnwrfc module.
Here is my test code:
import sapnwrfc
conn = sapnwrfc.base.rfc_connect({'ashost':'HOSTNAME', 'sysnr':'00', 'client':'900', 'user':'RFCUSER', 'passwd':'PASSWORD' })
if conn :
    print "I am connected"
#    VBELN = CHAR
#    LNUMB = NUMC
#    WERKS = CHAR
#    GJAHR = NUMC
#    HEAT =  NUMC
#    ZIERA = CHAR
#    ZLENG = CHAR
#    ZWEIG = CHAR
#    ZINDX = CHAR
#    ZPDA = CHAR
#    ZTIME = CHAR
    data = [VBELN+LNUMB+WERKS+GJAHR+HEAT+ZIERA+ZLENG+ZWEIG+ZINDX+ZPDA+ZTIME]
    iface = conn.discover("MY_Z_FUNCTION_MODULE")  
    f = iface.create_function_call()
# MY_Z_FUNCTION_MODULE has a TABLE structure DATA
    f.DATA(data)
    f.invoke()
    print "Done"
    conn.close()
When I run this code I get the following ERROR:
File "/usr/lib/python2.4/site-packages/sapnwrfc/__init__.py", line 165, in invoke
    return self.handle.invoke()
sapnwrfc.RFCCommunicationError: RFC FUNCTION CALL ERROR: set_table_line invalid Input value type
The same function module was working before, when called with DATA as a single string item in a list.
Any help?
Thank you all.
Menelaos

As I discovered, you need to supply the DATA table structure with a dictionary of its field values:
data = [{'VBELN':VBELN,
            'LNUMB':LNUMB,
            'WERKS':WERKS,
            'GJAHR':GJAHR,
            'HEAT':HEAT,
            'ZIERA':ZIERA,
            'ZLENG':ZLENG,
            'ZWEIG':ZWEIG,
            'ZINDX':ZINDX,
            'ZPDA':ZPDA,
            'ZTIME':ZTIME}]
Just make sure that each field has the correct size. The data types in the dictionary should all be strings, but the string contents should match the field types of the DATA table structure....
This is really an improvement over the old method (single string) but some documentation would be helpfull Piers!
Can I help?
Menelaos Maglis
Edited by: Menelaos Maglis on Jul 25, 2008 10:49 AM
A correction on the data field types.

Similar Messages

  • Pure virtual function call error while saving the vi.

    Hi everybody,
    I'm using LabVIEW 8.6 to create the applications. I got "fatal error: memorymanager.cpp: line 437 and Pure virtual function call error: R6025, while i try to save the vi. Also no DAQ cards are interfaced with my PC.
    How can i rectify this error?
    Solved!
    Go to Solution.

    Hi solutions,
    the simplest solution would be to recreate the VI from scratch. Yes, really!
    You can also try to copy the block diagram to a new VI, this might help too. Or to clean up your VI be creating subVIs…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • TS1424 How do you fix a R6025 pure virtual function call error?  When I try to search for music, iTunes freezes & returns this message.

    How do you fix a R6025 pure virtual function call error?  When I try to search for music, iTunes freezes & returns this message.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • "R6025 -pure virtual function call" Error While Use Adobe Media Encoder

    I'm trying to use Adobe Media Encoder (CS3) to output a project to H.264. I have about 3 minutes of footage on the Premier Pro CS3 Timeline, all of it in Cineform AVI intermediate format. When I export the movie through AME and select 2-pass VBR, it gets through the first pass, but crashes at 50% on the second pass with the error:
    "Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program E:\Progra...
    R6025
    -pure virtual function call"
    Any ideas what may be causing this error?

    Point taken...
    I'm on a Dell XPS 720 Windows XP (32-bit) system, with all up-to-date service packs and patches. I have 4GB RAM installed, and Production Premium CS3, TMPGEncXPress and Cineform's Neo Scene. Neo Scene is a recent addition and the problem existed prior to its installation. I have two 7900GS graphics cards (each with 256MB video RAM), running in SLI mode.
    I dual boot Windows XP: One system is "Messy" with all kinds of stuff installed. The other is "Clean" and has virtually nothing installed, except for the three suites previously mentioned. No anti-virus or anti-spyware software is installed on the Clean system. I get the error on both systems.
    I saw the post from September 2007 reference vcredist_x86. I'll be trying that at my next opportunity, however, I'm not sure that will fix it, as I don't see why both systems would suffer from the same corruption. I'll also be swapping out RAM to see if that fixes the issue.

  • PL/SQL Function call error while reading or assigning returned value

    Hi,
    I am getting the following error while tryih to read the value of the PL/SQL Function. I am calling a function in one of my PL/SQL Packages passing mutliple IN parametes and the function returns some value back. Now on BPEL side when I try to read the return value I am getting an error:
    *<summary>*
    empty variable/expression result.
    xpath variable/expression expression "/ns3:OutputParameters/ns3:TEST_FUNCTION" is empty at line 124, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:OutputParameters/ns3:TEST_FUNCTION" is not empty.
    *</summary>*
    Even though in the console when I check the Invoke Output Parameter it does shows me a valid value being retuned by a Function but when I am trying to Assgn this value to some variable using Assign Activity I get the above error.
    Even though all goes fine but looks like I am not able to read or assign the value returned from the Function.
    So just wondering if this even works as to me I have a very simple example and that seems not to work. Function is called successfully and is returning the value as I can see it in the BPEL console but when tryin to read or assign that value to some other variable I get the above error.
    Any ideas?
    Thanks

    This issue has come up a lot. The problem is with a mismatch between the version of JDeveloper and SOA. You'll encounter namespace issues if you use 10.1.3.1 in combination with 10.1.3.3 (or 10.1.3.4). You MUST synchronize both JDev and SOA to 10.1.3.3 or 10.1.3.4 (mixing 10.1.3.3 and 10.1.3.4 is OK). We changed when going to 10.1.3.3 by adding elementFormDefault="qualified" to the generated XSD. We used the default "unqualified" in 10.1.3.1. So you'll encounter namespace issues unless you're using 10.1.3.3 or higher JDev AND SOA. The fact that I see &lt;*db:*...&gt; tells me that you're using 10.1.3.1 JDeveloper. The correct solution is to upgrade your components.

  • NiFgen Close.vi function call error

    I'm trying to use my PXI-5411 with a fresh install of NI-FGEN 2.0 in LabVIEW 6.1 on Windows 2000.
    I'm getting an error in "niFgen Close.vi", though: "The function name specified for this node cannot be found in the library."
    It appears that the function in question is LV_niFgen_close in niFgen_32.DLL.
    Why is this newly-installed FGEN function not working, and what can I do to fix it?

    Good Morning,
    The older version of NI-FGEN stored the niFgen_32.dll file in the C:\VXIpnp\bin directory. It is possible that your VI's are still pointing to this location, and cannot find the .dll. Currently, the niFgen_32.dll file is stored in c:\Program Files\IVI\bin. Perhaps the path of this single dll was hard coded.
    Now that you upgraded to the new version of NI-FGEN, the dll is no longer in the same location. To fix this issue, you should do two things:
    Open the NI-FGEN close.vi and configure the call library node. Insure that the Library Name or Path is only niFgen_32.DLL
    Then you should check to ensure that C:\Program Files\IVI\bin directory is in your Windows search path. You can check this by right clicking on "My
    Comptuer" on your desktop and choosing "Properties". Then click on the advanced tab, and click on environment variables. Under System variables, scroll down to PATH. Double click on path, and you can cursor through the search paths. Make sure that C:\Program Files\IVI\bin; is in this list. Please let me know if you have any additional questions. Have a great day.
    Sincerely,
    Will Denman
    Application Engineering
    National Instruments

  • SAPGUI function call error

    Dear SAPers,
    i've registerd an OCX (MSCOMM32.OCX) in windows and in SAP using transaction SOLE but in ABAP program i still get an error subrc = 2 OBJECT_NOT_CREATED
    could anyone tell me how could i fix this error??
    Thanks
    Kholoud

    SAP documentation says:
    <b>The OLE function modules are only implemented under Windows.</b>
    So make sure you are working with a windows object like Excel or WinWord for example. The FREE OBJECT will only work for Windows applications.
    SAP Doco. (Example)
    FREE OBJECT belongs to a group of key words that allows you to process external objects with ABAP. At present, only the object model OLE2 is supported, i.e. all objects must be of type OLE2_OBJECT. This type and other necessary data are defined in the INCLUDE module OLE2INCL.
    Release an EXCEL object:
    <b>
    INCLUDE OLE2INCL.
    DATA: EXCEL TYPE OLE2_OBJECT.
    CREATE OBJECT EXCEL 'Excel.Application'.
    FREE OBJECT EXCEL.
    </b>
    Regards,
    Sougata.

  • Pure Virtual Function Call error

    Hello,
    I´m running a Labview exe with NI DAQ 7.4 and it´s working fine.
    the problem happens when I shutdown the computer. An error appears on the screen saying that nipalsm.exe has closed and commited a pure virtual error.
    I press OK and the system shutsdown normally. This error doesn't occur all the time, it's random.
    Can anybody help with this??
    Thanks you,
    Paulo

    Hi,
    Your problem seems to come from the installation of your softwares :
    the forum here will give you some details and advices :
    http://forums.ni.com/ni/board/message?board.id=250&message.id=13266&requireLogin=False
    A possible solution would be to repair your MAX as it is explained in the follwing KB :
    http://digital.ni.com/public.nsf/websearch/347EDEE59DA74A8A86256D3A005B460C?OpenDocument
    salutations,
    Marc L.
    NIF

  • Opening pdf from desktop; r6025 pure virtual function call error

    on a new computer, whenever I try to open a pdf file I get that error, then the document/adobe freezes and I have to force close. I've searched around the internet but most problems that have this error are from streaming music or attempting to print a pdf, not just trying to open a file to view.
    if there is any information needed about what is running I will be happy to provide, just need an experienced programmer to guide me through the process to figure this out.
    thanks.

    I use AVG free. disabled and still nothing.
    also, trying to look at an interactive map of a marathon course, (http://bcsmarathon.com/wp-content/uploads/2011/11/Full-Course-Map.pdf)
    and I get the following error when trying to open that in my chrome browser.
    "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (3:1074724867)"

  • I am experiencing an R6025 pure virtual function call error in Windows 8.1

    Help -- not sure what to do.  Recent update to Windows 8.1 on my computer. Un-installed iTunes because it wasn't working. Re-installed it. Installed Microsoft Visual C ++ updates.  What to do......

    See Troubleshooting issues with iTunes for Windows updates. Use the steps in the second box to repair your iTunes installation. Your library should be unaffected by these steps but there is backup advice elsewhere in the user tip.
    tt2

  • Runtime error R6025 - pure virtual function call

    I'm running the latest version 10.6.3.25 of iTunes on Windows Vista. When I tried to search in app store using the search pane on the righthand top, it crushes and a box appears saying "Runtime error! R6025 - pure virtual function call".
    I cannot search in the app store at all.
    Any help?

    This bug still exists in Firefox.  I tested version 28 and version 32.0.1, which is the latest mainstream release at the time of writing.
    Steps to reproduce:
    1.  It's much easier to reproduce this bug if you are using a computer that has 2 monitors.
    2.  Load up any Youtube video.
    3.  Skip advert if required.
    4.  Click "Full Screen" button in lower right hand corner.  The video fills up the whole of the 1st monitor.
    5.  Click on the desktop on the 2nd monitor - this reveals the taskbar and start menu overlayed above the video.
    6.  Close Firefox;  For example, by right-clicking the "Firefox" taskbar button on the taskbar, and choosing "Close" from the context menu.
    7.  Firefox closes, but adobe flash player does not close gracefully, and instead throws up "R6025 - pure virtual function call" error message.

  • Photoshop CC r6025 pure virtual function call

    I recently signed up for Creative Cloud and shortly after that I started to recieve the r6025 pure virtual function call error with PS CC crashing. This will happen with both the x86 and x64 versions of PS CC. It does not happen every time, only about 30%-40% of the time. Usually, but not always, a restart of the program solved the problem.I performed an unstall of PS CC but that did not solve my problem. Prior to switching to Creative Cloud I had no problems whatsoever with PS CS6. This issue started after installing CC and updating PS CS6 to Photoshop CC. I do not think this is a hardware or OS problem but FGOS I an running the following:
    OS - Windows 8 Pro x64
    RAM - 16GB DDR3
    Video - NVIDIA GeForce GT 640 with 2048 MB of VRAM
    CPU - Intel Core i7 2600
    Plug-ins - onOne, Nik, Imagenomic, Topaz Labs, Alien Skin, Unified Color and a few others. All of these were installed and running fine before the CC switch.
    Does anyone have any ideas as this has become very frustrating for me.
    Thanks

    Thanks guys. I'll reply to your messages in the above order.
    System Log -
    For all these photoshop.exe is the faulting application both x86 and 64-bit. I havent seperated them out (x86 vs x64) but casn do that if you want. I mostly use the x86 version of Photoshop simply because a couple of my favorite plug=ins don't work in the 64-bit version.
    Faulting modules -
    unknown - 2 times
    MSVCR100.dll - 9 times
    KERNELBASE.dll - 3 times
    MultiProcessorService.8BX_unloaded - 1 time
    CreativeCloud.exe showed up once as the faulting application and the faulting module was VulcanWrapper.exe.
    FGFOS the above are a mix of Photoshop CS6 and Photoshop CC. That came about because I was running PS CS6 when I signed up for Creative Cloud and my version of CS6 was upgraded to the Extended version. About a week ago I uninstalled then reinstalled Photoshop and this time the version was Photoshop CC.
    With regard to the plug-ins I use the vendor's installation program. I have a few others that are just an *.8bf file that I copied to Photoshop's plug-in directory. Most, if not all, of this type of plug-in are my oldest plug-ins and are only used with Photoshop x86. I'll move these from Photoshop's plug-in directory first just because they will be the easiest to work with. If I get a crash while they are gone then I'll remove my other plug-ins.
    Again, thanks guys I do appreciate this. I've never run into this particular issue before so it a good, albeit frustrating, learning process.

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

  • HT203175 I have no problem signing on to iTunes my issue is once on the site I can not use the "search". It says there is a runtime error R6025 pure virtual function call. Has anyone had this problem and how do I fix it. Thanks

    I do not have a problem getting in the iTunes stores. My issue is once on the site I can not use the "search". It says there is a pure virtual function call R6025. How can I solve this problem? Do I have to create a new account? Do I have to uninstall and re-install? Thanks

    Thanks so much for your feedback. I really appreciate any input here.
    If someone from Adobe could GUARANTEE that this problem would go away if I
    purchased CS4, I would pony up the cash and do it. However, I'm skeptical
    about that because I just saw someone else post a message on the forum today
    who is running CS4 and getting the exact same runtime error as me.
    I'll try un-installing and re-installing as Admin, and if that doesn't work,
    maybe I can find a used copy of CS3.
    In the meantime, I'm also wondering if a Photoshop file can carry any sort
    of corrupt metadata inside it once it has errored out? Reason I ask is, I
    had to port all of my old PSD files to the new computer, and I only seem to
    be getting this error when I attempt to work on one of the files that
    previously got the runtime error when they were sitting on my XP machine.
    When I create new files from scratch on this new computer, they seem to be
    working just fine (at least, for now).
    If so, I would probably be smart to never open those troublesome
    "errored-out" files again.

  • Error while activating expression Functional call

    Hi All,
    I created a functional call expression..I mainteined target function name and result object as well..The syntax check doesn't return any error messages.But when I try to activate it , I get an error message
    ZCALL_FUNCTION_1 (Expression) : No active version found for time stamp 20.111.018.120.507 (Details) Display Longtext.
    I activated all the subobjects..But I still I get the above mentioned error.. Could anyone please suggest me the solution..
    Regards,
    Raghu.

    Hi ,
    Please implement note  1639477.
    Thanks and Regards,
    Rama.

Maybe you are looking for

  • Can anyone explain this logic?

    Totally been pulling my hair out over this over the past few nights... I have a flash file that has 101 frames. Frame 1 is a navigation page that does a _root.gotoAndStop(x); on 100 buttons. Each of the 100 frames there after have between 50 and 100

  • Fix for imessage and facetime not working in iOS5

    I HAVE THE SOLUTION - It's worth shouting about! will work on itouch as well Upgraded 3 devices to IOS5. iphone 4, iPad 2 and iTouch (4th Gen). iMessage activates but during sending message it get stuck at 90%, Facetime stopped working on all 3 devic

  • Lost slideshow?

    Hello, I managed to delete a slideshow and then went on to re-save my project before I realized what I had done. Is there anyway that I can restore my project or find what I deleted? I'm supposed to have 40+ copies of this DVD by saturday. Edit Undo

  • IPhone and EAP-TLS with ACS & 5508

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in

  • Load Data to Hierarchy

    Hi, I have mainted the Cost Center Hierarchy in SAP, I see Hierarchies & Master Data transfared from SAP to BW I see that The Hierarchy is defined very well My problem is some values transferred to BW but falls under 'unassigned' Whay should I check