SlideShare uma empresa Scribd logo
1 de 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.

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Mais 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
 

Mais 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
 

Último

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
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
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 

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.