Call RFC with DLL created with DCOM CONNECTOR

I try to call a RFC with a DLL that i created with the SAP R/3 DCOM CONNECTOR (Release 4.5.B):
My external soft calls the DLL, which calls the RFC, which calls a transaction (Call Transaction Mode N, Update S)...
When i test the RFC in SAP (SE37), it's OK.
But when i call the RFC with my soft (and with the DLL), the Call Transaction returns sy-subrc = 1.001 (the methode "AdviseRfcGuiSink" included in the DLL allows me to launch the debugging with my external soft).
I found no SAP notes about this problem.
If you met the same problem, could you help me ?
Thanks.
Julien.

Some Years later I have the same Problem.
As discripet in the post before - first I've got an error in the Method "CreateNewRow()" where the Method wants to return "return new byte[]()". Well I don't know why the .Net-Connector creates that code - but it looks strange to me.
The origin Code is:
    /// <summary>
    /// Creates an empty new row of type byte[].
    /// </summary>
    /// <returns>The newbyte[].</returns>
       public override object CreateNewRow()
            return new byte[]();;
With Changing that method I've got the same Error as in the post before:
System exception thrown while marshaling RFCTYPE_XMLDATAto .NET type.
Does someone has found a solution for that kind of Problem?

Similar Messages

  • Required Windows updates to run/load dlls created with Visual C++ 2013

    I have dlls created with VS2013 C++. Dlls are statically linked with runtime libraries and therefore do not require the redistributable to run on a machine that does not have VS2013 installed.
    I have a test machine with Win7 SP1 64-bit without any windows updates. When I try to load a dll created with VS2013 in an executable on that machine, the code dies. Another test machine with windows 7 SP1 fully updated using windows updates loads the same
    dll without a problem and the code runs fine.
    My question is which windows updates for Win 7 and Win 8  are necessary for dll created with VS2013 to load and run?
    Thanks. 

    I did use dependency walker. In my post above (third post in the thread) I actually state that: 
    "The code crashes(=dies) on the machine without windows updates. I used dependency walker and there are no missing dlls.
    Even if there were missing dlls, which there are none, those would be system dlls, because a machine with fully up to date Win7 loads and executes the code without a problem."
    The dll is statically linked (/Mt flag was used). For a good measure I installed redistributable which did not solve the problem. Besides static linking applies to runtime dlls, not the system dlls.

  • Multiplication error in DLLs created with SIT

    I have a problem with a multiplication in a DLL created with the Mathwork's Matlab/Simulink and National Instruments SIT. When multiplying two values of different types (fixed point types) I get really strange and unexplainable results. When I run the simulation in Simulink only, I do not get the error. But when running the same program as DLL in Labview I get a result of 146.xxx instead of 235. Feel free to chck out the included files (.mdl, .dll, .vi).
    I'm desperately looking for solutions.
    Philip
    Attachments:
    interface_test.vi ‏34 KB
    interface_test.dll ‏130 KB
    interface_test.mdl ‏11 KB

    Go ahead and hook up your error clusters and attach them to an indicator. This way you can see if there is a labVIEW problem with your code.
    I cannot run your code myself because of a lack of software but I opened the VI up and saw it was missing error handling.

  • Importing a DLL created with Cygwin

    I am trying to import a DLL created with Cygwin. This is a test DLL created by one of my collegue to validate the import process.
    When I use the import Wizzard, everything run ok. It recognise and build the structure based on the header file.
    When I click ok to generate the wrapper, the progress bar shows but nothing happens. I have to terminate the program (not responding).
    I found in the discussion forum that many users were having similar problem. I also found an interesting article on the subject: http://zone.ni.com/devzone/cda/tut/p/id/5412
    Following this, I reinstalled Cygwin with the packages mentioned in the article :
    gcc
    make
    sharutils
    tclck
    wget
    I also place the Cygwin path in the system path variable. I have also found that if the Cygwin path is not in the system path variable, the wizzard complete ok but the DLL is not able to run (cygwin1.dll is missing).
    Any help will be appreciated.
    RD

    I Claire, I am using Labview 8.6 the demo version.
    What I did is to do a scan of the bulletin board. http://forums.ni.com/ni/board/message?board.id=170​&message.id=384919&requireLogin=False
    I Can't say if this is the same problem I am experiencing but it looks very similar
    I have a Dell Latitude D830
    I have attached a copy of the DLL and an executable that is the core of the DLL.
    Hope this will help you figure it out.
    RD
    Attachments:
    dll.zip ‏4 KB
    test.zip ‏3 KB

  • Calling a dll created with vision 7.0 from visual basic doesn't work

    I created a dll using some vision 7.0 functions and Labview 7.0 environment. I call this dll from visual basic. The dll will work fine as long as I don't stop the visual basic program execution. As soon as I stop the program execution the dll will no longer work. I must reload the visual basic environment and the call to the dll will start working again. I created the exact same dll but I created it with vision 6.0 in Labview 6i environment. It works great and has no issues.
    Attachments:
    Test.vi ‏36 KB

    Roberto N. wrote:
    Thank you Jordan, I'm using Labview 7.1.
    Anyway I've resolved the problem by adding the "lvanlys.dll" file (present in "..\Labview 7.1\resource\lvanlys.dll" path) as support file in the building process. Now the DLL containing the analysis functions works correctly.
    Natalino Roberto
    Ok, you probably got lucky since the lvanlys.dll seems to implement that function directly. However most Advanced Analysis functions are just redirected by lvanlys.dll to the Intel Math Kerneal Library that gets installed with LabVIEW 7.1 and higher. The only way to get that properly installed with your LabVIEW executable or DLL is to create a LabVIEW installer in your Application Builder and make sure to select under "Installer Settings->Advanced" the "LabVIEW Run-Time Engine" and the "Analyze VIs Support". Then use that installer to install your DLL on another computer.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I debug a DLL created with MS Visual Studio C++ using CVI?

    I have developed a DLL using MS Visual Studio C++, which is called by an other application written in CVI.
    My goal is to debug the DLL written with C++ when is called from CVI.
    So far I have some msg popups, but I would like to have more debugging capabilities.
    Thanks, Adalbert

    Hello Adi11,
    As documented in the CVI Help under "Debugging DLLs": "In the LabWindows/CVI development environment, you can debug only DLLs you create in LabWindows/CVI with the Create Debuggable Dynamic Link Library command. Other development environments cannot debug DLLs you create in LabWindows/CVI."
    This information was also mentioned on the following discussion forum.
    Thanks.
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

  • Using DLLs created with LabWindows/CVI 8.0.0 in LabWindows/CVI 8.0.1

    Hi,
    I have created a project containing some methods with LabWindows/CVI 8.0.0 and then build the project and generated the DLL and LIB files. These DLL and LIB files are working fine in another projects created in LabWindows/CVI 8.0.0 (even on another machines).
    But when I use these DLL and LIB files in a project created with LabWindows/CVI 8.0.1 on another machine and try to call the methods of these files, the following error occurs: -
    "The program has caused a 'Unknown' fault at 001B:7C812AFB"
    Is this error occurs due to ther version mismatch or there is some other problem?
    Please help me to resolve this issue.
    Thanks,
    Sarabjit Singh

    Judging from this, I don't think NI has a newer version of this tool:
    http://forums.ni.com/t5/Measurement-Studio-for-VC/Convert-project-from-LabWindows-CVI-to-Visual-Stud...

  • DLL created with LV 7.1 Application Builder doesn,t work when analysis subVIs are present

    I'm looking for a solution of the following problem.
    The DLL created by the "sum1.vi" source works properly, while the DLL create by "sum2.vi" always gives a zero result.
    The "sum2.vi" source contains an additional "Hanning Window" VI (not wired), that seems to be the cause of the problem.
    If I delete the Hanning VI and re-build the DLL, the same works fine
    Is there a solution or is it not possible to make Labview DLLs when containing analysis VIs as filters, windows, FFTs, and so on?
    Thank you for your answers.
    N. Roberto
    Attachments:
    sum1.vi ‏12 KB
    sum2.vi ‏14 KB

    Roberto N. wrote:
    Thank you Jordan, I'm using Labview 7.1.
    Anyway I've resolved the problem by adding the "lvanlys.dll" file (present in "..\Labview 7.1\resource\lvanlys.dll" path) as support file in the building process. Now the DLL containing the analysis functions works correctly.
    Natalino Roberto
    Ok, you probably got lucky since the lvanlys.dll seems to implement that function directly. However most Advanced Analysis functions are just redirected by lvanlys.dll to the Intel Math Kerneal Library that gets installed with LabVIEW 7.1 and higher. The only way to get that properly installed with your LabVIEW executable or DLL is to create a LabVIEW installer in your Application Builder and make sure to select under "Installer Settings->Advanced" the "LabVIEW Run-Time Engine" and the "Analyze VIs Support". Then use that installer to install your DLL on another computer.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Using a "fopen" call in a DLL made with MatLab for Labview

    Dear Sirs:
    My name is Juan Crespo and I write you from Spain. I answer if you could help me with a Labview problem. This is the problem.
    I want to write a DLL for being used in labview, and i want to use matlab for write this DLL. I have been searching in the web and reading the NI "using external code in labview" manual in order to know what I must do.
    I know that if I want to use MatLab, I must build a "wrapper function" to avoid the different data type between MatLab and C. I have found on the web -Thanks to Alberto Sanchez- one example about how could a DLL could be written.
    But it exist one diference: I want to read a plain text file that has the input data. so I must read the file, store
    the data in an array and then pass this array to the "interface functions" but in a simple example this dont works
    My question is ¿How could I open a text file in order to use it as input data in a DLL in Matlab?
    Attached to this message is the code I use as "wrapper function". when I compile it there is no apparent errors, but when I try to use the DLL in a VI, an error appears.
    If I change this code and the input is made "manually" (using the VI) there are no errors. So I think that problem is in the way that Labview consider "fopen" function when I build a DLL. The "num.txt" file, where the data input are, is on the same directory that dll file and VI file.
    I hope that you can help me with this problem.
    Thank you very much in advance and please sorry for my bad english
    Best Regards
    Juan Crespo
    Attachments:
    foo_wrapper.c ‏2 KB

    Dear Juan Crespo,
    normally I don't answer questions concerning Matlab because I have no experience with it. But your question was waiting a long time and had to do something with DLL I decided to look at it.
    Your C code has a serious error. You are declaring a variabale named "in1" as "double *". You do not set this pointer to point to a variable. Then you use this uninitialized pointer in the fscanf function to read in from the file. The value is written somewhere in the address space at a place where "in1" is pointing randomly. This will cause an error or crash.
    Declare "in1" as "double" like you have declared "out". You must change some other places where you have used "in1".
    Waldemar writing from Germany
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to clear reference document with residue created with Automatic payment

    Dear All,
    Here is my scenario: This is related to vendor payment.
    F-47 Down Payment Request is created for amount Rs.1000.
    F110 Down Payment paid Rs.1000
    An invoice document type "KR" created with amount Rs.1250
    Using F-44, the downpayment and invoice is cleared resulting into an accounting document with Rs250 out standing.
    Now, if I try to run F110, the new document with amount 250, doesnt get picked up. I tried to give document num, doc type, still it is not working.
    Also, the requirement is to clear it using F110 only.
    Will appreciate any help.
    Thnx.
    Best regards,
    Karan a

    Hello,
    Please check in FBL1N whether the document is showing in open item, if yes then check the payment method. I have tried the same scenario in my system its working fine.
    If the document is not showing in open item then check the payment terms and change it accordingly or check the bill date and change it to come the document in the open item then run F110.
    Hope this would help you to clear your document.
    Thanks, Vijay Dikondwar

  • Issue with document created with a tax code related to a different Company Code

    Hello,
    we need to clear a document created with the tax code "YY" which is associated to the Company Code Espana even if the vendor of this document belongs to the Country Portugal.
    When we try to clear this documents we get the follow error:
    Tax code YY for Country Portugal has been deleted or incorrectly changed
    The problem is the tax code exists but it is associated to Company Code Espana and not to the Portugal one
    In order to cleare this document should we activate the tax code for Portugal, as well?
    Thank You

    Hello, Are you trying to post entry having Plant in Portugal? Thanks, Deepanshu

  • HT5225 what to do with podcasts created with GarageBand

    With Apple doing away with hosting my podcasts created with GarageBand, will I be able to submit future podcasts that will appear in iTunes?

    GarageBand wil make the actual recording of your podcast, together with chapter markers and images if you want an 'enhanced' audio podcast. It will not make the feed. It's designed to work directly with iWeb, which itself can post to any hosting service; but the file you save out of GarageBand can be used with any podcast creation program or service.
    However you need to distinguish between the different types of image. The images that GarageBand adds to the file are visible when you subscribe to the feed in iTunes as they are actually embedded in the media file. The image which appears on the Store page, and the data such as categories, subtitles and so on, is all in the feed and GarageBand does not and never has provided these. If you work with iWeb you can add those details there to produce the feed, or other methods will provide places you can enter the data.
    In your own interests, when you have a question please start a new thread rather than tacking on to an old one - this one is months old and indeed the OP's problem is not the same as yours. Questions about GarageBand itself are best asked in the GarageBand forum, and about podcasting in the Producing Podcast forum - you're in the iCloud forum and iCloud has nothing to do with this as it does not offfer website hosting.

  • Debugging a JNI DLL created with Visual C++

    Hello.
    Due to the necessary libraries, I need to create a DLL in Visual C++ to be called from my Java class:
    System.loadLibrary("my_dll_name");
    But I've got a problem: I'm newbie in Visual C++ and I would like to debug the DLL, so when I press F5 (Go for Debug mode), I get the message "Please specify the executable file". Obviously, I've got a DLL, not an .exe or .com file.
    I would be extremely obliged if anybody could share any experience.
    Thank you very much.

    What you nee to do is this:
    Run your java app (in an IDE if poss.) and have it pause at some point (if its a command line app., wait for a key, if its a Swing app, you're ok, just wait for the app. to appear. Now start VC6 and go
    menus:
    Build/StartDebug/Attach to process. Ther should be one process calleed java. Attach to that. If your DLL has debug info in it, you should be able to navigae to the source and set breakpoints etc.
    Alternativly, you could just put OutputDebugString(...) (this is a Win32 function) statements in your DLL and use DBMON.EXE (from the win32 SDK) to look at the output.

  • Photoshop CS6 file permissions issue with file created with Photoshop CC

    In our studio we have several capture stations and work stations all connected to one file server. An issue occurs when a user of CC creates a file and saves it to the server and a user of CS6 opens the file. The CS6 user cannot save the changes he just made to the file that was created in CC. The CS6 user can do a Save As with no issue. There is also NO problem if the file that was created in CC is transferred to a new drive using the Finder in Mac OS X.
    Has anyone else had a similar issue or know of a solution?
    Here is a screen cap of the error:

    We have solved our issue.
    After running Adobe updates on machine that uses CS6 and then re-starting that machine, our issue seems to have disappeared.
    Hope this helps others.
    Best of luck.

  • Trouble with PDF created with Captivate 6

    I have been using Captivate since version 4 and this is the first time I have had this problem. The generated PDF (which is the expected file size) displays a blank page with only the TOC button which sits there flashing rapidly. I have tried changing the targeted Flash Player version without any luck.  Previews and HTML output is fine and so is the .exe file. I am using Adobe Acrobat 11 on a 64-bit Windows system. This is a fairly small project with about 15 slides and some FLV videos. I have no problems with Distiller with any of my other programs (FrameMaker, LiveCycle, Photoshop etc.). Any settings I can fiddle around with?
    Any ideas?
    Nadeem

    Thanks for the helpful reference!
    To anyone else having a similar problem: the solution (while not ideal, since it requires disabling a desired feature) is to uncheck the "Show TOC" box in the TOC settings. To reiterate what was discussed in the forum, the problem apppears to be localised to Acrobat Pro/Reader XI. So far there is no resolution from Adobe.
    Nadeem

Maybe you are looking for

  • Dynamic Forms and WF

    Hello, I have designed a dynamic form, where user can add rows dynamically by clicking a button on the form, the form is working fine in preview in designer. this form is initiating a LC WF process, but, if I deploy this form to form manager as an XD

  • Installation of 11.5.9.20 on XP fails

    Hello there Here is the end of log file. Can some one tell me what exactly went wrong. I tried installation 3 times. I am also desperately looking on the web how to completely uninstall a failed installation. Is there any doc explaining how to clean

  • What is the use of AFFILIATE check box in Business partner?

    Dear Experts, There is a check box named AFFILIATE in the accounting tab of the business partner master data. Can any one please tell me the usage of that check box. The SAP Business one version is 8.8 and PL is 10. India localization. thanks and reg

  • Music File problems MAC not recognising them

    I have recently just bought a Macbook and transferred music files from my PC to the MAC. I seem to be having a problem with the Macbook recognising certain files as music as its currently just showing an image, without the additional duration info, e

  • Synchronize 2 function generators

    I have created a VI that outputs a sine wave on 2  5421 function generators. The amplitudes can be adjusted on the fly. The problem I am having is trying to keep the 2 signals in phase. I have tried all different combinations of triggering but it alw