SlideShare a Scribd company logo
Essential
         SAP ABAP Tutorial
How To Use WEB Services In SAP ABAP
         By Eugene Ostroumov



                  1            Copyrighted 2012 by LeverX, Inc.
Tutorial Overview
In this tutorial you will learn how to create and call WEB Services in
ABAP. Tutorial consists of two parts:
     1) how to create WEB Service based on Function Module;
     2) how to call WEB Service via ABAP
Each part is a step-by-step instruction that will guide you thru the
whole process of creation




                                    2                          Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 1
Creating a
function module
with
import and export
parameters




                      3              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 2
As an example of
functional module
logic let’s extract
active users




                      4              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 3
Mark the function
module as a
Remote-Enabled
Module




                      5              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 4
Create a
Web Service
based on the
function module




                      6              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 5
Enter a name and
description for the
Web Service


                          Name
                                     Description




                      7              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 6
The name of
functional module
is entered
automatically




                      8              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 7
Choose a
profile for
Security Settings




                      9              Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 8
Enter the name of
the package and
transport request
or choose
Local Object




                      10             Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 9
Creation of Web
Service is finished
It will be activated
after pressing
“Complete” button




                       11            Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 10
After creation of Web Service it is important to get WSDL document. It is
main key for access to your Web Service. Use the URL or save it to file.
                     URL




                                     Save to file




                                    12                        Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
  Step 11
The correctness
of the WSDL
document can be
checked in the
transaction
SOAMANAGER:
Path:
Business
Administration =>
Web-Service
Administration

                       13             Copyrighted 2012 by LeverX, Inc.
How to create WEB Service based on FM
 Step 12
Web Service can
be found in the
transaction SICF
Path:
default_host =>
sap => bc =>
srt => rfc => sap




                      14             Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 1
To call Web
Service it is
necessary to
create a proxy
object
Use transaction
SE80 to do this




                      15              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 2
Choose
“Service Consumer”
type of proxy




                      16              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 3
Select a source of
WSDL. In our case
it is “URL/HTTP
Destination”




                      17              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 4
Define URL of
WSDL Document
(Step 10 of creation
of Web Service)




                       18             Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 5
Enter the name of
the package and
transport request
or choose
Local Object




                      19              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 6
Creation of Proxy
is finished. You
should activate it
after pressing
“Complete” button




                      20              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 7
Enter User name and
Password to read
WSDL Document
This step doesn’t
exist is case of local
file for WSDL
Document




                         21           Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
Step 8




 Activate the Proxy




                      22             Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 9
Now we need to             Choose “Consumer Proxy”
create a local
logical port in
transaction
SOAMANAGER                          Search your Proxy by name
                                        Choose your Proxy
Path:
Business                                 Apply Selection
Administration =>                      Create Logical Port
Web-Service
Administration


                      23                             Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 10
Enter general
configuration
settings
You can use
WSDL document
or do it manually




                      24              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 11
Save logical port
after it is
generated

              Save




                      25              Copyrighted 2012 by LeverX, Inc.
How to call WEB Service using ABAP
 Step 12
                               REPORT    zws_call.
Now everything is done         DATA:   lr_proxy TYPE REF TO zws_co_z_get_active_users.
                               DATA:   o_err TYPE REF TO cx_root.
and you can call Web           DATA:
                               DATA:
                                       output TYPE zws_zws_users_response.
                                       input TYPE zws_zws_users.

Service from your ABAP         DATA:   ls_item TYPE LINE OF zws_zws_users_response-users-item.

                               TRY.
program                            CREATE OBJECT lr_proxy
                                     EXPORTING
                                       logical_port_name = 'GET_USERS'.
                                 CATCH cx_ai_system_fault INTO o_err.
Here is an example of a            MESSAGE o_err TYPE 'I'.
                               ENDTRY.
                               input-rfc_only = space.
report that shows all active   TRY.
                                   CALL METHOD lr_proxy->zws_users
