ABAP Proxy Interfacing



Similar documents
Step by Step Guide for Language Translation Tool

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Creating Transaction and Screen Variants

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

How to Generate Stack Xml for Ehp4 and Above Upgrade

How to Assign Transport Request for Language Translation?

Restricting Search Operators in any Search View

Quick Viewer: SAP Report Generating Tool

Configuration of Enterprise Services using SICF and SOA Manager

ALE Settings, for Communication between a BW System and an SAP System

SAP CRM 7.0 E2C Setup: CRM via Toolset

Embedding Crystal Reports inside ECC ALV Reports

Creating Content Using SO10 Objects and Text Symbols

Salesforce.com Integration Using SAP PI: A Case Study

How to Modify, Create and Delete Table Entries from SE16

How to Create an ecatt?

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Step by Step guide of Report-to- Report Interface in BW Reporting

SAP FI - Automatic Payment Program (Configuration and Run)

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

Creating New Unit of Measure in SAP BW

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Web Dynpro ABAP: ALV and Table in Popup Window

BW Performance Monitoring

Reverse Transport Mechanism in SAP BI

Table of Content. SAP Query creation and transport Procedure in ECC6

LSMW: Upload Master Data using Batch Input Recording

ABAP How To on SQL Trace Analysis

SAP CRM Campaign Automation

Release Strategy Enhancement in Purchase Order

ABAP Debugging Tips and Tricks

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Order Split Usage in Production Orders

Invoice Collaboration: Self Billing Invoice

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Compounding in Infoobject and Analyzing the Infoobject in a Query

Display Options in Transaction SE16

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

Creation and Configuration of Business Partners in SAP CRM

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Deleting the User Personalization done on Enterprise Portal

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

Consuming Services in SOA Manager

Organizational Management- Organizational Structure Creation

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Working with SAP BI 7.0 Data Transfer Process (DTP)

Direct Subcontracting Process (SAP SD & MM)

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

How to Develop Programs for SAP Mobile RF

Step By Step Procedure to Create Logical File Path and Logical File Name

Guidelines for Effective Data Migration

Sending an Image File Through XI in a File-to-Mail Scenario

SAP CRM-BW Adapter an Overview

Converting and Exporting Data in XML Format

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

Extractor in R/3 and Delta Queue

SAP NetWeaver Developer Studio 7.30 Installation Guide

Deploying Crystal Reports on Top of a SAP BI Query

Currency Conversion using Variables in SAP BI -Reporting

Query OLAP Cache Optimization in SAP BW

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

XSLT Mapping in SAP PI 7.1

Merge PDF files in ABAP

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Creating Mobile Applications on Top of SAP, Part 1

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

Multi Provider Creation Based on Sales and Planning Info Cubes

Inventory Management in SAP BW

SDN Community Contribution

How to Get Work Items from Workflow in your Outlook Inbox

Multi Level Purchase Order Release Strategy

Process Controlled Workflow SRM 7.0 (Using BRF)

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

SAP Workflow in Plain English

Data Extraction and Retraction in BPC-BI

Understanding DSO (DataStore Object) Part 1: Standard DSO

This document applies to SAP ECC 6.0, SAP Netweaver 2004s. For more information, visit the Web Dynpro ABAP homepage.

Splitting the Custom Container & Display more than one ALV

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Consume an External Web Service in a Nutshell with good old ABAP

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

SAP MM: Purchase Requisition with Classification and Workflow Approval

Message handling in SAP CRM Web UI

Integrated Testing Solution Using SAP Solution Manager, HP-QC/QTP and SAP TAO

Different Types of Alerts for Process Chains. Table of Content

Forgot or Lock "Administrator or J2EE_ADMIN" Password

Inventory Management (0IC_C03) Part - 3

SPDD & SPAU Adjustments Handbook

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Vendor Consignment. Applies to: Summary. Author Bio. SAP ECC 6.0. For more information, visit the Supply Chain Management homepage.

