cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Service Interface from an imported RFC.

Former Member
0 Kudos

Hi Experts,

The scenario is to post Vendor Invoices in ECC from a 3rd Party file.

We suggested the use of ACC_DOCUMENT03 idoc, but the client is not willing to use iDocs. ( Option thoroughly discussed and rejected ).

In that case, we have decided to use a Server Proxy which would call a BAPI to post the idocs.

  • Another possiblity was importing the BAPI directly in PI and use an RFC receiver adapter to post invoice. But, since the RFC uses the JAVA Engine we are not too keen on using it.

Now that we have the structure in the BAPI, we have imported it in PI.

For  the server proxy to be generated, how can we use this BAPI structure to create a Service Interface?

Strange problem this!

Please advice.

Rakesh.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

This is simple:

1. Import the RFC definition from ECC system normally.

2. Create the Service Interface.

3. Change the Type to RFC as shown below, then choose the RFC message:

Regards,

Greg

Former Member
0 Kudos

Thanks Greg,

I was not aware of such an option. Sure does look simple.

Thanks again,

Rakesh.

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Rakesh,

Your scenario is just file to server proxy.

As u said u have imported the BAPI in ESR then only you have to create a inbound service interface with request message (type RFC message) and then specify the BAPI name.

I think you cannot ignore receiver as RFC only because of it resides on java stack.

thank and regards

Anup Banerjee

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Rakesh,

Take XSD or WSDL of imported BAPI then create external definition import XSD/WSDL.

When you import RFC function module in ESR then Open Function module you can see XSD/WSDL .

After that create service interface by selecting option External Message. This approach works.

Regards,

Raj

Former Member
0 Kudos

Thanks Raj,

Really appreciate your prompt response. Now we know there is more than one way of doing it

Regards,

Rakesh.

iaki_vila
Active Contributor
0 Kudos

Hi Rakesh,

You have two options to use a RFC Receiver or ABAP PROXY SERVER.

If you decide to use an ABAP Proxy Server you could see how to do in this wiki, check only the receiver side, of course:

http://wiki.sdn.sap.com/wiki/display/XI/Step-by-step+FTP+to+ABAP+Proxy

Regards.