SAP NW RFC SDK throws RFC_INVALID_PARAMETER when running sample programs?

Hi there,
I have just downloaded the latest version of the SAP NW RFC SDK (NWRFC_7-20004565.SAR) for Linux 64 bit from the Service Marketplace and am trying to run the demo programs.
NOTE: I removed the "sapnwrfc.ini" from the current directory so that it would not be used at all..
Also note that I can use the OLD RFC SDK and connect happily to the same SAP system I am trying to connect to below using the SAP NW RFC SDK....so I definetly have the cirrect settings.....
So I compiled a CLIENT test program like:
gcc -m64 -Wall -g ./sflightClient.c -I/home/lynton/Desktop/nwrfcsdk/include -L/home/lynton/Desktop/nwrfcsdk/lib -lsapnwrfc -lsapucum -o ./sflightClient
And then passed in VALID paramters to an SAP system I have access to and I keep getting RFC_INVALID_PARAMETER even though I have not touched the code below in the sflightClient.c program
     loginParams[0].name = cU("ashost");     loginParams[0].value = argc > 1 ? argv[1] : cU("hostname");
     loginParams[1].name = cU("sysnr");     loginParams[1].value = argc > 2 ? argv[2] : cU("50");
     loginParams[2].name = cU("user");     loginParams[2].value = argc > 3 ? argv[3] : cU("user");
     loginParams[3].name = cU("passwd");     loginParams[3].value = argc > 4 ? argv[4] : cU("******");     
     loginParams[4].name = cU("client");     loginParams[4].value = argc > 5 ? argv[5] : cU("800");
     loginParams[5].name = cU("lang");     loginParams[5].value = cU("EN");