users                                EXPORTING
                                       input = input
                                     IMPORTING
                                       output = output.
                                 CATCH cx_ai_system_fault INTO o_err.
                                   MESSAGE o_err TYPE 'I'.
                                 CATCH cx_ai_application_fault INTO o_err.
                                   MESSAGE o_err TYPE 'I'.
                               ENDTRY.

                               LOOP AT output-users-item INTO ls_item.
                                 WRITE: / ls_item-bname, ls_item-tcode, ls_item-term.
                               ENDLOOP.



                                  26                                                Copyrighted 2012 by LeverX, Inc.
Conclusion
Web Services allow to increase functionality of your system
and leverage your investments



    Mobile applications


      Web applications                   WEB
       Another systems                                   Your SAP system


                                    27                        Copyrighted 2012 by LeverX, Inc.
Contact Information


Please contact us for more information about our services or solutions available.

                                LeverX, Inc.
                     800 West El Camino Real, Suite 180
                       Mountain View, CA 94040 USA
                           Tel: (650) 625 – 8347
                         Web Site: www.LeverX.com
                                       28                           Copyrighted 2012 by LeverX, Inc.
Ad

More Related Content

What's hot (19)

Affordable Workflow Options for APEX
Affordable Workflow Options for APEXAffordable Workflow Options for APEX
Affordable Workflow Options for APEX
Niels de Bruijn
 
APEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott SpendoliniAPEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott Spendolini
Enkitec
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
iWare Logic Technologies Pvt. Ltd.
 
RAML - The architecture
RAML  - The architectureRAML  - The architecture
RAML - The architecture
Ankush Sharma
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
Amit Sharma
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
D.Rajesh Kumar
 
Rohit_Kumar_Resume
Rohit_Kumar_ResumeRohit_Kumar_Resume
Rohit_Kumar_Resume
Rohit Kumar
 
Consuming Data With HANA XS
Consuming Data With HANA XSConsuming Data With HANA XS
Consuming Data With HANA XS
Blackvard
 
Basic auth implementation using raml in mule
Basic auth implementation using raml in muleBasic auth implementation using raml in mule
Basic auth implementation using raml in mule
Adithya Kuchan
 
Tech p22 integrating sap with web sphere portal
Tech p22 integrating sap with web sphere portalTech p22 integrating sap with web sphere portal
Tech p22 integrating sap with web sphere portal
mlech23
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migration
Amit Sharma
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorial
nolimit797
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESB
Sanjeet Pandey
 
HANA XS Web Service
HANA XS Web ServiceHANA XS Web Service
HANA XS Web Service
Blackvard
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0
Dima Maleev
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup Webinar
Keyur Shah
 
Oracle OSB Tutorial 3
Oracle OSB Tutorial 3Oracle OSB Tutorial 3
Oracle OSB Tutorial 3
Rakesh Gujjarlapudi
 
Building restful apis with laravel
Building restful apis with laravelBuilding restful apis with laravel
Building restful apis with laravel
Mindfire LLC
 
License4J Auto License Generation and Activation Server
License4J Auto License Generation and Activation ServerLicense4J Auto License Generation and Activation Server
License4J Auto License Generation and Activation Server
Mehmet Yilmaz
 
Affordable Workflow Options for APEX
Affordable Workflow Options for APEXAffordable Workflow Options for APEX
Affordable Workflow Options for APEX
Niels de Bruijn
 
APEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott SpendoliniAPEX Behind the Scenes by Scott Spendolini
APEX Behind the Scenes by Scott Spendolini
Enkitec
 
RAML - The architecture
RAML  - The architectureRAML  - The architecture
RAML - The architecture
Ankush Sharma
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
Amit Sharma
 
Rohit_Kumar_Resume
Rohit_Kumar_ResumeRohit_Kumar_Resume
Rohit_Kumar_Resume
Rohit Kumar
 
Consuming Data With HANA XS
Consuming Data With HANA XSConsuming Data With HANA XS
Consuming Data With HANA XS
Blackvard
 