SDN Contribution Beginners guide to CRM Interaction Center (IC) Winclient setup

Adobe Document Service Configuration and Troubleshooting Guide

Transcription:

Applies to: This document applies to SAP versions ECC 6.0. Summary This article contains the guidelines for using the ABAP Proxy interfacing. ABAP proxies are used when ABAP applications needs to send or receive messages. ABAP proxies are generated on the Application server with transaction SPROXY, based on the WSDL representation of the message interface. Author: Prasanth Prabhakaran Company: Applexus Software Solutions (P) Ltd Created on: 27 Jun 2011 Author Bio Prasanth P is working as SAP ABAP HR with Applexus Software Solutions (P) Ltd. He is having expertise in various Implementation, Support and Rollout Projects across various countries. 2011 SAP AG 1

Table of Contents Introduction... 3 Inbound Proxy... 4 Service Interface... 4 Provider class methods... 5 Service implementation class... 7 Outbound Proxy... 8 Proxy Class... 8 Related Content... 10 Disclaimer and Liability Notice... 11 2011 SAP AG 2

Introduction ABAP proxies are used when ABAP applications needs to send or receive messages. ABAP proxies are generated on the Application server with transaction SPROXY Advantages of ABAP Proxies. 1. Proxy communication always by passes the Adapter Engine and will directly interact with the application system and Integration engine. So it will give us better performance. 2. Proxies communicate with the XI server by means of native SOAP calls over HTTP. 3. Easy to handle messages with ABAP programming. 4. Proxy is good for large volumes of data. we can catch and persist the errors ( both system & application fault ) which was generated by Proxy setting The rest of the document gives you the steps that are necessary for generating and executing ABAP proxies 2011 SAP AG 3

Inbound Proxy Activate the proxy by double clicking the service interface menu After activating double click the service interface method And select the provider class by double clicking on it. Service Interface 2011 SAP AG 4

Provider class methods Now the provider class methods are shown Double click the proxy method of provider class Note: Before this please create a service implementation class (Service implementation class is a normal class (T.code se24)) 2011 SAP AG 5

Below is the implementation of above method In this method first we have to deactivate the xml handling, and then call the service implementation class method (Copy & paste the same code and change the service implementation class name) 2011 SAP AG 6

Service implementation class Below are the service implementation class methods. The first 6 methods are for FEH and this is inherited from the interface IF_ECH_ACTION In our service implementation class we need to create the implementation for these inherited methods (Refer the attached code) The method flow of service implementation methods of this example are given below Step1: provider class will call the execute method of service implementation Class Step2: The execute method will call the process_in (service implementation Class) method step3: process_in method will call input mapping method and backend process method step4: Backend process method will call the backend logic methods (Logic wrote for the data updation validation.etc) 2011 SAP AG 7

Outbound Proxy Proxy Class See above the generated outbound proxy Double click the proxy class The proxy class method are shown above 2011 SAP AG 8

Please select the method REPLICATE_EMPLOYEE_TIME_CALEND and click the button parameters Here we can see the output structure type; in this example the type was ZSI_HRPT_REPLICATE_EMPLOYEE_T4 We want to use a se38 program for passing the data to proxy. The example code lines for this above proxy below, ls_proxy_out-replicate_employee_time_calend-employee_time_calendar = lt_employee_time_calendar. TRY. CREATE OBJECT lo_hrpt_co_emp_time_roster. CALL METHOD lo_hrpt_co_emp_time_roster->replicate_employee_time_calend EXPORTING output = ls_proxy_out. COMMIT WORK. CATCH cx_ai_system_fault INTO lo_system_fault. ENDTRY. 2011 SAP AG 9

Related Content http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/content.htm http://help.sap.com/saphelp_nw04/helpdata/en/ab/585f3c482a7331e10000000a114084/content.htm http://www.saptechnical.com/tutorials/xi/abapclientproxy/page1.htm 2011 SAP AG 10

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 11