I have also tried the stfcDeepTableServer.c program....and there I put in VALID settings....(and made the parameters UPPERCASE just like the settings in the "sapnwrfc.ini" file....
serverCon[0].name = cU("PROGRAM_ID");     serverCon[0].value = cU("TEST_SERVER");
        serverCon[1].name = cU("GWHOST");     serverCon[1].value = cU("test.server");
     serverCon[2].name = cU("GWSERV");     serverCon[2].value = cU("sapgw00");
     repoCon[0].name = cU("CLIENT");     repoCon[0].value = cU("000");
     repoCon[1].name = cU("USER");          repoCon[1].value = cU("BCUSER");
     repoCon[2].name = cU("PASSWD");     repoCon[2].value = cU("minisap");
     repoCon[3].name = cU("LANG");          repoCon[3].value = cU("EN");
     repoCon[4].name = cU("ASHOST");     repoCon[4].value = cU("test.server");
     repoCon[5].name = cU("SYSNR");     repoCon[5].value = cU("00");
        repoCon[6].name = cU("TRACE");     repoCon[6].value = cU("3");
I have the UUIDD daemon running perfectly on my box, but yet I keep getting this RFC_INVALID_PARAMETER regardless if I just test the SERVER REGISTRATION or a simple client connection.
I am connecting to a NON unicode system but that would not make a difference.....
Any idea what would cause this? Any help would be greatly appreciated ....
Thanks
Lynton

I have similar problem. My simply program use 7.10_x64_nwrfcsdk for Linux x64 and 7.10_IA32_nwrfcsdk for 32bit Linux. I has been prepared subroutine to convert ASCII to UTF16LE and control 2-byte Unicode length.
Program is working perfectly on x64 environment but didn't work on 32bit. I prepared log for it. In log converted to UTF16LE data are present as hex
x64
=================================================
Open library libsapnwrfc.so done, handle 0x1ccac00
ahost=10.146.0.53
61 0 73 0 68 0 6F 0 73 0 74 0
31 0 30 0 2E 0 31 0 34 0 36 0 2E 0 30 0 2E 0 35 0 33 0
sysnr=01
73 0 79 0 73 0 6E 0 72 0
30 0 31 0
client=500
63 0 6C 0 69 0 65 0 6E 0 74 0 
35 0 30 0 30 0
user=dybikowskiz
75 0 73 0 65 0 72 0
64 0 79 0 62 0 69 0 6B 0 6F 0 77 0 73 0 6B 0 69 0 7A 0
lang=EN
6C 0 61 0 6E 0 67 0
45 0 4E 0
Start login to SAP
Login to SAP done, handle 0x1d863b0
================================================
x32
================================================
Open library libsapnwrfc.so done, handle 0x900fb78
ahost=10.146.0.53
61 0 73 0 68 0 6F 0 73 0 74 0
31 0 30 0 2E 0 31 0 34 0 36 0 2E 0 30 0 2E 0 35 0 33 0 
sysnr=01
73 0 79 0 73 0 6E 0 72 0
30 0 31 0
client=500
63 0 6C 0 69 0 65 0 6E 0 74 0 
35 0 30 0 30 0
user=dybikowskiz
75 0 73 0 65 0 72 0
64 0 79 0 62 0 69 0 6B 0 6F 0 77 0 73 0 6B 0 69 0 7A 0
lang=EN
6C 0 61 0 6E 0 67 0
45 0 4E 0
Start login to SAP
----Error handling begin-----
errorInfo.code: 20
RFC_INVALID_PARAMETER
errorInfo.group: 5
EXTERNAL_RUNTIME_FAILURE
errorInfo.key: R
errorInfo.message:
-----Error handling end -----
No connect to SAP
Because ASCII conversion to UTF16LE (http://en.wikipedia.org/wiki/UTF-16) is very simple, I prepared function
char* ascii2utf16le( char *text_ascii)
    int rec=-1;
    int i=0;
    int j=0;
    int n=0; 
  size_t inbufsize = strlen(text_ascii);
  size_t outbufsize=(2*inbufsize);
   i=2*inbufsize;
  char *converted = calloc(outbufsize, sizeof(char));
    for(j=0;j<i;j++)
        if(0==(j%2))
            converted[j]=text_ascii[n];
            n++;
        } else {
          converted[j]=0;
        printf("%X ",converted[j]);
  printf("\n");
    char *converted_str = converted;
    return converted_str;
and next I use it to loginParams[0].name = ascii2utf16le("ashost"), etc.
Fixed-length Unicode representation expected by SAP R/3 is under control, but on Linux 32bit not work.
I haven't where is possible problem?

Similar Messages

  • Runtime error when running sample program VS8, occi10

    Please, help!
    When running a sample program (VS2005 v8, oraocci10.lib, oraocci10.dll, both downloaded from the recommended Oracle site http://www.oracle.com/technology/tech/oci/occi/occidownloads.html for Oracle release 10.2.0.3.0 )
    I receive the following runtime error:
    R6034 An application has made an attempt to load the C runtime library incorrectly.
    When I build the program with VS 7 or VS 7.1 libraries, I receive env->CreateConnection error

    Hi,
    Can you just give more explanation on what you are trying to do, like conditions.
    Are doing first time init.
    Reg
    Pra

  • SAP NW RFC SDK

    Dear All
    I have unpacked SAP NW RFC SDK inside the /Program Files/SAP/FrontEnd/SAPgui/.
    As a result new Folder nwrfcsdk is created.
    When I tried to run(at the command prompt) the one of the EXE file present inside the /nwrfcsdk/bin, I get a message "This application has failed to start because SAPNWRFC.dll was not found".
    But I can see the said DLL inside the /nwrfcsdk/lib folder.
    Is their anything needed to link the /nwrfcsdk/lib and /nwrfcsdk/bin folders ?
    Please help to over come this issue !
    RJ
    System : Windows XP

    Hello,
    Could you please post the solution as well, I encounter the same issue.
    Thanks, best regards
    Tobias

  • Crash in SAP NetWeaver RFC SDK DLL

    Hello community,
    I have a problem with the SAP NetWeaver RFC SDK. Once in a while I get a crash with such error message:
    Unhandled exception at 0x000007FEF1D3DD6E (sapnwrfc.dll) in bridgeserver.exe.22108.dmp: 0xC0000005: Access violation reading location 0x0000000000000008.
    Basically I get function metadata, set the call parameters using the API calls and call RfcInvoke. It crashes. The callstack is:
    sapnwrfc.dll!000007fef1d3dd6e()
    sapnwrfc.dll!000007fef1d56613()
    msvcr80.dll!_CallSettingFrame ()
    msvcr80.dll!__CxxCallCatchBlock ()
    ntdll.dll!RcConsolidateFrames ()
    sapnwrfc.dll!000007fef1d5653a()
    sapnwrfc.dll!000007fef1d2c4f7()
    call RfcInvoke from my code
    I've got the call stack from one of the two crash dumps I've got. I took a look on the registers and assembly of the top frame and it looks like an indirect acces to a field of a structure but the pointer to structure is NULL.
    Is there any way I can debug it further? I'm already pretty sure that the parameters to RfcInvoke are correct (no messed-up pointers).

    Thanks Mike,
    For example we want to executie Function Module and need to prepare/allocate TABLE parameter.
    In doing so we need to invoke function RfcGetStructureDescHandle is described in doc.
    However, we cannot find it anywhere in H files under SAP NW SDK 7.10 dir structure.
    Do you have an example of how to create a TABLE parameter (export for example).
    We are going to reproduce the symptom with the demo source distributed with the SDK.
    Any help/suggestions is greatly appreciated,
    Alfonso

  • SAP Netweaver RFC SDK bindings for Node.js

    Hi all,
    I have just completed a first version of bindings to the SAP Netweaver RFC SDK for [Node.js|www.nodejs.org].
    You are encouraged to inspect and download the source code on [https://github.com/jdorner/node-sapnwrfc|https://github.com/jdorner/node-sapnwrfc]. For further convenience, I have also supplied a package for use with the node package manager (npm). Nevertheless, you will have to download the SAP NW RFC SDK beforehand. Thus, you should carefully read the README on GitHub for more detailed instructions.
    Please let me know if you have problems installing/compiling the module. At the moment it has only been tested on a x86_64 linux platform.
    Regards,
    Joachim

    Thanks Mike,
    For example we want to executie Function Module and need to prepare/allocate TABLE parameter.
    In doing so we need to invoke function RfcGetStructureDescHandle is described in doc.
    However, we cannot find it anywhere in H files under SAP NW SDK 7.10 dir structure.
    Do you have an example of how to create a TABLE parameter (export for example).
    We are going to reproduce the symptom with the demo source distributed with the SDK.
    Any help/suggestions is greatly appreciated,
    Alfonso

  • Download latest SAP NW RFC SDK

    Hello,
    I need to know where I can download the latest SAP NW RFC SDK (7.20). According to note 1025361 it should be available for the following platforms I need:
        Windows x86 32-Bit (Versionen: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7)
        Windows x86_64 64-Bit (Versionen: Windows Server 2003, Windows Vista, Windows Server 2008, Windows Server 2008 R2, Windows 7)
    I followed the path mentioned there
    http://service.sap.com/patches
    -> Browse our Download Catalog
    -> Additional Components
    -> SAP NW RFC SDK
    -> SAP NW RFC SDK 7.11
    -> <Plattform>
    -> NWRFC_9-20004xxx.SAR
    But there is no NW RFC SDK download for Windows x86 32bit, only Windows x64 64bit. But I also need the 32bit SDK. Where can I find it?

    I think Windows Server I32 32bit should do it...
    I'm trying this out now...

  • SAP Gateway- environmental variables not loaded when running brconnect

    Hello
    i have installed the Sap gateway on MSCS
    and the RFC check in sm59  is successful,
    However when i run a job in db13 it fails with "brconnect is not recognized as ......... "
    <sid>adm has all environmental variables set correctly
    SAPService<SID> has them too
    when i run  brconnect on OS level it works fine with <sid>adm and SAPService<SID>
    however if create a brconnect.cmd file where i specify the command as
    SET ORACLE_SID= ....
    SET SAPDATA_HOME=....
    C:\windows\sapcluster\brconnect.exe ...........
    and run it in sm69 it works fine
    Any ideas how to solve this, seems the variables are not taken when running sapxpg
    , i don't want to edit the SDBAC for every  command
    P.S
    set from sm69 returns only the system wide variables, however i have the two systems on this host, and can not make the environmental variables for ORACLE_SID and SAPDATA_HOME system wide as this will cause problem with the other sap system
    Edited by: Yavor Markov on Apr 12, 2010 6:07 PM

    Hi Markov,
    Can you tell us with which user id you have installed SAP as well as check the sap services are running with which user id, if it is not <sid>adm then you have to check the environment variables of that user.
    Also you can try adding c:\windows\sapcluster in PATH environment variable.
    Regards,
    Kishore Soma

  • Jar file throw errors when running

    Hi all.
    I am working with Eclipse IDE. It has a wizard to create a jar file.
    When I am running the program via the Eclipse it runs fine!!!
    But, when I am running with command line I am getting the following error:
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/starb
    ase/diff/DiffException
    at compareViews.CompareViews$1.run(CompareViews.java:40)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    You need to include the libs you use either into the classpath or into the JAR you create (via ANT, for instance).

  • Acrobat sdk, not able to run samples, getting a message, unable to start the program

    Hi,
    I have downloaded Acrobat sdk XI and tried to run plugin samples  in visual studio 2010, It is build successfully but when I try to run the program am getting an error message saying " Unable to start  Program 'C:\Users\downloads\sdk110_VI_win\Adobe\acrobatXISdk\Version1\Plugin Support\samples\BasicPlugin\Win32\Debug\BasicPlugin.api'."
    Can anybody help me finding out why am getting this message.
    Thanks.

    How do you run the program?
    I need to copy the compiled BasicPlugin.api under Acrobat\plug_ins folder. I can create a subfolder of plug_ins and copy the .api file there. Just one level deep: if I create a subfolder under a subfolder of plug_ins, the .api file will not be found by Acrobat.
    Then I need to restart Acrobat and I find the plugin running. In particular, BasicPlugin add a new Acrobat SDK menu and a menu item under it.
    If I close Acrobat and go back to Visual Studio, I can push the Debug button which will open Acrobat for me and stop the program execution at any breakpoints I have set in the code.

  • It has an error when run a program in background job

    Dear Expert,
    we have a program
    when run it in background,it has a error "Error during import of clipboard contents" but when run it normally(run in front workbench se38 or run the t-code),everything is ok.i've used typingJDBG in the command box to debuge the background job,there has no error.
    whould you like to tell me what had happen? thanks a lot!
    addition: the program used a function ALSM_EXCEL_TO_INTERNAL_TABLE
    Thanks & Regards,
    Kerry
    Edited by: Kerry Wang on Aug 24, 2009 2:12 PM
    Edited by: Kerry Wang on Aug 24, 2009 2:14 PM
    Edited by: Kerry Wang on Aug 24, 2009 2:14 PM

    Hi,
      You cannot use FMs to get data directly from the presentation server when program is executed in the backgroud.
    Check the thread : GUI_DOWNLOAD
    Regards,
    Himanshu

  • "Error determining planning periods for calendar "  when running a program

    Hi,
    When i am running a program with date range say "01/05/2011" to "30/06/2011",the program is executing successfully without any error. When i am executing the same program with date range as a) "01/05/2009" to "30/06/2011" and b)"01/05/2008" to "30/06/2011" the program is failing with error as "Error determining planning periods for calendar". Can anyone suggest me what i should do to avoid the failure of the program with above date ranges also.
    Thanks in advance,

    Dear,
    Error message 61123:"Error determining planning periods for calendar &".The PPC planning calendar specified in the material master MRP 2 view for the material is  incorrectly.
    The planning calendar periods are insufficiently maintained for the planning calendar used.
    Check the period of planning calendar in MD26 and generate the correct period.You can avoid the problem in several ways:
    Maintain the planning calendar far enough in the future (at least until beyond  the end of the planning horizon).
    Also check any demand is lies beyond the validity period of planning calendar.
    Reduction of the planning horizon of MRP also can control such issue, as MRP planning horizon lies in an area in which the planning calendar is no longer maintained
    Regards,
    R.Brahmankar

  • Windows 7 is Error reporting when running a program generated with in Labview LV 7.1!

    Dear Labviewer's
    Once back in the yaers I'd generated a program with  - Labview 7.1.
    Now I'm informed that the version LV 7.1 is not supported by Windows 7.
    Now when i try to run the Program generated by Labview 7.1.  in windows 7 , I get communication error by the serial port. 
    Is there somehow somthing I can do to get this work. Is there any Runtime engines From NI for Windows 7.?
    Please Feed back if anyone got info for help.
    4 Stars ...
    HFZ
    Solved!
    Go to Solution.

    Have you installed a newer version of the NI-VISA runtime engine that will work with Windows 7?
    The most recent on the NI website appears to be version 5.0.3.
    http://joule.ni.com/nidu/cds/view/p/id/2257/lang/en

  • Macsafe 85w still not enough when running Heavy program on Macbook pro 2011 Quad Core

    Is there any official announcement from apple on how macsafe 85w works & design flow or diagram..??
    We know the magsafe 85w is not enough to run macbook pro quad core i7 and their family.. But there must be some reason why apple only allow maximum 85w only.. rite
    I run this multiple test on my Macbook Pro early 2011, 17" 2.2 Quad core i7, 8G ram, to proving that the 85W is not enough.
    -Im running this test on both OSX & win 7
    -the battery capacity is 20% when i running this test
    -the power adapter "macsafe" is plugin when i run this test
    1) macsafe 85w turn to green to stop charging when rendering HD movie in Final Cut pro 7 in OSX ( but then it will turn to orange to charged again after you cancel the render)
    2) macsafe 85w turn to green to stop charging when playing high graphic game such "Razor F1 2010" in Win 7 ( but then it will turn to orange to charged again after you quit the game)
    3) macsafe 85w turn to green to stop charging when editing AVCHD on Sony vegas Pro 10 in Win 7 (it will turn to orange to charged again after you quit the program)
    4) when the baterry reach 100%. then I run all of 3 heavy program above.. the baterry will drain slowly until 93% then it turn to orange to charging again.
    (this will happen only when you run heavy program) 85w macsafe itself also not enough to run these program.. still need little battery support..
    As i know this will happen to all macbook pro since before Quad core model. You must run heavy program, then you can determin this systoms..
    Lastly, I really hope that all of this symtoms are the "macsafe work design", & not the macsafe fault... & really hope this symtoms will not damage the battery because regullaly charge on & off.
    Maybe This is why new macbook pro design,, you cannot take out the battery... It still need the battery support also, while plugin..
    Thanks &
    Sorry broken english..

    "Maybe This is why new macbook pro design,, you cannot take out the battery... It still need the battery support also, while plugin.."
    Yes — but only when you're working the machine very hard. Most of the time, 85W is ample.
    "But,, we need the official announce by apple regarding this issue"
    No you don't. That's how it works. What good would an announcement from Apple do you?

  • PowerMac faster than intel Mac when running video programs?

    Hello everyone! Having a question now so wonder if any of you have the same experience?
    Recently i have many video works to do. I have a powerbook, which is the lasted 17inch powerbook and an intel imac (early 2008, 2.66GHz). I run the same version of finalcut pro and compressor. But thing become very strange, which is that when i run compressor to make final video files, my powerbook is much faster (about 2 times faster) than intel iMac. When i run XDCAM program to import video clips to finalcut from Sony XDCAM blueray reader, powerbook is also much more faster than intel iMac, and which is about 10time more faster than intel iMac. So it become very strange. I list my configurations below, and any of you can help me to solve the 'problem' or explain the strange fenominal.
    Maybe theres anything wrong with software configurations, any one can also help me with that?
    Thank you very much!
    Powerbook G4 17inch:
    CPU: powerpc G4 1,67GHz
    RAM: 2GB (two 1GB module)
    HDD: 120GB IDE
    System: Mac OS X Leopard 10.5.8
    Program: Final Cut Studio 2
    iMac 20inch Early 2008
    CPU: Intel Core 2 Duo 2,66GHz
    RAM: 4GB (two 2GB module)
    HDD: Cosair 256GB SSD
    System: Mac OS X Lion 10.7 (tried also on Snow Leopard)
    Program: Final Cut Studio 2 (tried also Final Cut Studio 3 on friends imac with the same configuration)
    Camera:
    Sony XDCAM PDW530 Broadcast Camcorder.
    Media:
    Sony XDCAM blueray disk
    Reader:
    Sony XDCAM blueray disc drive
    Program:
    XDCAM transfer for Final Cut Pro 2.12
    XDCAM browser software 1.20

    Of course it depends on what you're doing and how well you know how to use available resources... the general rule for Logic is:
    >>>Fastest machine with the most RAM you can afford.<<<
    That said, someone who knows what they're doing can get an amazing amount of effects and virtual instruments on an old PPC G5 computer running Logic 8.
    So, while fast machines will allow more plugins/VI with less overloads... knowing what you're doing will take you further so that the difference between machines would not make a difference in the music.
    pancenter-

  • Error when running a program /RPM/FIN_PLAN_INT

    when executing the program "/RPM/FIN_PLAN_INT", I'm getting an error stating as "Category ID does not exist for item.Instantiate categories first"
    This error is hitting for only 4 Items in list of all 173 Item. Hence the Financial cost are not getting update for all the items when executing the program. The DB update failed.
    I checked the financial Category IDs and its maintained properly and working fine with other Items. Why this is happening for only the 4 items? Am I missing something in config?
    Please experts provide me some valuable suggesions.

    Hi;
    When you define and edit the mapping between the project management role function ID and the financial planning view, category, or group. You can also decide on whether the cost or revenue rate is to be considered for the financial information calculation.
    1. Execute report /RPM/PLAN_INT_PREP to create financial and capacity categories and groups for the bucket or the portfolio items based on the parameters mentioned in the selection screen.
    2. Execute report /RPM/FIN_PLAN_INT to perform the financial planning for a portfolio item for the different portfolio items based on the parameters mentioned in the selection screen.
    Prerequisite: For the portfolio item, you must have executed report /RPM/PLAN_INT_PREP before.
    3. Execute report /RPM/BUCKET_ROLLUP to roll up the financial data for the different categories and groups of the portfolio items to its higher-level buckets.
    Hope this help you.
    Best Regards.
    Mariano