Basic auth implementation using raml in mule
Basic auth implementation using raml in muleBasic auth implementation using raml in mule
Basic auth implementation using raml in mule
Adithya Kuchan
 
Tech p22 integrating sap with web sphere portal
Tech p22 integrating sap with web sphere portalTech p22 integrating sap with web sphere portal
Tech p22 integrating sap with web sphere portal
mlech23
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migration
Amit Sharma
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorial
nolimit797
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESB
Sanjeet Pandey
 
HANA XS Web Service
HANA XS Web ServiceHANA XS Web Service
HANA XS Web Service
Blackvard
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0
Dima Maleev
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup Webinar
Keyur Shah
 
Building restful apis with laravel
Building restful apis with laravelBuilding restful apis with laravel
Building restful apis with laravel
Mindfire LLC
 
License4J Auto License Generation and Activation Server
License4J Auto License Generation and Activation ServerLicense4J Auto License Generation and Activation Server
License4J Auto License Generation and Activation Server
Mehmet Yilmaz
 

Viewers also liked (8)

When Web Calling, Video, and Libraries Collide
When Web Calling, Video, and Libraries CollideWhen Web Calling, Video, and Libraries Collide
When Web Calling, Video, and Libraries Collide
char booth
 
Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
ishmecse13
 
WebCrawler
WebCrawlerWebCrawler
WebCrawler
mynameismrslide
 
Web crawler
Web crawlerWeb crawler
Web crawler
poonamkenkre
 
SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...
SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...
SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...
CloudTechnologies
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
Panduka Bandara
 
Matriz requisitos legales
Matriz requisitos legalesMatriz requisitos legales
Matriz requisitos legales
sena
 
Web Crawler
Web CrawlerWeb Crawler
Web Crawler
iamthevictory
 
When Web Calling, Video, and Libraries Collide
When Web Calling, Video, and Libraries CollideWhen Web Calling, Video, and Libraries Collide
When Web Calling, Video, and Libraries Collide
char booth
 
Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
ishmecse13
 
SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...
SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...
SMART CRAWLER: A TWO-STAGE CRAWLER FOR EFFICIENTLY HARVESTING DEEP-WEB INTERF...
CloudTechnologies
 
Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1Beginner’s guide to sap abap 1
Beginner’s guide to sap abap 1
Panduka Bandara
 
Matriz requisitos legales
Matriz requisitos legalesMatriz requisitos legales
Matriz requisitos legales
sena
 
Ad

Similar to LeverX SAP ABAP Tutorial - Creating and Calling Web Services (20)

ASP Net
ASP NetASP Net
ASP Net
Arana Technologies
 
Web services
Web servicesWeb services
Web services
ishmecse13
 
Testing and deploying Hats Application on apache Geronimo Server 1.1
Testing and deploying Hats Application on apache Geronimo Server 1.1Testing and deploying Hats Application on apache Geronimo Server 1.1
Testing and deploying Hats Application on apache Geronimo Server 1.1
Royal Cyber Inc.
 
IBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic InvestmentIBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic Investment
Strongback Consulting
 
Mashups
MashupsMashups
Mashups
Johan Eltes
 
WebSphere sMash June Product Review
WebSphere sMash June Product ReviewWebSphere sMash June Product Review
WebSphere sMash June Product Review
Project Zero
 
Easy integration of Bluemix services with your applications
Easy integration of Bluemix services with your applicationsEasy integration of Bluemix services with your applications
Easy integration of Bluemix services with your applications
Jack-Junjie Cai
 
GIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdfGIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdf
RichHagarty
 
Sst hackathon express
Sst hackathon expressSst hackathon express
Sst hackathon express
Aeshan Wijetunge
 
OFM SOA Suite 11g - Quick Start Guide
OFM SOA Suite 11g - Quick Start GuideOFM SOA Suite 11g - Quick Start Guide
OFM SOA Suite 11g - Quick Start Guide
Sreenivasa Setty
 
