Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
4 views
8 pages
BAPIs - RFCs - Web Services ABAP
Monitorizar RFCs
Uploaded by
Dali Cima
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save BAPIs -RFCs -Web Services ABAP For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
4 views
8 pages
BAPIs - RFCs - Web Services ABAP
Monitorizar RFCs
Uploaded by
Dali Cima
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save BAPIs -RFCs -Web Services ABAP For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
sornares, 14:08 BAPIs / RFCs ! Web Services ABAP Comunicaciones en SAP (ComunicacionesenSAP.htm)) / BAPIs / RFCs / Web Services ABAP En "San Google” disponéis de muchas referencias a cémo construlr o invocar una RFC 0 un Web Service ABAP, luego, no es mi intencién repasar cémo hacerlo, Me interesa més volver a la idea de que lo llames cémo lo llames siempre es lo mismo, es decir, estamos consumiendo o publicando servicios web RESTIull, Mira los apartados finales de esta pagina. Entonces, me parece mas importante que los consultores SAP conozean herramientas que nos ayuden con los servicios web a monitorizarios, a construirios o a probartos. En concreto, a mi siempre me han gustado mucho estas dos: + Postman (https:/www.postman.com)). Es una herramienta que permite invocar cualquier servicio web publicado en la red de redes. Es decir, nos permite probar cualquier servicio web y ver el resultado que devuelve. + SOAP Ul (httpsi/ivww.soapui.org)). Es otra herramienta que nos permite invocar cualquier servicio web publicado en la red de redes aunque, para ml, su gran utllidad es la invocacién de servicios web SOAP. Parliendo de un WSDL construye el XML que permite hacer la llamada. Ojo que SAP también dispone de una herramienta para probar a consumir un servicio que é| mismo expone como para probar a realizar una llamada a un web service externo, Monitorizar RFCs Para monitorizar RFCs podemos usar la transaccién SRT_UTIL. Podemos activar la monitorizacién por el usuario 0 por la maquina que realiza la peticién o por el servicio ICF al que llama Ayuda para servicios Web BG Grog de errores EL monttor de mensajes + CUsuario & Terminals & Request-URI ea ieigeais @ Usuario 1D terminal DECEAHIBCISCC) OSOLURI Ahora toca activar el nivel de traza que queremos. Dado que la traza se activa por un periodo de tiempo, yo suelo activar todo al maximo nivel. En el momento en el que grabemos la configuracién deseada tenemos activa la traza de los servicios web indicados tanto de peticiones recibidas como de peticiones que hagamos al exterior. hitpsifabapinfo/ComunicacionesHTTPIBAPISRECsWabServicesABAPHim| 18sornaiea, 14:08 BAPIs / RFCS ! Web Services ABAP Anuda para servicios Web 9% Griascearone (Byentarce menses * S2Usara 8 Terra & Reaves UR —_ SRST vara Tae eal) ar TAG] Ceasar ‘ace de vend Polat Tce oorararton 9 2 srceetonon 6 encanto de cnfeacdn sai mene ts 3 essai) editor Seren —] Consumir o hacer la llamada a una RFC de SAP usando una peticién POST HTTP iVengal Vamos a construir la llamada a una RFC desde una peticién REST POST. Lo primero encontrar una RFC, es decir, un médulo de funcién que tenga marcado el acceso remoto. Por ejemplo, el médulo de funcién RFC_GET_SYSTEM_INFO Lo primero es confirmar que el médulo de funcién es una RFC Supe defnores fou = a estes a f fone : ae ae ee 3 ee ae Acontinuacién, debemos confirmar que el servicio ICF sap/be/soapirfc esta activo hitpsifabapinfo/ComunicacionesHTTPIBAPISRECsWabServicesABAPHim| 218sornares, 14:08 APIs / RFCs / Wob Services ABAP rtuele Hosts / Services ecursentacin oe Hoss cc é _ Referer Seve © defaut host JOST VIRTUAL POR DEFECTO 7 @ sop Area nombres SAP; SAP se obliga a no suministrar... “8 bs Atpol Base (funconaidades Base) “tae “Ore | t Apartir de aqui, podemos imos al Postman a construir nuestra peticion POST {Ojo aqui! Es importante poner un Content-Type que SAP acepte. En este caso, puede ser text/xml Post 1 / |433sap/bc/s0ap ite Setting Params Authorization @ Headers (11) Body@ Prevrequest Serit Tests
User-agent © PostmanRuntine/728.4 Accept © Accept-Encoding @ zip, deflate, br Connection @ Keep-alive post 23/5806 (7) Booye Prevequestserpt Tess Settings none @ form-dsta © xewwfomurencoded @ raw © dnay @ Gaprat Pim] ~ Beassenvetonel Dejo el XML para facilitar su reutilizacién :Envelope xmlns:soap: tp: //schenas.xnlsoap-org/seap/envelope/* xmlns: com:document :sap:rfc:functions">
‘
htips:/abap infolComunicacionesHTTPIBAPISRFCsWebServicesABAP him! 318sornares, 14:08 APIs / RFCs / Wob Services ABAP FC_GET_SYSTEM_INFO> Y aqui tenemos la respuesta Consumir o hacer la llamada a un Web Service de SAP usando una peticién POST HTTP Y, ahora, vamos a construir la llamada a un Web Service de SAP desde una peticiin REST POST. Lo primero es localizar el Web Service y su WDSL. Para eso usamos la transaccién SE8O para ver el paquele donde esta construfdo el Web Service htips:/abap infolComunicacionesHTTPIBAPISRFCsWebServicesABAP him! 418sovtaie4, 14:08 APIs / RFCs / Wob Services ABAP Y, una vez abierto el objeto, podemos ira la pestafla de WDSL para localizar su URL La copiamos y usamos la aplicacién SOAP Ul para crear un nuevo proyecto en el que importamos nuestra WDSL y le pedimos que nos cree una llamada de ejemplo. Sigue estos pasos htips:/abap infolComunicacionesHTTPIBAPISRFCsWebServicesABAP him!sornares, 14:08 BAPIs / RFCs / Wob Services ABAP @ soapui 580 File Project_Suite Case Step Tocls New SOAP Project ‘i x New SOAP Project Of Creates aWSDLISOAP based Projectin ths werkspace ProjectName: [Teco] iit SDL [Ferg irene WODITTTADY ae oR] Cieate Requests:[¥] Greate sample requests for all operations? Create TestSuite: [] Cates a TestSute forthe imported WSDL Relative Paths: Storesall file paths in project telativey to projec file requires save) Ponemos nuestro usuario y contrasefia de SAP © basic Authentication Basic Authentication Specify Basic Authentication Credentials Info: Authentication required for [scruz-s-053.disagrupo.es 1433] Username: [ Password! Y ahora abrimos el ejemplo de llamada que nos ha construido de la que queremos la URL y el XML fe Priet Sate Coe Sep Ten Deon Hep Bee ie ogee ty SMP EST mye Sed Fem flee >vogo : 2S binding “eng Bavelope ant Woape heap Few. Ebdon Saer ES catogn htips:/abap infolComunicacionesHTTPIBAPISRFCsWebServicesABAP him! aesornares, 14:08 APIs / RFCs / Wob Services ABAP Podriamos usar el mismo SOAP UI para hacer la llamada pero, a mi me gusta més, usar el Postman para hacer estas tareas. iVamonos al Postmant Y repetimos practicamente los pasos que hicimos para llamar a la RFC eemame — Post Yt 8 009/s90/b Content-Length © calculated wen requests sent> Host © calculated nen request sent> User-Agent © PostmanRuntme/728.4 Accent © / Aecept-Encosing © 92, detate, br Connection keep-aive Content-Type applicatonisoapexm! Y ya podemos ejecutarto En definitiva, para llamar a una RFC 0 un Web Service de SAP desde un sistema externo no necesitamos controladores ni aplicaciones especificas ni un middleware ni nada. Cualquier herramienta que nos permita hacer una peticién POST es suficiente. htips:/abap infolComunicacionesHTTPIBAPISRFCsWebServicesABAP him! 718‘or224, 14:06 APIs / RFCs / Web Services ABAP Fijate que los datos que necesitamos son 1. La URL 0 URI a invocar que lleva asociado el servicio ICF que hay que usar. En el sistema que ya he probado son © saplbc/soapirfc para las RFC © saplbclsrtirfe/saphox para los Web Service donde 100x es el nombre del Web Service 2. El Content-Type a usar. Siempre nos vale text/xml y para los Web Service también podemos usar application/soap+xml 3. El formato de datos del payload, body o contenido a pasar, es decir, cémo pasar los datos, En ambos casos es un XML es formato SOAP pero SAP es muy restrictivo para esto. Por ejemplo, fijate que el espacio de nombres o namespace de xmins:soap es diferente en cada llamada © http://schemas.xmisoap org/soap/envelope/ para la RFC © hitp:/iwww.w3,0rg/2003/05/soap-envelope para el Web Service Copyright © Octubre 2021 by Marcos Almeida. All Rights Reserved. hitpsifabapinfo/ComunicacionesHTTPIBAPISRECsWabServicesABAPHim| a8
You might also like
How To Call RESTful APIs From SAP ABAP - A Step-By-... - SAP Community
PDF
No ratings yet
How To Call RESTful APIs From SAP ABAP - A Step-By-... - SAP Community
20 pages
Approach 2 - Middleware - SAP ECC or S4HANA BTP
PDF
No ratings yet
Approach 2 - Middleware - SAP ECC or S4HANA BTP
20 pages
Como Publicar REST Web Service - ABAP SAP
PDF
100% (1)
Como Publicar REST Web Service - ABAP SAP
5 pages
5 Possible Asynchronous Messaging Way To Decouple Sender and Reciever
PDF
No ratings yet
5 Possible Asynchronous Messaging Way To Decouple Sender and Reciever
21 pages
Web Services Proxy
PDF
No ratings yet
Web Services Proxy
26 pages
Interface Overview
PDF
No ratings yet
Interface Overview
6 pages
CC Unit6
PDF
No ratings yet
CC Unit6
18 pages
Restfull API Basics
PDF
No ratings yet
Restfull API Basics
6 pages
Pervasive Web Services and Security 2010
PDF
No ratings yet
Pervasive Web Services and Security 2010
123 pages
Jax RS
PDF
No ratings yet
Jax RS
58 pages
Hci10 Web Services en
PDF
No ratings yet
Hci10 Web Services en
38 pages
XML-RPC Web Services
PDF
No ratings yet
XML-RPC Web Services
15 pages
A Restful Approach: Clean Upnp Without Soap
PDF
No ratings yet
A Restful Approach: Clean Upnp Without Soap
6 pages
Soap 1 130226094250
PDF
No ratings yet
Soap 1 130226094250
50 pages
How To Create Web Services ABAP Based
PDF
No ratings yet
How To Create Web Services ABAP Based
61 pages
11 Web Services
PDF
No ratings yet
11 Web Services
94 pages
Developing Plain RESTful APIs in ABAP
PDF
No ratings yet
Developing Plain RESTful APIs in ABAP
6 pages
Restful Apis
PDF
No ratings yet
Restful Apis
8 pages
Web Services en
PDF
No ratings yet
Web Services en
38 pages
Real Web Services With REST and ICF
PDF
No ratings yet
Real Web Services With REST and ICF
7 pages
Consuming SAP XI Web Service With Microsoft Visual C# 2008 Express Edition
PDF
No ratings yet
Consuming SAP XI Web Service With Microsoft Visual C# 2008 Express Edition
27 pages
Working With Web Services From ABAP PDF
PDF
100% (1)
Working With Web Services From ABAP PDF
16 pages
SAP CE 7.2 Sample Process Step-By-Step Guide
PDF
No ratings yet
SAP CE 7.2 Sample Process Step-By-Step Guide
14 pages
Creating and Consuming Web Services With PHP
PDF
No ratings yet
Creating and Consuming Web Services With PHP
9 pages
Web Services
PDF
No ratings yet
Web Services
63 pages
Web Services Guide: Public SAP Cloud Integration For Data Services 1.0.11 2021-04-12
PDF
No ratings yet
Web Services Guide: Public SAP Cloud Integration For Data Services 1.0.11 2021-04-12
38 pages
Sicf Tutorial Part2
PDF
No ratings yet
Sicf Tutorial Part2
9 pages
Enterprise Service
PDF
No ratings yet
Enterprise Service
14 pages
Introduction To Web Services: Asst. Prof. Chaiporn Jaikaeo, PH.D
PDF
No ratings yet
Introduction To Web Services: Asst. Prof. Chaiporn Jaikaeo, PH.D
15 pages
Techgigwebservices 140514010219 Phpapp01
PDF
No ratings yet
Techgigwebservices 140514010219 Phpapp01
37 pages
Building XML Web Services With PHP Nusoap
PDF
No ratings yet
Building XML Web Services With PHP Nusoap
12 pages
Restful Web Services
PDF
100% (1)
Restful Web Services
44 pages
Web Services: RPC, Soap and Rest
PDF
No ratings yet
Web Services: RPC, Soap and Rest
37 pages
Web Service & API Attacks
PDF
No ratings yet
Web Service & API Attacks
47 pages
REST Services
PDF
No ratings yet
REST Services
10 pages
Consuming Webservices With Abap: Thomas Jung Business Card Business Server Pages Abap Application Server
PDF
No ratings yet
Consuming Webservices With Abap: Thomas Jung Business Card Business Server Pages Abap Application Server
11 pages
Rest Api
PDF
100% (2)
Rest Api
22 pages
Scenario On RFC To SOAP
PDF
No ratings yet
Scenario On RFC To SOAP
11 pages
Web Services
PDF
No ratings yet
Web Services
5 pages
SAP Business Connector
PDF
No ratings yet
SAP Business Connector
6 pages
Executing RFC Calls From A NetWeaver Cloud Application
PDF
No ratings yet
Executing RFC Calls From A NetWeaver Cloud Application
18 pages
Web Services From RPG With HTTPAPI
PDF
No ratings yet
Web Services From RPG With HTTPAPI
24 pages
"Web Service - PI - Web Service" Scenario - A Complete Walkthrough
PDF
100% (1)
"Web Service - PI - Web Service" Scenario - A Complete Walkthrough
40 pages
Slides 10 WebServices
PDF
No ratings yet
Slides 10 WebServices
38 pages
Process Integration With Rest Service
PDF
No ratings yet
Process Integration With Rest Service
5 pages
How To Wrap Any ABAP-RFC-Call
PDF
No ratings yet
How To Wrap Any ABAP-RFC-Call
12 pages
Integrating Siebel Web Services Aug2006
PDF
100% (1)
Integrating Siebel Web Services Aug2006
146 pages
Web Services With REST and ICF
PDF
No ratings yet
Web Services With REST and ICF
12 pages