cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module to a Webservice

Former Member
0 Kudos
65

I need to convert my Function Module in ABAP to a Web Service? Would some one walkthru me the step by step procedure to do that?

thanks.

P.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

stpe by step to expose an RFC as a WS here:

http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm

more step by step with screenshots:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6ac00e8a-0d01-0010-10a7-de206102...

you need to have was 6.40 to do it from se37

otherwise you can do it from XI

Regards,

michal

Former Member
0 Kudos

Thanks Michal.

How to do the Same from XI?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

check out those:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f22...

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

but basically what you need to do it to do sync

RFC and just use SOAP sender adapter

and create WSDL file in directory

that's all

here you will find info how to

generate WSLD from XI

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873...

and set up sender soap adapter

Regards,

michal

Former Member
0 Kudos

I am little confused now, why I have to use my XI as a Webservice?

( If I convert a function module in R/3 into a Webservice it make sense for me, )

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

1. if you want to expose WS on the internet you will neve expose ERP

but you can do it with the use of XI (decentral adapter for example)

2. if you don't have WAS 6.40 you cannot use tis WS wizard in Se37

3. with XI you can do lots of other things during the WS call

(call some other system, put an attached file somewhere etc)

or you can simply use a BPM and do much more

Regards,

michal

Former Member
0 Kudos

Thanks Michal.

1. if you want to expose WS on the internet you will neve expose ERP

but you can do it with the use of XI (decentral adapter for example)

So, If I want to expose my Webservice in XI to my Webservice clients, first I need to import the WSDL into my External Definitions from R/3 in to XI.

And once I develop the Components needed in IR, what are all the Adapters I need to Use from the Clients to XI and XI to R/3

thanks.

MichalKrawczyk
Active Contributor
0 Kudos

Hi Pete,

>>>>o, If I want to expose my Webservice in XI to my Webservice clients, first I need to import the WSDL into my External Definitions from R/3 in to XI.

no - if you want to create a WS on XI you will generate WSDL

and give it to your partners - no need to import anything in XI

>>>>>And once I develop the Components needed in IR, what are all the Adapters I need to Use from the Clients to XI and XI to R/3

soap sender adapter for the WS on XI and then you can use any adapter

to connect to R3 (like, RFC, IDOC or proxy)

Regards,

michal

Former Member
0 Kudos

Thanks Michal.

On what basis(What Structure) I could create a WSDL in XI?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

on the basis of your "R3 message"

so if you use IDOCs you can create a structure similar to IDOC in XI

and generate WSDL from it - the same with RFC and ABAP proxy

Regards,

michal

Former Member
0 Kudos

Thanks Michal. I am using a custom RFC on the R/3 Side as the Webservice.

So I need to create a WSDL in XI that has the same format as RFC on R/3. Expose this WSDL to my Clients.

(so inside XI my source and Target Data Structure are the Same correct!!! If not what will be my Source and target Data Structures?)

Using SOAP Adapter Sender will be connected to XI AND using RFC adapter the Receiving R/3 will be Created.

Thank you.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>So I need to create a WSDL in XI that has the same format as RFC

in XI you only need to create a standard message

which you can map to RFC

then in directory you will just generate WSDL from this message

that's all - it's realy pretty simple

Regards,

michal

Former Member
0 Kudos

I am lost Michal, pardon me.

Would you please explain me in detail. Thanks.

Answers (0)