Skip to Content
Author's profile photo Mathieu GRAVIL

Create a Webservices on ABAP FROM a Function module

In this document, i will describe the creation and the configuration of web service. I suppose tht icm is configured for http and https.

So, i have copy a standard function module GET_TABSIZE_ORA (i work on oracle database ) into ZGET_TABSIZE_ORA. I modify it in order to be launch in remote.

And i use it to create a web service by using se37 : Utilies->Mores Utilities->Create Web Service-> from function module:

/wp-content/uploads/2013/12/image011_336181.png

It opens a wizard, enter name and description, continue:

/wp-content/uploads/2013/12/image013_336185.png

continue:

/wp-content/uploads/2013/12/image015_336186.png

continue, important point about security:

/wp-content/uploads/2013/12/image017_336187.png

Enter Package and transport request:

/wp-content/uploads/2013/12/image019_336189.png

/wp-content/uploads/2013/12/image021_336190.png

When complete you arrive on these screen, you can modify if you want :

/wp-content/uploads/2013/12/image023_336191.png

/wp-content/uploads/2013/12/image025_336193.png

/wp-content/uploads/2013/12/image027_336194.png

/wp-content/uploads/2013/12/image029_336195.png

/wp-content/uploads/2013/12/image031_336197.png

/wp-content/uploads/2013/12/image033_336198.png

You can leave transaction.

If you want to come back on webservice definition, you can do it through se80:

/wp-content/uploads/2013/12/image035_336199.png

/wp-content/uploads/2013/12/image037_336203.png

Now after creating webservices you need to expose itL. transaction SOAMANGER:

Simplified Web Service Configuration:

/wp-content/uploads/2013/12/image039_336205.png

You search your webservices, and you can define Authentification method you want to use to expose it:

/wp-content/uploads/2013/12/image041_336206.png

Warning: it must be compatible with Security profile you have defined on web service. Either you will have error message.

After you can download WSDL (SOAMANAGER -> Web Service Configuration-> Enter your webservice name Apply and Open WSDL document for selected binding or service) and import it on SoapUI for instance to test it :

WSDL.png

/wp-content/uploads/2013/12/image043_336207.png

You can make test with SE80 also :

/wp-content/uploads/2013/12/test_se80_336229.png

/wp-content/uploads/2013/12/test_se802_336237.png

/wp-content/uploads/2013/12/test_se803_336238.png

After changing value, you will have to click on “Change parameter” (icon red and white), you will go on previous popup with falg on Keep Request Template.

/wp-content/uploads/2013/12/test_se804_336242.png

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Saifur Rahaman
      Saifur Rahaman

      Helped to clear starting concepts.

      Author's profile photo Mathieu GRAVIL
      Mathieu GRAVIL
      Blog Post Author

      Thank you for your comment!

      Author's profile photo Leanid Leusinjo
      Leanid Leusinjo

      Good explain, thank you