SOA web services concepts
SOA web services conceptsSOA web services concepts
SOA web services concepts
XAVIERCONSULTANTS
 
Developer-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for KubernetesDeveloper-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for Kubernetes
DevOps Indonesia
 
Introduction to CloudStack API
Introduction to CloudStack APIIntroduction to CloudStack API
Introduction to CloudStack API
Krunal Jain
 
Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...
Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...
Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...
CA Technologies
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
Mark Myers
 
PWA basics for developers
PWA basics for developersPWA basics for developers
PWA basics for developers
Filip Rakowski
 
ragi_tutorial_v1
ragi_tutorial_v1ragi_tutorial_v1
ragi_tutorial_v1
tutorialsruby
 
ragi_tutorial_v1
ragi_tutorial_v1ragi_tutorial_v1
ragi_tutorial_v1
tutorialsruby
 
Embarcadero RAD server Launch Webinar
Embarcadero RAD server Launch WebinarEmbarcadero RAD server Launch Webinar
Embarcadero RAD server Launch Webinar
Embarcadero Technologies
 
Running your Spring Apps in the Cloud Javaone 2014
Running your Spring Apps in the Cloud Javaone 2014Running your Spring Apps in the Cloud Javaone 2014
Running your Spring Apps in the Cloud Javaone 2014
cornelia davis
 
Testing and deploying Hats Application on apache Geronimo Server 1.1
Testing and deploying Hats Application on apache Geronimo Server 1.1Testing and deploying Hats Application on apache Geronimo Server 1.1
Testing and deploying Hats Application on apache Geronimo Server 1.1
Royal Cyber Inc.
 
IBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic InvestmentIBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic Investment
Strongback Consulting
 
WebSphere sMash June Product Review
WebSphere sMash June Product ReviewWebSphere sMash June Product Review
WebSphere sMash June Product Review
Project Zero
 
Easy integration of Bluemix services with your applications
Easy integration of Bluemix services with your applicationsEasy integration of Bluemix services with your applications
Easy integration of Bluemix services with your applications
Jack-Junjie Cai
 
GIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdfGIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdf
RichHagarty
 
OFM SOA Suite 11g - Quick Start Guide
OFM SOA Suite 11g - Quick Start GuideOFM SOA Suite 11g - Quick Start Guide
OFM SOA Suite 11g - Quick Start Guide
Sreenivasa Setty
 
Developer-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for KubernetesDeveloper-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for Kubernetes
DevOps Indonesia
 
Introduction to CloudStack API
Introduction to CloudStack APIIntroduction to CloudStack API
Introduction to CloudStack API
Krunal Jain
 
Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...
Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...
Hands-On Lab: Managing and Monitoring Node.js Made Easy with CA Application P...
CA Technologies
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
Mark Myers
 
PWA basics for developers
PWA basics for developersPWA basics for developers
PWA basics for developers
Filip Rakowski
 
Running your Spring Apps in the Cloud Javaone 2014
Running your Spring Apps in the Cloud Javaone 2014Running your Spring Apps in the Cloud Javaone 2014
Running your Spring Apps in the Cloud Javaone 2014
cornelia davis
 
Ad

More from LeverX (12)

SAP PLM Bill of Material (BOM) Redlining
SAP PLM Bill of Material (BOM) Redlining SAP PLM Bill of Material (BOM) Redlining
SAP PLM Bill of Material (BOM) Redlining
LeverX
 
LeverX SAP PLM Tutorial - BOM Redlining
LeverX SAP PLM Tutorial - BOM RedliningLeverX SAP PLM Tutorial - BOM Redlining
LeverX SAP PLM Tutorial - BOM Redlining
LeverX
 
LeverX SAP ABAP Tutorial Creating Function Modules
LeverX SAP ABAP Tutorial Creating Function ModulesLeverX SAP ABAP Tutorial Creating Function Modules
LeverX SAP ABAP Tutorial Creating Function Modules
LeverX
 
LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…
LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…
LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…
LeverX
 
