Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass data to web services from R3 system through RFC?

Former Member
0 Kudos
1,229

Hi all,

Is there any Remote function module available to pass data from R/3 system to external system via web services? or is please suggest how to so.

Thanks in advance.

Regards,
Muthu

1 ACCEPTED SOLUTION

lemoreno
Participant
0 Kudos
151

Hi muthukumaran subramanian.

You can pass data from R/3 to external system using web services.

First of all, you have to create a Function Module, in the properties tab, mark the "Remote-Enabled Module" option.

Then, complete the code that you need to pass the data to the external system. For example, if you want to pass a internal table to the external system, you have to create the parameter in the "Tables Tab".

When you finish your source code, go to Utilities(M) > More Utilities - Create Web Service > From the Function Module.

Complete the Wizard, it will create a Enterprise Service. Save and activate it. You could see the WSDL in the respective tab.

At the end, you have to create the proxy client in the SOAMANAGER tcode.

Regards,

Luis Esteban

10 REPLIES 10

former_member231869
Participant
0 Kudos
151

Hi subramanian,

                       Exactly whats the issue can you elaborate?

0 Kudos
151

Hi Williams,

Thanks for the reply.

I need to pass a message from R/3 system to external system by web services.

Regards,

Muthu

ArcherZhang
Product and Topic Expert
Product and Topic Expert
0 Kudos
151

Hi Muthu,

As i know, you need PI.

1, create a RFC destination(TCP/IP)  to PI in ECC.

2, importing the RFC in PI.

3, maintain the sender(ECC) and receiver(external system), mapping etc..

BRs,

Archer.

0 Kudos
151

As Archer said you need to create RFC and if PI is configured in the system then it can be achived through PI

0 Kudos
151

Archer,

Thanks for your reply.

I am looking for a code snippet.

Regards,

Muthu

ArcherZhang
Product and Topic Expert
Product and Topic Expert
0 Kudos
151

Hi Muthu,

You absolutely do not need code snippet. In that RFC, source code should be blank! You only need maintain the 'IMPORT' and 'TABLE' parameters correct. Then in your report or something else, call this RFC, to send data out to PI.

BRs,

Archer

PeterJonker
Active Contributor
0 Kudos
151

If the external system is within your business domain you can call the webservice from ABAP by creating a client with wsdl from the web service. Is that not an option for you ?

lemoreno
Participant
0 Kudos
152

Hi muthukumaran subramanian.

You can pass data from R/3 to external system using web services.

First of all, you have to create a Function Module, in the properties tab, mark the "Remote-Enabled Module" option.

Then, complete the code that you need to pass the data to the external system. For example, if you want to pass a internal table to the external system, you have to create the parameter in the "Tables Tab".

When you finish your source code, go to Utilities(M) > More Utilities - Create Web Service > From the Function Module.

Complete the Wizard, it will create a Enterprise Service. Save and activate it. You could see the WSDL in the respective tab.

At the end, you have to create the proxy client in the SOAMANAGER tcode.

Regards,

Luis Esteban

Former Member
0 Kudos
151

Thanks Esteban.

0 Kudos
151

You are welcome!