RFC SDK linking errors

I tried the HP-UX 6.40 and 7.10 versions with the same result.   So I scanned /usr/lib for one of the symbols and came up with libCsup and libnisdb.  Adding -lCsup cleared up the missing symbols.
Still don't understand the Linux problem...

Please look at these...
INTEGRATION_DIRECTORY_HMI: Connection fails
ICM_HTTP_CONNECTION_FAILED
SAF - ICM_HTTP_CONNECTION_FAILED
HTTP adapter setup
Think these should help you out!
Check out this SAP Note- 824554
Also this links
ICM_HTTP_CONNECTION_FAILED
Cache Refresh~
https://websmp201.sap-ag.de/~sapdownload/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
regards
kummari

Similar Messages

  • IPhone SDK - Linking error with CLLocationManager

    Hello.
    I have a linking error when I try to use thr CLLocationManager in my iPhone application by using the example of source code given in the Developer Center.
    I have the following error : ".objcclass_nameCLLocationManager", referenced from literal-pointer@_OBJC@__clsrefs@CLLocationManager in localisation.o
    symbol(s) not found.
    Do you have an idea ?
    Thank you for your answer.
    Patrick Schevenels.

    Just for clarification, there's a flood of developers now purchasing Macs to code for the iPhone platform. For those of you new to Xcode, you add a framework by doing the following:
    1. Open your iPhone project in XCode
    2. In the project window, ctrl+click (or right-click if you have 2-button mouse) on 'Frameworks' folder > Add > Existing Frameworks
    3. Navigate to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Li brary/Frameworks/CoreLocation.framework
    4. Click 'Add' button
    5. Compile
    Also, for anyone coming for the ActionScript Java or C# world, I've been blogging on transitioning to iPhone OS development platform.
    http://www.digitalassassin.com/?p=15
    Message was edited by: P120D1GY

  • RFC SDK extraction error: RFC_12-20001774.SAR

    I have downloaded this file twice, but am unable to extract the contents.  I get the error "format error in header".
    The command used and results are shown below.
    sapcar.exe -xvf RFC_12-20001774.SAR
    processing archive RFC_12-20001774...  
    format error in header  
    I have downloaded other SDK files and extracted their contents without problems.
    Any input you can provide is greatly appreciated.
    Regards, Dan

    Please note the header of this forum: "This forum is dedicated to all other development-related questions which are not directly addressed by other forums. This includes Business Objects SDKs, products, or technologies which do not fall under BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server, or Crystal Reports (for example Desktop Intelligence SDK, Universe Designer SDK, Portal Integration Kits, Java User Function Libraries, and other third party technologies or development languages). "
    I do not think you are using any of the products described above. Please post to the correct forum.
    Ludek

  • Errors compiling program with RFC SDK 700 for ECC 6.0

    Hi,
    We are getting an error when trying to compile a program on HP_UX HP9000.  We downloaded the RFC SDK for 700.  The command we are using is:
    cc sapsockets.c librfc.a -o sapsockets -lm -lcl +DA2.0W
    The error we receive is:
    ld: Unsatisfied symbol "xdr_string" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__nw__FUl" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__dl__FPv" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "xdr_free" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "[Vtable]key:__dt__21__versioned_type_infoFv" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__PureVirtualCalled" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__dla__FPv" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__nwa__FUl" in file librfc.a[cpictlib.o]
    ld: Unsatisfied symbol "__ConstructMarkedArray__FPvUiUlPFv_vT4" in file librfc.a[cpictlib.o]
    9 errors.
    I don't have much experience in this area.  Sorry I couldn't supply more information.
    Any help is appreciated.
    Thanks,
    Domenick

    See note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK
    HP-UX (PA-RISC, 64 bit)
    aCC -DSAPonUNIX -DSAPonHPPA -DSAPwithUNICODE +DD64 -Aa +W392,829,818,887 -DSAPwithTHREADS -mt -w +O2 -DNDEBUG +inst_compiletime -c <program>.cpp
    aCC -Wl,+n,-z -Wl,-a,default +DD64 -o <program> <program>.o libsapnwrfc.sl libsapucum.sl [and possibly libicudecnumber.sl]
    Markus

  • RFC Windows SDK compile error

    Hello.  I downloaded the RFC SDK for Windows (RFC_23-20000056.SAR) and I am attempting to compile some example code I found out on the Web.  I am NOT a C+/C person so I am new to the build process and requirements for linking, etc..  I am using Bloodshed Dev-C+ to edit, compile and build and I am running into the following errors with 'undefined references' to RFC methods:
    ++++++++++  LOG OUTPUT  ++++++++++++++++++++++++++++++
    Compiler: Default compiler
    Building Makefile: "C:\DEV\RFC_Test_console\Makefile.win"
    Executing  make...
    make.exe -f "C:\DEV\RFC_Test_console\Makefile.win" all
    g+.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c/3.4.2/backward"  -I"C:/Dev-Cpp/include/c/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c+/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/DEV/RFC_Test_console/rfcsdk/include"  
    g++.exe main.o  -o "RFC_Test_console.exe" -L"C:/Dev-Cpp/lib" -L"C:/DEV/RFC_Test_console/rfcsdk/lib"  rfcsdk/bin/librfc32.dll 
    main.o(.text+0x1ad):main.cpp: undefined reference to `ItCreate@16'
    main.o(.text+0x203):main.cpp: undefined reference to `RfcOpen@4'
    main.o(.text+0x23e):main.cpp: undefined reference to `RfcCall@16'
    collect2: ld returned 1 exit status
    make.exe: *** [RFC_Test_console.exe] Error 1
    Execution terminated
    +++++++++++++  END LOG OUTPUT  +++++++++++++++++++++++++
    I have my Dev-C++ project include directory set to ..\rfcsdk\include and my project lib directory set to ..\rfcsdk\lib.
    Here is my code:
    #include <cstdlib>
    #include <iostream>
    #include <vector>
    #include "saprfc.h"
    #include "sapitab.h"
    using namespace std;
    int main(int argc, char *argv[])
        static RFC_ENV            new_env;
        static RFC_OPTIONS        rfc_opt;
        static RFC_CONNOPT_R3ONLY rfc_connopt_r3only;
        static RFC_PARAMETER      exporting[1];
        static RFC_PARAMETER      importing[1];
        static RFC_TABLE          tables[1];
        RFC_HANDLE                handle;
        RFC_RC                    rc;
        char *                    exception_ptr;
        ITAB_H                    ltab;
        char                      lst[100];
        char *                    lpt;
        int                       line, lnr, len;
        //Objects for data retrieval
        struct apr_rule
          int product_key_1;
          int product_key_2;
          double alpha_1;
          double alpha_2;
          double gamma;
          std::string operation;
       //std:: vector<apr_rule>          APR_VEC;
       rfc_opt.client   = "003";
       rfc_opt.user     = "FRESINA";
       rfc_opt.language = "EN";
       rfc_opt.password = "init21";
       rfc_opt.trace    = 0;
       rfc_opt.mode     = RFC_MODE_R3ONLY;
       rfc_opt.connopt = &rfc_connopt_r3only;
       rfc_connopt_r3only.hostname = "ld1051.wdf.sap.corp";
       rfc_connopt_r3only.sysnr = 9;
       ltab    = ItCreate( "BARMI", 100, 0, 0 );
       importing[0].name = NULL;
       exporting[0].name = NULL;
       tables[0].name = "A";
       tables[0].nlen = 1;
       tables[0].type = TYPC;
       tables[0].ithandle = ltab;
       tables[0].leng = 100;
       handle = RfcOpen( &rfc_opt );
       if( handle == RFC_HANDLE_NULL )
            return 1;
    Install error handler
        //new_env.allocate = NULL;
        //new_env.errorhandler = rfc_error;
        //RfcEnvironment (&new_env);
       rc = RfcCall (handle,
                          cU("RFC_SYSTEM_INFO"),
                          exporting,
                          tables);
        if (rc != RFC_OK)
            //rfc_error (cU("RfcCall"));
        return EXIT_SUCCESS;
    Any ideas why this won't compile?  I have also tried the sample code in the SDK (sapinfo.c) and this will not compile as it has an issue with the printfU() macro and a statement around '_MSC_VER'.
    Thanks.
    Anthony

    Hi,
    This problem usually occurs when you are installing from an ISO build for a different architecture.
    Windows SDK now have different ISO’s for different architectures. Please download the correct ISO based on your system platform and architecture type.
    Karen Hu
    TechNet Community Support

  • NW RFC SDK: No more human-readable RFC error messages?

    I'm converting my program from the classic RFC SDK to the NetWeaver one.
    Apparently, the RFC_ERROR_INFO.message value is no longer filled with the proper human-readable error message as it used to be.
    Eaxmple: trying to create a function description for a non-existant function
    Classic SDK: "Function module "Z_MYFUNC" not found."
    NetWeaver SDK: "ID:FL Type:E Number:046 Z_MYFUNC"
    I don't see how to get the old message back. Can anyone help? Thanks!

    I am using nwrfcsdk in c directly, I have encountered some other issues, you may
    check the nwrfcsdk init release blog by Ulrich via
    /people/ulrich.schmidt/blog/2007/05/10/sap-netweaver-rfc-sdk
    May be the patch 1 have solved this issue already.
    sapnote 1056472 SAP NW RFC SDK 7.10 -- Patch level 1

  • Link errors when building with librfc.a from RFCSDK 7.00 for z/OS 32 bit

    There is a disparity between the documentation and the contents of the RFCSDK for z/OS 32 bit.
    The documentation included with the SDK is for older versions of the RFCSDK and discusses the librfc dll and librfc.x sidedeck file. However, the new SDK no longer includes the rfclib dll and rfclib.x sidedeck file. Instead, it includes the librfc.a library file.
    Simply compiling and linking with librfc.a is not enough. Numerous link errors occur. It appears that an SAP specific define must be required in order to properly decorate rfc functions. Below is an excerpt of the link errors I am receiving.
    Any help on this issue would be greatly appreciated.
    Thanks,
    Bob
    IEW2456E 9207 SYMBOL ItDelete UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcClose UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcReceive UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcListen UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcCall UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
    DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcGetAttributes UNRESOLVED. MEMBER COULD NOT BE INCLUDED
    FROM THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcOpenEx UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL ItCreate UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcLastErrorEx UNRESOLVED. MEMBER COULD NOT BE INCLUDED
    FROM THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL RfcInstallStructure UNRESOLVED. MEMBER COULD NOT BE
    INCLUDED FROM THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL ItGetLine UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM
    THE DESIGNATED CALL LIBRARY.
    IEW2456E 9207 SYMBOL ItFill UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE
    DESIGNATED CALL LIBRARY.

    Here is a link to the info on how to access the 4200 set up pages and how to do Port Forwarding with it
    http://portforward.com/english/routers/port_forwarding/Siemens/4200/iChat.htm
    Use the Access info and then see if you have it doing UPnP to open the ports.
    If it is then the Port Forwarding does not need setting.
    Next, if you did originally set it to do Port Forwarding this should have pointed to an IP (The one your computer has/had)
    Check the Port Forward that is set is pointing to the IP the computer has now by Looking in System Preferences > Network
    QUite a way done the log your end suddenly switches the port it sends the SIP part of the invite on
    INVITE sip:user@rip:61042 SIP/2.0
    Via: SIP/2.0/UDP sip:60442;branch=z9hG4bK672a7283709f480e
    Max-Forwards: 70
    To: "u0" <sip:user@rip:61042>
    From: "0" <sip:user@lip:16402>;tag=2100237526
    Call-ID: 5c6e32e2-2788-11dd-904a-8c2872d74012@lip
    CSeq: 1 INVITE
    Contact: <sip:user@sip:60442>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 744
    This is not an iChat port and it messes up where iChat then says to send the Video and Audio data.
    The log from the other end implies the ports are not even open.
    10:42 PM Wednesday; July 9, 2008

  • SAP RFC SDK 7.10 Compilation Issues

    Hello ,
    We have a Pro*C program that is using the RFC SDK 7.10
    When we are compiling our program with Pro*C Compiler in HP UX 11iv2 os we are getting the following errors:
    SAP_U16_PROTOTYPE_STDC(mkstemp)..1 PCC-S-02201, Encountered the symbol "mkstemp" when expecting one of the following: Error at line 1895, column 1 in file /home/psoni/rfcsdk-710/orgseclib/sapuc.h  SAP_U16_PROTOTYPE_UO(dirname) 1 
    PCC-S-02201, Encountered the symbol "SAP_U16_PROTOTYPE_UO_HLP" when expecting on
    e of the following: ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
       ||= ^= | & == != <= >= << >> ++ -- ->
    The symbol ";" was substituted for "SAP_U16_PROTOTYPE_UO_HLP" to continue.
    Syntax error at line 1901, column 1, file /home/psoni/rfcsdk-710/orgseclib/sapuc.h:
    Error at line 1901, column 1 in file /home/psoni/rfcsdk-710/orgseclib/sapuc.h
    SAP_U16_PROTOTYPE(ecvt) 1
    PCC-S-02201, Encountered the symbol "extern" when expecting one of the following
    :   ; , = ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>= &&=
       ||= ^= | & == != <= >= << >> ++ -- ->
    I had checked the files sapuc.h and sapucx.h are correctly included in my program.
    Also I checked for the errors : that the reference of some constants like 
    SAP_U16_PROTOTYPE is present is sapuc.h - However I am not able to
    identify the cause of compilation issues.
    Please can anyone guide me - or give any hints as to how this compilation issues can be resolved.
    On sap rfc sdk version 6.20 with HPUnix 11iV1  we did not face such problems. Post that release  we have tried all libraries including 6.40  and all of them are giving the above errors.
    Thanks for the help.
    Regards,
    Shivani

    This compiler error looks really strange.
    Without your sources (of the affected file) and the full command line it's impossible to suggest something.
    Markus

  • Error: Transaction IDX1: Port SAPRP1, client ,RFC destination contain error

    Hi All,
      I am faceing the problem while executing the XI ,
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>Transaction IDX1: Port SAPRP1, client , RFC destination contain errors</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: Transaction IDX1: Port SAPRP1, client , RFC destination contain errors</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    ============
    It is showing this error and the idoc is not posting to the SAP. When i checked out the IDX2 i am not getting any such structure of our IDOC type, So do i need to create the structure manually, or will it create automaticallywhen the idocs willposted .
    Is there any import and export option for this.
    Please treat this as urgent , thanks in advance...

    Hi Jay,
    how did you create port using IDX1 ,I think you must have to follow the naming convention there.Any user given name might not work.
    I think in your case , create port as SAPRP1 using IDX1.
    can you you give a try  with that.port name exactly same as SAPRP1.
    you may also refer this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm

  • RFC SDK download

    I'm a newbie and purchased ABAP Objects book that has mini-basis system. Is there a way for me to get a copy of the RFC SDK so I can interface programs to my mini-basis system without having purchased a real system? I know there is a service marketplace but registering requires a customer number. 'Initial' is the customer number for a mini-basis system but the site won't accept that.

    Hello,
    you can get it via the SAP Service Marketplace (SMP). Please have a look at these links:
    SAP NetWeaver RFC SDK (SAP note 1025361):
    http://service.sap.com/swdc
    -> Download
    -> Support Packages and Patches
    -> Entry by Application Group
    -> Additional Components
    -> SAP NW RFC SDK
    -> SAP NW RFC SDK 7.10
    -> SAP NW RFC SDK 7.10
    SAP RFC SDK:
    http://service.sap.com/swdc
    -> Download
    -> Support Packages and Patches
    -> Entry by Application Group
    -> Additional Components
    -> SAP RFC SDK UNICODE
    Please reward points if helpful.
    Regards,
      Juergen

  • RFC SDK - timeout for RFC execution

    Hi!
    I was wondering if there was a way, when using the RFC SDK in client mode, to prevent a RFC call from taking more than a specified time to execute on the server.
    Can I use the API RfcCallReceiveTimed?
    Thanks,
    Mustansir

    See note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK
    HP-UX (PA-RISC, 64 bit)
    aCC -DSAPonUNIX -DSAPonHPPA -DSAPwithUNICODE +DD64 -Aa +W392,829,818,887 -DSAPwithTHREADS -mt -w +O2 -DNDEBUG +inst_compiletime -c <program>.cpp
    aCC -Wl,+n,-z -Wl,-a,default +DD64 -o <program> <program>.o libsapnwrfc.sl libsapucum.sl [and possibly libicudecnumber.sl]
    Markus

  • 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 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?

  • Get data with rfc-sdk language c

    Good morning all,
    Me was given a task to develop a simple data read between C and SAP.  To foreshadow my prerequisites: I did not work with SAP and only have the possibilities of the NW7.01 Trial with a MaxDB database.
    I will use the RFC_READ_TABLE and the RfcCallReceive function. The error handling and opening the rfchandle runs.
    Using the RFC_READ_TABLE requires to fill the export parameters and handle the 3 tables, FIELDS, OPTIONS and DATA.
    Handling the tables throws the error:
    RFC Call/Exception: SYSTEM_FAILURE
    Group       Error group 104
    Key         RFC_ERROR_SYSTEM_FAILURE
    Message     Incorrect field length for 'Remote Function Call'.
    After searching here this problem I place 3 structs  to define the maximum length, which is returnd by the rfc:
    typedef struct tDATA
    {     SAP_CHAR     WA[512];
    }tDATA;
    typedef struct tFIELDS
    {     SAP_CHAR     Fieldname[30];
         SAP_CHAR     Offset[6];
         SAP_CHAR     Length[6];
         SAP_CHAR     Type;
         SAP_CHAR     Fiedltext[60];
    }tFIELDS;
    typedef struct tOPTIONS
    {     SAP_CHAR     WA[72];
    }tOPTIONS;
    Now using the size of these structs the error still stays the same.
    So how do I initialise the tables and export parameters, to receive a useable data returned in the DATA table?
    The declaration of the export and table structs is left out for now, I will post them immediatly if necessary.
    Thanks & Regards
    H.Fischer
    Edited by: HFischer on Aug 12, 2009 4:09 PM

    Hi all,
    I returned to my mind that there was a function embedded in the SDK which generates a  headerfile which could be implemented easily. Now I have the structs necessary for the tables but the problem is still the same. I tried some configurations on the termination of the parameter list and I observe that the rfc does not handle with 5 export parameter tables. Here is the parameter declaration I try to use.
    At last the tables are terminated with NULL, here I placed it at index 5 but with this the RFC throws an error about the RFC length mentioned in the first post. If I terminate at index 3 the "rfccallreceive" runs without error but returns two empty tables.
    Or is it a problem in the declaration of ROWSKIPS and ROWCOUNT?
    exporting[0].name = cU("QUERY_TABLE");
    exporting[0].nlen = strlen(cU("QUERY_TABLE"));
    exporting[0].addr = cU("SPFLI");
    exporting[0].leng = strlen(cU("SPFLI"));
    exporting[0].type = RFCTYPE_CHAR;
    exporting[1].name = cU("DELIMITER");
    exporting[1].nlen = strlen(cU("DELIMITER"));
    exporting[1].addr = cU(" ");
    exporting[1].leng = strlen(cU(" "));
    exporting[1].type = RFCTYPE_CHAR;
    exporting[2].name = cU("NO_DATA");
    exporting[2].nlen = strlen(cU("NO_DATA"));
    exporting[2].addr = cU(" ");
    exporting[2].leng = strlen(cU(" "));
    exporting[2].type = RFCTYPE_CHAR;
    exporting[3].name = cU("ROWSKIPS");
    exporting[3].nlen = strlen(cU("ROWSKIPS"));
    exporting[3].addr = cU("0");
    exporting[3].leng = strlen(cU("0"));
    exporting[3].type = RFCTYPE_CHAR;
    exporting[4].name = cU("ROWCOUNT");
    exporting[4].nlen = strlen(cU("ROWCOUNT"));
    exporting[4].addr = cU("0");
    exporting[4].leng = strlen(cU("0"));
    exporting[4].type = RFCTYPE_CHAR;
    exporting[5].name = NULL; /*position I mean*/
    importing[0].name = NULL;
    tables[3].name = NULL;

  • RFC call failed : Error when opening an RFC connection

    Hi,
    As a result of "Start Data Collection" operation in the t-code RZ70, I have got this error.
    "RFC call failed : Error when opening an RFC connection"
    Others things are with success message.
    Regards,
    Bala Raja

    hi
    check this links
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/da0f41026df223e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/da0f41026df223e10000000a155106/frameset.htm
    also check Tcode: SLDAPICUST.
    run tcode SLDCHECK? any error?
    Thanks
    Rodrigo
    PS: If useful reward points

Maybe you are looking for

  • Permissions sticking to read-only when folders copied to local drive

    Hello! So... I have a sharepoint that is read-only (archived jobs) everything works fine, but when people copy a folder to their local drive, they are forced to enter the server admin password when they try to move it to the their trash. If they copy

  • I want to know that if the Director could present different country's language.

    My system is simplified Chinese and Director is English. I want to know that if the Director could present different country's language. In my work, I inserted other country's language text in the Director Cast, but it can't right display the text.(e

  • How to run an iPhone non-GUI application in background

    Hi All, While looking into the web fouond that only one application can be run at a time in iPhone. So is there any way or work around to run a non-GUI app in iPhone in Background. This app will continuously query certain requests to iPhone regardign

  • Sound is not playing on apple tv2

    Once I updated my iPhone and iPad to iOS 5 I can no longer hear any sound on my apptv2 while using AirPlay , I can get the video part playing on apptv2 but with no audio

  • PS 7 and PSE 7

    Heads up. The downloads of PS 7 and PSE 7 are now available and I'm downloading them now. Quick question. The older versions are stored in directories with the version number in the name, i.e. C:\Program Files\Adobe\Adobe Premiere Elements 4.0 C:\Pro