LeverX - A Comprehensive Guide to SAP PLM 7.01
LeverX - A Comprehensive Guide to SAP PLM 7.01LeverX - A Comprehensive Guide to SAP PLM 7.01
LeverX - A Comprehensive Guide to SAP PLM 7.01
LeverX
 
LeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation EssentialsLeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation Essentials
LeverX
 
LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...
LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...
LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...
LeverX
 
LeverX SAP PLM Tutorial - Product Structure Management - Create a Product St...
LeverX SAP PLM Tutorial - Product Structure Management  - Create a Product St...LeverX SAP PLM Tutorial - Product Structure Management  - Create a Product St...
LeverX SAP PLM Tutorial - Product Structure Management - Create a Product St...
LeverX
 
LeverX ABAP Basics - Using The TREX Search Component
LeverX ABAP Basics - Using The TREX Search ComponentLeverX ABAP Basics - Using The TREX Search Component
LeverX ABAP Basics - Using The TREX Search Component
LeverX
 
LeverX SAP ABAP Basics - Creating Custom Screen Via Screen Painter
LeverX SAP ABAP Basics - Creating Custom Screen Via Screen PainterLeverX SAP ABAP Basics - Creating Custom Screen Via Screen Painter
LeverX SAP ABAP Basics - Creating Custom Screen Via Screen Painter
LeverX
 
LeverX SAP Essential Tutorial - Simple Data Extraction
LeverX SAP Essential Tutorial - Simple Data ExtractionLeverX SAP Essential Tutorial - Simple Data Extraction
LeverX SAP Essential Tutorial - Simple Data Extraction
LeverX
 
LeverX Essential SAP Tutorial - ABAP: Creating A New Development Package
LeverX Essential SAP Tutorial - ABAP: Creating A New Development PackageLeverX Essential SAP Tutorial - ABAP: Creating A New Development Package
LeverX Essential SAP Tutorial - ABAP: Creating A New Development Package
LeverX
 
SAP PLM Bill of Material (BOM) Redlining
SAP PLM Bill of Material (BOM) Redlining SAP PLM Bill of Material (BOM) Redlining
SAP PLM Bill of Material (BOM) Redlining
LeverX
 
LeverX SAP PLM Tutorial - BOM Redlining
LeverX SAP PLM Tutorial - BOM RedliningLeverX SAP PLM Tutorial - BOM Redlining
LeverX SAP PLM Tutorial - BOM Redlining
LeverX
 
LeverX SAP ABAP Tutorial Creating Function Modules
LeverX SAP ABAP Tutorial Creating Function ModulesLeverX SAP ABAP Tutorial Creating Function Modules
LeverX SAP ABAP Tutorial Creating Function Modules
LeverX
 
LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…
LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…
LeverX SAP Tutorial Product Structure Synchronization Overview and Fucntio…
LeverX
 
LeverX - A Comprehensive Guide to SAP PLM 7.01
LeverX - A Comprehensive Guide to SAP PLM 7.01LeverX - A Comprehensive Guide to SAP PLM 7.01
LeverX - A Comprehensive Guide to SAP PLM 7.01
LeverX
 
LeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation EssentialsLeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation Essentials
LeverX
 
LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...
LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...
LeverX Tutorial - SAP PLM Guided Structure Synchronization - Overview and Fun...
LeverX
 
LeverX SAP PLM Tutorial - Product Structure Management - Create a Product St...
LeverX SAP PLM Tutorial - Product Structure Management  - Create a Product St...LeverX SAP PLM Tutorial - Product Structure Management  - Create a Product St...
LeverX SAP PLM Tutorial - Product Structure Management - Create a Product St...
LeverX
 
LeverX ABAP Basics - Using The TREX Search Component
LeverX ABAP Basics - Using The TREX Search ComponentLeverX ABAP Basics - Using The TREX Search Component
LeverX ABAP Basics - Using The TREX Search Component
LeverX
 
