Oldarabieats

Step by step to create, consume and trace web service in ABAP system

This document could be used as guide for beginners to learn and use ABAP web service.

The following steps demonstrates how to expose a function module as a web service provider in SAP CRM system.

1. create a new function module to return product description by given input product ID.

Signature and source code of function module:

FUNCTION ZGET_PROD_DESCRIPTION.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(IV_PROD_ID) TYPE  COMM_PRODUCT-PRODUCT_ID
*"  EXPORTING
*"     VALUE(RV_TEXT) TYPE  STRING
*"----------------------------------------------------------------------
SELECT SINGLE A~short_text INTO rv_text FROM COMM_PRSHTEXT  AS A
  INNER JOIN comm_product AS B ON B~product_id = iv_prod_id AND B~product_guid = A~product_guid.
ENDFUNCTION.

Make sure the FM is marked as “Remote enabled”.

2. start the web service creation wizard:

https://blogs.sap.com/wp-content/uploads/2014/05/clipboard2_456139.png

Just follow the wizard to finish creation. Choose the appropriate authentication approach according to your use case.

https://blogs.sap.com/wp-content/uploads/2014/05/clipboard3_456147.png

3. Once creation is finished, you would find your service definition as below:

https://blogs.sap.com/wp-content/uploads/2014/05/clipboard4_456149.png

click tab WSDL, write down your

Read More

Learn Web Services: Design, Create, Consume & Secure SOAP and REST

Bharath Thippireddy is an Entrepreneur, Software Architect and Public Speaker who has trained 400000 + students across the planet. He is Oracle Certified Developer, Web Component Developer, Business Component Developer, Web Services Developer.

He loves learning new things both in technology and personal development and shares them on YouTube and his web site. He have mentored students in class room trainings as well as in the corporate world both in India as well as in USA. He has spoken on technical topics at several agile conferences. While in India he also voluntarily teaches interview and soft skills at Vivekananda Kendra.

His trainings will help you master Full Stack Development using Java,Python,JavaScript and DevOps, AWS, Docker, Kubernetes.

From 25 Courses which currently have 400K+ Learners you can pick a track and master

Spring Boot Project Development using Angular and React

Angular and React project creation with Java or Node backend

Complete

Read More