Maybe you are looking for

  • I want to create automatic PO generation for Non-Catalogue requisition.

    Hi All, From I-Procurement i am creating non-catalogue requisition and i am looking for autocreation of Purchase Order against that requisition.i dont have any BPA's or CPA's like wise for Catalogue Requisition and Punchout Requisition respectively.

  • How to include files in isolated storage

    I am developing an app that has some static files that I need to access. I would like to be able to include those files in my VS project and have them loaded to Isolated Storage when the app is installed on the phone. I am accessing the file with Iso

  • Accounting enteries during ARE-1?

    Hi All, Can any bodt tell me which G/l account will be hiit when we create ,Post & update ARE1 doc. Should they reflect in any excise registers or not? Please help me regarding this issue. Regards Sunil Garg

  • IX4-300D - Drive Status "ToolTip" Not Working

    Hello, According to the manual, when I hover my mouse over a drive in the image in Drive Management, the ToolTip should display the drive model, size, and status, including if the drive is failing.  However, mine does not display a ToolTip?  Is somet

  • AssignedConferenceTypeByDefault setting for recurring meetings

    I know that the default setting for the Lync variable "AssignedConferenceTypeByDefault" sets it so that your conference ID will change from meeting to meeting if changed from its default value of true to false. What I would like to know is what is th