LeverX SAP ABAP Basics - Creating Custom Screen Via Screen Painter
LeverX SAP ABAP Basics - Creating Custom Screen Via Screen PainterLeverX SAP ABAP Basics - Creating Custom Screen Via Screen Painter
LeverX SAP ABAP Basics - Creating Custom Screen Via Screen Painter
LeverX
 
LeverX SAP Essential Tutorial - Simple Data Extraction
LeverX SAP Essential Tutorial - Simple Data ExtractionLeverX SAP Essential Tutorial - Simple Data Extraction
LeverX SAP Essential Tutorial - Simple Data Extraction
LeverX
 
LeverX Essential SAP Tutorial - ABAP: Creating A New Development Package
LeverX Essential SAP Tutorial - ABAP: Creating A New Development PackageLeverX Essential SAP Tutorial - ABAP: Creating A New Development Package
LeverX Essential SAP Tutorial - ABAP: Creating A New Development Package
LeverX
 

Recently uploaded (20)

Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Top 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing ServicesTop 10 IT Help Desk Outsourcing Services
Top 10 IT Help Desk Outsourcing Services
Infrassist Technologies Pvt. Ltd.
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Unlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive GuideUnlocking the Power of IVR: A Comprehensive Guide
Unlocking the Power of IVR: A Comprehensive Guide
vikasascentbpo
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
MINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PRMINDCTI revenue release Quarter 1 2025 PR
MINDCTI revenue release Quarter 1 2025 PR
MIND CTI
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 

