Skip to Content

Third party system to SAP PO single stack Java via RFC

Hi together,

I have a requirement to send IDocs from a non-SAP third party system (which uses a RFC library) to SAP PO single stack java via RFC.

Here's what I've done to achieve this:

On SAP PO side:

- configure a cloned inboundRA in NWA to register a Program ID / TP Name in PO Gateway:

- configure a IDoc Sender channel to use this cloned inboundRA

On third party system:

- I set the following parameters:

ASHOST: <PO hostname>

SYSNR: <PO sysnr>

TPNAME: <Program ID>

USER: <user>

PASSWD: <password>

On my third party system I get the following error:

Fehler beim RfcOpenEx: key=RFC_ERROR_COMMUNICATION message=CMALLC : rc=20 > Connect from SAP gateway to RFC server failed
Connect_PM GWHOST=<PO hostname>, GWSERV=<PO gw service>, SYSNR=<PO sysno>

LOCATION SAP-Gateway on host <PO hostname FQDN> / <PO gw port>
ERROR Gateway not connected to local R/3
TIME Wed Jul 16 16:28:53 2020
RC 726
MODULE /bas/753_REL/src/krn/si/gw/gwxxrd.c
LINE 8564

What am I missing here? What could be the problem? How to get this connection working?

Thanks in advance!

inboundra.png (12.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jul 17, 2020 at 10:33 AM

    There's a SAP note for this error, but I'm not sure if it helps much:

    Obviously, PO (Java) is not an R/3 (ABAP) system. So the error described in the note doesn't really relate to a PO system. I don't know how the InboundRA exactly works, but I guess it has to emulate the RFC function module that usually receives an Idoc on an R/3 / ECC / S/4 system. Somehow this seems to not work correctly in your case (or the 3rd party doesn't call the right FM?). I don't have the possibility to simulate it, so I can only guess.

    One more thing: Did you set the RA property "local" to "true" (it's not visible on the screenshot)? Maybe that makes a difference, but I'm not sure neither.

    Best Regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2020 at 12:28 PM

    And one more try: I see that in your inboundRA the Destination property is missing. You can set it to XI_IDOC_DEFAULT_DESTINATION. It points to an ABAP Backend that contains the metadata, which PO needs to load form the sender when receiving an idoc but can't do so because in your case the sender is non-ABAP.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2020 at 04:50 PM

    Hi Jonas Oswald

    Did you check ping test is working from source to destination?

    Is telnet working on specified port ?

    Please check these base steps to start troubleshooting on it.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.