cancel
Showing results for 
Search instead for 
Did you mean: 

SAP NetWeaver Gateway Service Creation

kaan_ozdogan
Participant
0 Kudos

Hi,

I want to create gateway service.

My rfc function is in the other sap system So I want to call and map rfc other system and get entity as export parameter and tables that rfc .

How can I do?

thnks...

Accepted Solutions (1)

Accepted Solutions (1)

former_member182874
Active Contributor
0 Kudos

Hi Kaan,

Ensure your system, where you are building your gateway service is connected to system which has RFC.

You can either go with Mapping RFC approach.

1. When you go with mapping approach.

Data Model -> Import ->RFC/BOR

Give your entitytype name. Select Target system as "Remote". Now provide RFC destination name. Your RFC destination name should be the Trusted rfc destination created between both the system. Check SM59 for the same.

Same steps repeat while mapping on Service Implementation step :

Regards,

Tejas

kaan_ozdogan
Participant
0 Kudos

Ok.But How can call function and where can I can call? Data provider class or anywhere??

former_member182874
Active Contributor
0 Kudos

if you are going with mapping approach, you don't need to call the RFC manually. You just give the RFC name here and map the Import and export parameters with your properties defined in entity type.

Once you are done with mapping. Click on generate button and your DPC class code will be generated.

For details please follow this blog/document :

Regards,

Tejas

former_member182874
Active Contributor
0 Kudos

For code based approach

Regards,

Tejas

kaan_ozdogan
Participant
0 Kudos

Hi Tejas,

I have a new problem.

I did all step but when execute gateway client there is an error like,

<message xml:lang="en">RFC call ended with "Communication Failure" exception (Function call failed; could not find the function Z_RFC_DI_ARA_01).</message>


Z_RFC_DI_ARA_01 function is in another sap system

former_member182874
Active Contributor
0 Kudos

Hi Kaan,

Your system alias configuration is not correct.

Taskprocessing service, you have to assign LOCAL system alias of software version :  IWPGW/BWF format.

Also go here for detailed information on mapping RFC and the same error you are getting :

Regards.

Tejas

Answers (1)

Answers (1)

agentry_src
Active Contributor
0 Kudos

Discussion successfully moved from SAP Fiori to SAP Gateway which is the more appropriate community for this Discussion.