RFC APIS

Please send some exmple ABAP program to expose a set of RFC Apis for accesing the function from a remote machine.
The RFC API can take necessary parameters such as SAP device name, LOMS name and .
The new RFC should work on both on Netweaver and R/3 platforms.

Please send some exmple ABAP program to expose a set of RFC Apis for accesing the function from a remote machine.
The RFC API can take necessary parameters such as SAP device name, LOMS name and .
The new RFC should work on both on Netweaver and R/3 platforms.

Similar Messages

  • Monitoring of older RFC Adapter messages - RFC API

    Hi,
    I have successfully implemented a number of scenarios (File to rfc & File to Idoc)that required external data lookup - using the RFC API (calling a customer RFC FM) (and parsing the response with DOM).
    I am also using Global variables to store my lookup responses to help minimize the number of RFC calls invoked.
    When trouble shooting - as expected the log in the communication channel for the RFC adapter shows the BAPI response. However the number of records is always restricted to 25.
    If I process a message with 30 records, and lets say the first RFC Lookup fails but the remaining 29 are successfully - because the log is limited to 25 I lose a record of this error.
    Am I missing another method of search?
    Is this just a display restriction and perhaps I could report over the underlying tables myself?
    Regards
    Andrew

    Communication channel monitoring is as i understood primarily für monitoring the module chain a message is eventually running through. Did you try monitoring via RWB->Message Monitoring or sxmb_moni? There also should be a reference to the response. Maybe I didn´t get you right, but as far as I remember RFC Calls are also listed there with a bigger history.
    Thomas

  • XI Mapping lookups RFC API

    Hi mates,
    Can you please share with me the following document on XI Mapping lookups RFC API by Michal?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    This link is broken I guess.
    thx in adv
    praveen
    [email protected]

    Hello,
    Why dont you get the article from here?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/mapping%20lookups:%20RFC%20API.pdf
    Regards,
    Jai Shankar

  • RFC API C++

    hi,
    I have written a remote enabled function, which is reading and writing xml data. It has one importing and one exporting parameter from the type "RAWSTRING". So it receives binary data in a byte array, interprets this as XML, reads data from the SAP table, build up a xml again and returns that as a byte array.
    I have written a java application, which reads an xml file and converts that to a byte array. After that it connects to SAP over JCO and calls the function. The data, coming back from the function, is then going to be written to a xml file again.
    Everything alright until now!
    But now I need to call that function over C++ by using the RFC API. In there, we have the function
    RfcCall and need to provide the object RFC_PARAMETER.In there, we have to set the length of the importing and exporting field in bytes.
    But how can I know, which size the result from the function is going to be? I mean, the XML result file can be in a various size!
    In java, I don´t have to set a length. So I can recieve and send data in a various size.
    How can I do that with C++ and the RFC API?
    thank You for the help!
    Reward points guaranteed!

    No ideas? Nobody who has used this API here?

  • How to Parse the XML generated by Mapping LookUp - RFC API

    Hi Friends,
    I m using the link by Michal Krawczyk for Mapping Lookups - RFC API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    How to parse the XML created in the target node ?
    Regards
    Pravesh

    Hi,
    Check the second half of my code in this blog,
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    It deals with webservice call's but almost the same for RFC.
    Regards
    Bhavesh

  • Mapping lookups - RFC API

    Hi
    I have cr8ed rfc lookup in UDF,and I want to parse this xml and use only the value I need
    I read in the forum that there are 2 ways of doing it :
    DOM and SAX
    any1 knows good weblogs/threads which ellaborates on how or explain how it should b done ?
    thx,Shai

    Hi Shai,
    This blog and article deals with calling your RFC from your JAVA MAPPING / User Defined Function.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    And now going to the next half of your question regarding SAX and DOM parsers....
    The user defined functions that you write in your Graphical Mapping has nothing to do with Java Mapping.
    In your Graphical Mapping, the parsing of source structure is handled interannly by XI.
    But, when you go for an explicit mapping technique like Java Mapping, you have to parse the source XML structure, so that you can write the logic for your mapping.
    Java Mapping will execute a method called Execute, that will take the source XML structure as the Input Stream and then, you have to parse the Input STream and to do this parsing, you use SAX or DOM parser.
    DOM processor loads the entire XML into the memory and is processor intenseive, SAX does it element by element and so is not processor intensive.
    If you are using SAX parser, there are 5 methods . They are:
    1) Start of the document(startDocument)
    2) start of the element(startElement)
    3) end of the element(endElement)
    4) end of the document(endDocument)
    5) chars()
    Also check with any java site about SAX events how it works etc.
    Java Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    On how to create XML docs with SAX and DOM go thruugh these links:
    http://www.cafeconleche.org/books/xmljava/chapters/ch09.html
    http://www.cafeconleche.org/books/xmljava/chapters/ch06.html
    Also go through these Blogs....
    /people/prasad.ulagappan2/blog/2005/06/08/sax-parser
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    I hope this helps...
    Regards,
    Abhy

  • NW RFC API

    When will Ruby NetWeaver RFC Connector be avialable for Windows XP? I've tried to install sapnwrfc-0.06, but has been unsuccessful. I've read the note, it looks like there is no version for Window XP. Thanks
    C:\Tools\sapnwrfc-0.06>setup.rb
    ---> lib
    ---> lib/sapnwrfc
    <--- lib/sapnwrfc
    <--- lib
    ---> ext
    ---> ext/nwsaprfc
    C:/gluby/bin/ruby.exe C:/Tools/sapnwrfc-0.06/ext/nwsaprfc/extconf.rb
    Modified CFLAGS: -MD -Zi -O2b2xg- -G6 -DWIN32 -D_DEBUG -D_CONSOLE -DUNICODE -D_UNICODE -DSAPwithUNICODE  -DSAPonNT  -DSAP_PLATFORM_MAKENAME=ntintel
    Modified CFLAGS: -MD -Zi -O2b2xg- -G6 -DWIN32 -D_DEBUG -D_CONSOLE -DUNICODE -D_UNICODE -DSAPwithUNICODE  -DSAPonNT  -DSAP_PLATFORM_MAKENAME=ntintel
    Modified CPPFLAGS:
    Modified LDFLAGS:
    Modified LIBPATH: $(libdir)
    checking for sapnwrfc.h... no
    adding default nwrfcsdk location for headers ...
    checking for sapnwrfc.h... no
    checking for main() in m.lib... yes
    checking for main() in dl.lib... no
    checking for main() in rt.lib... no
    checking for main() in pthread.lib... no
    checking for main() in sapnwrfc.lib... no
    searching for library sapnwrfc failed ...
    checking for main() in sapu16_mt.lib... no
    DID NOT find libsapu16_mt - this may cause problems  ...
    checking for main() in sapucum.lib... no
    checking for main() in libsapucum.lib... no
    DID NOT find libsapucum - this may cause problems  ...
    checking for main() in decnumber.lib... no
    DID NOT find libdecnumber - this may cause problems  ...
    creating Makefile
    <--- ext/nwsaprfc
    <--- ext
    ---> lib
    ---> lib/sapnwrfc
    <--- lib/sapnwrfc
    <--- lib
    ---> ext
    ---> ext/nwsaprfc
    nmake
    C:/Tools/sapnwrfc-0.06/setup.rb:658:in `command': system("nmake") failed (RuntimeError)
            from C:/Tools/sapnwrfc-0.06/setup.rb:667:in `make'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1299:in `setup_dir_ext'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1573:in `__send__'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1573:in `traverse'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1590:in `dive_into'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1571:in `traverse'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1575:in `traverse'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1574:in `each'
             ... 7 levels...
            from C:/Tools/sapnwrfc-0.06/setup.rb:1036:in `exec_setup'
            from C:/Tools/sapnwrfc-0.06/setup.rb:816:in `invoke'
            from C:/Tools/sapnwrfc-0.06/setup.rb:776:in `invoke'
            from C:/Tools/sapnwrfc-0.06/setup.rb:1619

    For SAP::Rfc I've used VC60 to compile. But it failed with sapnwrfc. So I've tried VC80. And gets that distributing msvc*80.dll is not sufficient. Manifests and certificates should be provided for WinXP and higher. This tedious job makes MS VC++ 2005 <b>SP1</b> Redistributable Package (previous package, not SP1, does not install manifests).
    That's not the end of the story.
    Manifest should be included into connection.dll.
    By first step th eread only attribute should be unset from connection.dll
    and then used MS VS utility:
    mt.exe -outputresource:Connection.dll;#2 -manifest Connection.dll.manifest
    Connection.dll.manifest generates during compile process.
    Could this step be included into Makefile.pl?
    Care should be taken about manifest version. E.g. Redistributable Package SP1 gives Microsoft.VC80.CRT version 8.0.50727. sapnwrfc.dll do use this version. But if connection.dll compiled under VC++ 2005 <b>not SP1</b>, it provided by manifest of version 8.0.50608.
    I have not understand yet, should manifest file be manually copied from VS installation (...\VS8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest) into c:\windows\winsxs\manifests directory and should msvc*80.dll be placed into the c:\windows\system32 or C:\WINNT\winsxs\.
    Have anybody else build connection.dll under windows?
    Is it true, that manifest required only for dll's compiled under MS Visual Studio 8.0?
    Could another compiler be used (gcc, watcom)?

  • RFC Lookups API

    Hi Experts,
    Can you please share with me the following document on XI Mapping lookups RFC API by Michal
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf]
    the above link is not working.
    Thanks,
    MK

    Hi
    For Mapping Lookups~
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/mapping%20lookups:%20RFC%20API.pdf
    The specified item was not found.
    Use this crazy piece for any RFC Mapping Lookups!
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c
    Java Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    On how to create XML docs with SAX and DOM go thruugh these links:
    http://www.cafeconleche.org/books/xmljava/chapters/ch09.html
    http://www.cafeconleche.org/books/xmljava/chapters/ch06.html
    Also go through these Blogs....
    SAX Parser
    Java Mapping (Part I)
    Java Mapping (Part II)
    Java Mapping (Part III)
    regards
    srinivas

  • RFC error: transaction program not registered

    Hi gurus,
    I am facing one issue with RFC connection.
    I am creating one TCP/IP connection from ECC 6.0 (windows 2003) to EHS/WWI application. i am getting following error when i am doing connection test.
    error: Program <PROGRAM ID> not registered.
    Then i tried to register the program by running the following command at OS level.
    rfcexec u2013a program_ID u2013g ######id  u2013x sapgw00
    But still the error persists.
    Please guide me. also does this command creates entry in saprfc.ini file? i have tried adding it manually in that file also.

    I think you need change Activation Type Radiobutton.
    I believe that you have checked "Registered Server Program", and with this flag you have to identify a registered RFC program. With an SAP gateway, an RFC server program can be registered under this ID and then wait for RFC calls from different SAP Systems.
    Type T destinations are connections to external programs that use the RFC API to receive RFCs.
    If it is Start, you must specify the host name and the pathname of the program to be started.

  • RFC error while using SSO

    Hi experts,
    We tried to configure SSO using logon tickets on our EP 6.0 SP 16 system.
    We created JCO RFC destinations in portal server giving the SAP target system's host name and service. Similarly, we created a new TCP/IP connection in the R/3 also with the same details.
    We finished all the other procedures like importing and exporting portal certificates into R3 server.
    Finally, when we tried to access the system from portal, the following error mesage is shown.
    The following error text was processed in the system SER : An invalid type handle was passed to the RFC API.
    The error occurred on the application server sapsbox_SER_10 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Function: AC_FLUSH_CALL_INTERNAL of program SAPLOLEA
    Function: AC_FLUSH_CALL of program SAPLOLEA
    Function: AC_SYSTEM_FLUSH of program SAPLOLEA
    Form: HANDLE_FLUSH_PBO of program SAPFGUICNTL
    Form: %_CTL_OUTPUT of program SAPMSSYD
    Module: %_CTL_OUTPUT1 of program SAPMSSYD
    Does any one know why this is happening?
    Did we miss out anything??
    Please help
    Thanks alot
    Shobin

    An ABAP runtime error ("RABAX") has occured.
    You should analyze the problem in the ABAP system running ABAP transaction ST22. Well, obviously you've managed to call an ABAP function module, so it's not an authentication issue ...

  • Lookup using RFC & JCO.

    Hi All,
    We are develloping Lookup logic using custom java code.
    Our Xi server is at SP12.The code is working fine in java IDE.
    But when I imported classes into Repository & tested its rebooting services of XI j2ee engine & I am getting message dispatcher running no server conncted the monitoring tool shows
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>&quot;SYSTEM FAILURE&quot; during JCo call.</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Any idea what is going wrong ?
    Thanks,
    Tuhin

    Hi,
    Did u import the required java JCO libraries into imported archives...?
    Have u mentioned the same in imports of your advanced java function...?
    Look at "How to Perform SAP Data Lookups Within XI Mappings" by "Jerome Delune" in articles section to perform the lookup.
    But i personally recommend you to upgrade the server to SP13 and use the new lookup API's provided. U can refer to "XI Mapping lookups RFC API" article by "Michal" to perform the lookup.
    Cheers,
    Siva Maranani.

  • BPM and RFC loopup HELP

    i have situation where i need to do rfc lookup importing 4 fileds and exporting 8 field , depend upon one of the field output i have to raise alert and cancel the processing otherwise i need to post idoc and update the sap table through proxy . at the same time we are unable to get output through UDF.  can i get some input how to do this. we are using SP 10 .

    Hi,
    if you're doing the lookup (RFC) via an UDF then
    RFC looup API doesn't work with SP10 (unless you're talking about SPS 10 for XI 7.0 <-- then RFC api works) 
    Regards,
    michal

  • RFC JCo 3 unable to connect to SAP AS with sapgw01 service

    Greetings - help is greatly appreciated.
    I have an RFC server that uses JCo 3.0.5 to connect to the SAP Application server.  When the RFC server is run from a Unix system the gateway service and port needs to be added to the unix systems /etc/services file.  We have two (actually 21) sap systems, one has a gateway service id of sapgw00, the other sapgw01.  We added both gateway services with port 3300 to the Unix /etc/systems file and are able to connect to the sapgw00 system but not the sapgw01 system.  The sapgw01 system is returning the following error.  Without sapgw01 in the /etc/services file we get a different error - so it's doing something.
    Thanks in advance
    Status: Server FLRFCSRV state changed from [STOPPED] to [STARTED]
    >>> Exception error occurred on FLRFCSRV connection null
    com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:10 CDT 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:10 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     1
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
            at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
            at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
            at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:10 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     1
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
            at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
            ... 4 more
    Caused by: RfcException: [null]
        message: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:10 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     1
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
            at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
            at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
            at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
            ... 6 more
    Status: Server FLRFCSRV state changed from [STARTED] to [DEAD]
    >>> Exception error occurred on FLRFCSRV connection null
    com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:12 CDT 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next .
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:12 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     2
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
            at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
            at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
            at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:12 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     2
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
            at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
            ... 4 more
    Caused by: RfcException: [null]
        message: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:12 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     2
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
            at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
            at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
            at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
            ... 6 more
    A startup error occurred - please view the log file for additional information
    >>> Exception error occurred on FLRFCSRV connection null
    com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 29 09:16:18 CDT 2010.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next .
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:18 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     3
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1168)
            at com.sap.conn.jco.rt.DefaultServer.openConnections(DefaultServer.java:1057)
            at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:1004)
            at com.sap.conn.jco.rt.DefaultServerManager$DispatcherWorker.run(DefaultServerManager.java:299)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:18 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     3
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2135)
            at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:380)
            at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1149)
            ... 4 more
    Caused by: RfcException: [null]
        message: Connect to SAP gateway failed
    Connect parameters: TPNAME=FLRFCSRV GWHOST=sapd2srv GWSERV=sapgw01
    ERROR       partner '10.165.67.157:sapgw01' not reached
    TIME        Thu Apr 29 09:16:18 2010
    RELEASE     720
    COMPONENT   NI (network interface)
    VERSION     40
    RC          -10
    MODULE      nixxi.cpp
    LINE        3253
    DETAIL      NiPConnect2: 10.165.67.157:3300
    SYSTEM CALL connect
    ERRNO       239
    ERRNO TEXT  Connection refused
    COUNTER     3
        Return code: RFC_FAILURE(1)
        error group: 102
        key: RFC_ERROR_COMMUNICATION
            at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
            at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
            at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:41)
            at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2121)
            ... 6 more

    Hello Sir,
    I am a student who is pursuing a project that deals with JCo 3.
    I read your question on the forum and think that you have done the JCo stuff and can answer my questions.
    Kindly, try to shed some light on following question:
    Q1: I simply want to start with connecting my SAP system. I have a user ID and password for the same.
    I saw some examples where they use "JCo.createClient(....)" and "JCo.client.connect()" to simply connect the client but
    when I type in the code it shows me an error, because they are using package "com.sap.mw.jco" but since I am using JCo3,
    I don't have that package instead I have "com.sap.conn.jco" which do not have createClient function.
    Q2: By setting the classpath for "sapjco.jar" I was able to compile one of the sample programs but could not run it. Do you
    know how to run the SAP JCo program.
    Your guidance will be highly appreciated
    -Thanks
    -Dmukhi

  • RFC call during mapping?!

    Hi @ all,
    I have a question I like to call a RFC function during mapping. Is this possible and if - how to do that :-)??
    THX Matt

    Hi Matthias,
    It is possible to do that.
    If you have SP13, SAP provides a RFC API which can be called during the mapping. Refer to this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi mapping lookups rfc api.pdf
    Also check this weblog :
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    For pre-SP13 systems, refer to this How-To
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how to perform sap data lookups within xi mappings
    Cheers
    Manish

  • RFC Lookups codepage

    Hi guys,
    I am using RFC API to perform some lookups from within my mapping program.
    In order to create the request in XML, I am using DOM xml parser.
    My code works fine when input data is in English, but when it is in another language, e.g. Greek, input data is respresented wrongly in XML document.
    The ppiece of code where I create the XML request is the following:
    Document docReq = null;
    // Building up RFC Request Document
    docReq = builder.newDocument();
    RFCInterfaceLine il = null;
    Element documentElement = docReq.createElement("ns0:" + remoteFunctionName);
    documentElement.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:ns0", "urn:sap-com:document:sap:rfc:functions");
    Node root = docReq.appendChild(documentElement);
    rfcInterfaceParametersLines = rfcInterfaceParameters.getLines();
    for (int i = 0; i < functionParameters.size(); i++)
    il = (RFCInterfaceLine) rfcInterfaceParametersLines.get(i);
         if (il.getParameterType().equalsIgnoreCase("I"))
         root.appendChild(docReq.createElement(il.getParameterName())).appendChild(docReq.createTextNode((String) functionParameters.get(i)));
    RFCInterfaceLine is a class used to represent the parameters (inputs, outputs and exceptions) used by the Remote Function Module in ABAP. "I" stands for Import. So when I have an import parameter, I create an element in XML.
    However, in the final XML document I cannot see as a header the encoding = "UTF" attribute. Is this the one that is missing to enable other languages as well??
    Evaggelos

    Hi refer these
    If you want to use DOM, you'll also have to choose a parser, since DOM's specification doesn't specify a parser, just document and element handlers, so there are various implementations of parsers for DOM. I've used Xerces's DOMParser (org.apache.xerces.parsers.DOMParser) on Java Mappings with success (never tried on UDF, though) and it's very simple.
    After you get the output stream from the rfc lookup, just use:
    DOMParser parser = new DOMParser();
    InputSource input = new InputSource(in);
    parser.parse(input);
    Document MyDoc = parser.getDocument();
    to get the Document object. Then you can use regular DOM methods to get the value.
    For example, with
    String value = MyDoc.getDocumentElement().getFirstChild().getNodeValue();
    you'd get the value of the first child of the root element.
    following document on XI Mapping lookups RFC API by Michal?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    Mapping lookups u0096 RFC API
    <b>Mapping Lookups (New)</b>
    http://help.sap.com/saphelp_erp2005/helpdata/en/0f/f084429fb4aa1ae10000000a1550b0/frameset.htm
    <b>For Mapping Lookups~</b>
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    This blog and article deals with calling your RFC from your JAVA MAPPING / User Defined Function.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/801376c6-0501-0010-af8c-cb69aa29941c
    Java Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
    DOM parser API
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
    On how to create XML docs with SAX and DOM go thruugh these links:
    http://www.cafeconleche.org/books/xmljava/chapters/ch09.html
    http://www.cafeconleche.org/books/xmljava/chapters/ch06.html
    Also go through these Blogs....
    /people/prasad.ulagappan2/blog/2005/06/08/sax-parser
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    Thanks !!

Maybe you are looking for

  • Firefox will not load my google mail web page?

    I have been using firefox as my browser for about two weeks and have had no problems. Suddenly, it will no longer load my google email page. This is my business email and is 100% essential. What should I do?

  • Itunes 10.4 has deleted all my cover art

    as above not very happy

  • Print out of BOM list

    Dear gurus, I have one doubt, is there is any way to get the list of BOM while using T.C = CS02 in excel format as I need the same to take list in excel for more than 100 BOM list. waiting for the positive feed back. Regards, sekar chand

  • SQL* Plus not compatible with Suse Linux 10

    hi! i am using suse linux 10 and since i lost my sys/ system password i need to restore it using " / as sysdba " to login, but the problem is when i tried to install the sql* plus it says that "it does not support my platform", is there another way i

  • Splitting PCA

    Dear Expert, I am using ECC Version 6.00 I activated FI document splitting based on business area and profit center. I have already done the required customizations. In case I post a document with entering business area and profit center in one line