LeverX SAP ABAP Tutorial - Creating and Calling Web Services

  • 1. Essential SAP ABAP Tutorial How To Use WEB Services In SAP ABAP By Eugene Ostroumov 1 Copyrighted 2012 by LeverX, Inc.
  • 2. Tutorial Overview In this tutorial you will learn how to create and call WEB Services in ABAP. Tutorial consists of two parts: 1) how to create WEB Service based on Function Module; 2) how to call WEB Service via ABAP Each part is a step-by-step instruction that will guide you thru the whole process of creation 2 Copyrighted 2012 by LeverX, Inc.
  • 3. How to create WEB Service based on FM Step 1 Creating a function module with import and export parameters 3 Copyrighted 2012 by LeverX, Inc.
  • 4. How to create WEB Service based on FM Step 2 As an example of functional module logic let’s extract active users 4 Copyrighted 2012 by LeverX, Inc.
  • 5. How to create WEB Service based on FM Step 3 Mark the function module as a Remote-Enabled Module 5 Copyrighted 2012 by LeverX, Inc.
  • 6. How to create WEB Service based on FM Step 4 Create a Web Service based on the function module 6 Copyrighted 2012 by LeverX, Inc.
  • 7. How to create WEB Service based on FM Step 5 Enter a name and description for the Web Service Name Description 7 Copyrighted 2012 by LeverX, Inc.
  • 8. How to create WEB Service based on FM Step 6 The name of functional module is entered automatically 8 Copyrighted 2012 by LeverX, Inc.
  • 9. How to create WEB Service based on FM Step 7 Choose a profile for Security Settings 9 Copyrighted 2012 by LeverX, Inc.
  • 10. How to create WEB Service based on FM Step 8 Enter the name of the package and transport request or choose Local Object 10 Copyrighted 2012 by LeverX, Inc.
  • 11. How to create WEB Service based on FM Step 9 Creation of Web Service is finished It will be activated after pressing “Complete” button 11 Copyrighted 2012 by LeverX, Inc.
  • 12. How to create WEB Service based on FM Step 10 After creation of Web Service it is important to get WSDL document. It is main key for access to your Web Service. Use the URL or save it to file. URL Save to file 12 Copyrighted 2012 by LeverX, Inc.
  • 13. How to create WEB Service based on FM Step 11 The correctness of the WSDL document can be checked in the transaction SOAMANAGER: Path: Business Administration => Web-Service Administration 13 Copyrighted 2012 by LeverX, Inc.
  • 14. How to create WEB Service based on FM Step 12 Web Service can be found in the transaction SICF Path: default_host => sap => bc => srt => rfc => sap 14 Copyrighted 2012 by LeverX, Inc.
  • 15. How to call WEB Service using ABAP Step 1 To call Web Service it is necessary to create a proxy object Use transaction SE80 to do this 15 Copyrighted 2012 by LeverX, Inc.
  • 16. How to call WEB Service using ABAP Step 2 Choose “Service Consumer” type of proxy 16 Copyrighted 2012 by LeverX, Inc.
  • 17. How to call WEB Service using ABAP Step 3 Select a source of WSDL. In our case it is “URL/HTTP Destination” 17 Copyrighted 2012 by LeverX, Inc.
  • 18. How to call WEB Service using ABAP Step 4 Define URL of WSDL Document (Step 10 of creation of Web Service) 18 Copyrighted 2012 by LeverX, Inc.
  • 19. How to call WEB Service using ABAP Step 5 Enter the name of the package and transport request or choose Local Object 19 Copyrighted 2012 by LeverX, Inc.
  • 20. How to call WEB Service using ABAP Step 6 Creation of Proxy is finished. You should activate it after pressing “Complete” button 20 Copyrighted 2012 by LeverX, Inc.
  • 21. How to call WEB Service using ABAP Step 7 Enter User name and Password to read WSDL Document This step doesn’t exist is case of local file for WSDL Document 21 Copyrighted 2012 by LeverX, Inc.
  • 22. How to call WEB Service using ABAP Step 8 Activate the Proxy 22 Copyrighted 2012 by LeverX, Inc.
  • 23. How to call WEB Service using ABAP Step 9 Now we need to Choose “Consumer Proxy” create a local logical port in transaction SOAMANAGER Search your Proxy by name Choose your Proxy Path: Business Apply Selection Administration => Create Logical Port Web-Service Administration 23 Copyrighted 2012 by LeverX, Inc.
  • 24. How to call WEB Service using ABAP Step 10 Enter general configuration settings You can use WSDL document or do it manually 24 Copyrighted 2012 by LeverX, Inc.
  • 25. How to call WEB Service using ABAP Step 11 Save logical port after it is generated Save 25 Copyrighted 2012 by LeverX, Inc.
  • 26. How to call WEB Service using ABAP Step 12 REPORT zws_call. Now everything is done DATA: lr_proxy TYPE REF TO zws_co_z_get_active_users. DATA: o_err TYPE REF TO cx_root. and you can call Web DATA: DATA: output TYPE zws_zws_users_response. input TYPE zws_zws_users. Service from your ABAP DATA: ls_item TYPE LINE OF zws_zws_users_response-users-item. TRY. program CREATE OBJECT lr_proxy EXPORTING logical_port_name = 'GET_USERS'. CATCH cx_ai_system_fault INTO o_err. Here is an example of a MESSAGE o_err TYPE 'I'. ENDTRY. input-rfc_only = space. report that shows all active TRY. CALL METHOD lr_proxy->zws_users users EXPORTING input = input IMPORTING output = output. CATCH cx_ai_system_fault INTO o_err. MESSAGE o_err TYPE 'I'. CATCH cx_ai_application_fault INTO o_err. MESSAGE o_err TYPE 'I'. ENDTRY. LOOP AT output-users-item INTO ls_item. WRITE: / ls_item-bname, ls_item-tcode, ls_item-term. ENDLOOP. 26 Copyrighted 2012 by LeverX, Inc.
  • 27. Conclusion Web Services allow to increase functionality of your system and leverage your investments Mobile applications Web applications WEB Another systems Your SAP system 27 Copyrighted 2012 by LeverX, Inc.
  • 28. Contact Information Please contact us for more information about our services or solutions available. LeverX, Inc. 800 West El Camino Real, Suite 180 Mountain View, CA 94040 USA Tel: (650) 625 – 8347 Web Site: www.LeverX.com 28 Copyrighted 2012 by LeverX, Inc.