SlideShare une entreprise Scribd logo
1  sur  28
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.

Contenu connexe

Tendances

Affordable Workflow Options for APEX
Affordable Workflow Options for APEXAffordable Workflow Options for APEX
Affordable Workflow Options for APEXNiels 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 SpendoliniEnkitec
 
RAML - The architecture
RAML  - The architectureRAML  - The architecture
RAML - The architectureAnkush 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#1Amit Sharma
 
Rohit_Kumar_Resume
Rohit_Kumar_ResumeRohit_Kumar_Resume
Rohit_Kumar_ResumeRohit Kumar
 
Consuming Data With HANA XS
Consuming Data With HANA XSConsuming Data With HANA XS
Consuming Data With HANA XSBlackvard
 
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 muleAdithya 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 portalmlech23
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migrationAmit Sharma
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorialnolimit797
 
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 ESBSanjeet Pandey
 
HANA XS Web Service
HANA XS Web ServiceHANA XS Web Service
HANA XS Web ServiceBlackvard
 
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 0Dima Maleev
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarKeyur Shah
 
Building restful apis with laravel
Building restful apis with laravelBuilding restful apis with laravel
Building restful apis with laravelMindfire 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 ServerMehmet Yilmaz
 

Tendances (19)

Affordable Workflow Options for APEX
Affordable Workflow Options for APEXAffordable Workflow Options for APEX
Affordable Workflow Options for APEX
 
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
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
RAML - The architecture
RAML  - The architectureRAML  - The architecture
RAML - The architecture
 
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
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
 
Rohit_Kumar_Resume
Rohit_Kumar_ResumeRohit_Kumar_Resume
Rohit_Kumar_Resume
 
Consuming Data With HANA XS
Consuming Data With HANA XSConsuming Data With HANA XS
Consuming Data With HANA XS
 
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
 
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
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migration
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorial
 
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
 
HANA XS Web Service
HANA XS Web ServiceHANA XS Web Service
HANA XS Web Service
 
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
 
Accessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup WebinarAccessibility Testing - Using Asqatasun - Meetup Webinar
Accessibility Testing - Using Asqatasun - Meetup Webinar
 
Oracle OSB Tutorial 3
Oracle OSB Tutorial 3Oracle OSB Tutorial 3
Oracle OSB Tutorial 3
 
Building restful apis with laravel
Building restful apis with laravelBuilding restful apis with laravel
Building restful apis with laravel
 
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
 

En vedette

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 Collidechar booth
 
Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawlerishmecse13
 
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 1Panduka Bandara
 
Matriz requisitos legales
Matriz requisitos legalesMatriz requisitos legales
Matriz requisitos legalessena
 

En vedette (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
 
Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
 
WebCrawler
WebCrawlerWebCrawler
WebCrawler
 
Web crawler
Web crawlerWeb crawler
Web crawler
 
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...
 
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
 
Matriz requisitos legales
Matriz requisitos legalesMatriz requisitos legales
Matriz requisitos legales
 
Web Crawler
Web CrawlerWeb Crawler
Web Crawler
 

Similaire à LeverX SAP ABAP Tutorial - Creating and Calling Web Services

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.1Royal 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 InvestmentStrongback Consulting
 
WebSphere sMash June Product Review
WebSphere sMash June Product ReviewWebSphere sMash June Product Review
WebSphere sMash June Product ReviewProject 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 applicationsJack-Junjie Cai
 
GIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdfGIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdfRichHagarty
 
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 GuideSreenivasa Setty
 
Developer-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for KubernetesDeveloper-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for KubernetesDevOps Indonesia
 
Introduction to CloudStack API
Introduction to CloudStack APIIntroduction to CloudStack API
Introduction to CloudStack APIKrunal 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 serversMark Myers
 
PWA basics for developers
PWA basics for developersPWA basics for developers
PWA basics for developersFilip 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 2014cornelia davis
 

Similaire à LeverX SAP ABAP Tutorial - Creating and Calling Web Services (20)

ASP Net
ASP NetASP Net
ASP Net
 
Web services
Web servicesWeb services
Web services
 
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
 
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
 
Mashups
MashupsMashups
Mashups
 
WebSphere sMash June Product Review
WebSphere sMash June Product ReviewWebSphere sMash June Product Review
WebSphere sMash June Product Review
 
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
 
GIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdfGIDS_15FactorWorkshop.pdf
GIDS_15FactorWorkshop.pdf
 
Sst hackathon express
Sst hackathon expressSst hackathon express
Sst hackathon express
 
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
 
SOA web services concepts
SOA web services conceptsSOA web services concepts
SOA web services concepts
 
Developer-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for KubernetesDeveloper-Friendly CI / CD for Kubernetes
Developer-Friendly CI / CD for Kubernetes
 
Introduction to CloudStack API
Introduction to CloudStack APIIntroduction to CloudStack API
Introduction to CloudStack API
 
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...
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
PWA basics for developers
PWA basics for developersPWA basics for developers
PWA basics for developers
 
ragi_tutorial_v1
ragi_tutorial_v1ragi_tutorial_v1
ragi_tutorial_v1
 
ragi_tutorial_v1
ragi_tutorial_v1ragi_tutorial_v1
ragi_tutorial_v1
 
Embarcadero RAD server Launch Webinar
Embarcadero RAD server Launch WebinarEmbarcadero RAD server Launch Webinar
Embarcadero RAD server Launch Webinar
 
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
 

Plus de 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 RedliningLeverX
 
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 ModulesLeverX
 
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.01LeverX
 
LeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation EssentialsLeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation EssentialsLeverX
 
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 ComponentLeverX
 
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 PainterLeverX
 
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 ExtractionLeverX
 
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 PackageLeverX
 

Plus de 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 SAP PLM Tutorial - BOM Redlining
LeverX SAP PLM Tutorial - BOM RedliningLeverX SAP PLM Tutorial - BOM Redlining
LeverX SAP PLM Tutorial - BOM Redlining
 
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 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 - 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 SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation EssentialsLeverX SAP 7.02 Navigation Essentials
LeverX SAP 7.02 Navigation Essentials
 
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 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 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 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 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 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
 

Dernier

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Dernier (20)

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

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.