cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Receiver channel: connect to SAP Gateway failed

peter_wallner2
Active Contributor
0 Kudos

Dear experts,

I have to connect from SAP PI 7.3 (dual stack) to a Windows machine on which an RFC application is installed.

It goes: "SAP ERP --> PI --> RFC on Windows machine"

On the PI system in ABAP in SM59 I configured a RFC destination, type T - "TCP/IP Connection".

I do it with "Registered Server Program" and give the name of that program called "SAPIDOTT".

Gateway Host = PI System

Gateway Service = sapgw**

When I do "Utilities" --> "Test" --> "Connection Test" it is successful;

The unicode test says: "Target is not a unicode system (character size 1)"

So this works.

Now on SAP PI I am configuring the RFC receiver channel:

I am again using the Program ID I used before in SM59.

But I get the following error in Runtime Workbench:

It seems to me that the value I give in the Receiver channel "Application Server Service (Gateway)" is incorrect.

Is there a default value I can use? Or should the administrator of the RFC application on the target machine know this value?

Summary: the connection from ABAP works - from Java it does not work.

Thank you for any hint you can give me,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Peter,

Why don't you choose SAP System  instead of External RFC system?

Regards.

peter_wallner2
Active Contributor
0 Kudos

Hello Inaki Vila,

I tried this and changed it in the RFC receiver channel:

But now I get this error:

Something seems to be wrong with the namespace.

The RFC namespace is this:  http://sap.com/xi/XI/System

The IDoc sent from SAP ERP to PI to Windows Machine" is this:

urn:sap-com:document:sap:idoc:messages
PPCC2RECWORKCENTER.PPCC2RECWORKCENTER01


SAP PI receives it from SAP ERP via IDoc Adapter and without mapping passes it on to RFC receiver.


Do you know which namespace I have do adapt and how?


Thank you again,

Peter

former_member186851
Active Contributor
0 Kudos

Hello Peter,

Try re-configuring the channel and check.

peter_wallner2
Active Contributor
0 Kudos

Hello Inaki Vila,

After my namespace error I received I added an XSLT map that adds the namespace "xmlns:ns0="urn:sap-com:document:sap:rfc:functions".

My IDoc looks like this now:

<?xml version="1.0" encoding="utf-8"?>

<PPCC2RECWORKCENTER01 xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

    <IDOC BEGIN="1">

        <EDI_DC40 SEGMENT="1">

            <TABNAM>EDI_DC40</TABNAM>

            <MANDT>100</MANDT>

            <DOCNUM>0000000008116508</DOCNUM>

...... and so on....

Now I resent a message but now I get this error from the RFC channel:

do you have any idea what the issue could be now? I will keep investigating myself.

Thank you again,

Peter

Answers (5)

Answers (5)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Peter,

Try sapgw** or 33** for your application server service.

Regards,

Mark

nitindeshpande
Active Contributor
0 Kudos

Hello Peter,

It seems that your third party windows system is rejecting the data format sent by you. Ask them for the XSD of which they are using and configure the same in PI.

Regards,

Nitin

peter_wallner2
Active Contributor
0 Kudos

Hello Nitin,

Thank you for your input.It is what you suspected. They are expecting

a flat file format while I am trying to send them an IDoc.

No one told me about this....

So the third party will let me know about the format now and then I have to do

the mapping + file content conversion for the flat file format.

Best regards,

Peter

nitindeshpande
Active Contributor
0 Kudos

Hello Peter,

Glad to know that !!

All the best

Regards,

Nitin

Former Member
0 Kudos

Hello Peter,

You need to maintain a Unicode connection. You can maintain this through SM59.

Regards,

Souvik

peter_wallner2
Active Contributor
0 Kudos

Hello Souvik,

I do not think it is possible.

As originally stated above:

The unicode test in SM59 says: "Target is not a unicode system (character size 1)"

Best regards,

Peter

Former Member
0 Kudos

Hi,

You have to check with ur receiver system about the program id name. The name which u will register in PI should exactly match to what has been used by target system.

Alternatively, u can go to SMGW and check which program id you can see against your target system (windows).

Thanks

Amit Srivastava

peter_wallner2
Active Contributor
0 Kudos

Hello Amit,

I have the program ID in SM59 and I entered it in SAP PI RFC receiver.

When I test in SM59 I get a successful connection test.

So the Program ID must be the correct one.

BEst regards,

Peter

former_member186851
Active Contributor
0 Kudos

Hello Peter,

Did you register the program Id and use the same in the channel?

peter_wallner2
Active Contributor
0 Kudos

Hello Raghuraman Sritharan,


I have the Program ID in SM59:



and this does not give me any error when I test it.

It is only the Java part where I get the error.


Best regards,

Peter