Documents

ABAP-Based HTTP Client for Messages to SAP XI.doc

Description
ABAP-Based HTTP Client for Messages to SAP XI Applies To: SAP NW 04 – XI 3.0 and SAP R/3 4.6C and above Summary In the SAP Exchange Infrastructure (XI), the HTTP adapter is native to the Integration Server (IS). A sender HTTP Adapter need not be configured in XI. HTTP messages can be sent to the native HTTP adapter of XI. There is a browser-based tool already available for this purpose. This article describes an ABAP-based tool for acting as the sender HTTP adapter. By: Bhanumurthy Thirumala C
Categories
Published
of 15
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  ABAP-Based HTTP Client forMessages to SAP XI  © 2006 SAP AG The SAP Developer Network:http://sdn.sap.com 1 Applies To: SAP NW 04 – XI 3.0 and SAP R/3 4.6C and above Summary In the SAP Exchange Infrastructure (XI), the HTTP adapter is native to the Integration Server (IS). A senderHTTP Adapter need not be configured in XI. HTTP messages can be sent to the native HTTP adapter of XI.There is a browser-based tool already available for this purpose. This article describes an ABAP-based toolfor acting as the sender HTTP adapter. By : Bhanumurthy Thirumala Company : Intelligroup, Inc. Date : 07 February 2006 Table of Contents Applies To:........................................................................................................................................1   Summary..........................................................................................................................................1   Table of Contents.............................................................................................................................1   Introduction.......................................................................................................................................2   Description of the ABAP program for HTTP Client..........................................................................2   Selection Screen of the program..................................................................................................2   Explanation of the Selection Screen Fields..................................................................................4   Runtime behavior..........................................................................................................................5   Program Constraints.....................................................................................................................6   Source Code of the ABAP program for HTTP Client.......................................................................7   Texts needed for the ABAP program for HTTP Client...................................................................14   Selection Texts...........................................................................................................................14   Text Elements.............................................................................................................................14   Browser-based HTTP Client...........................................................................................................15   Author Bio.......................................................................................................................................15   Disclaimer & Liability Notice...........................................................................................................15    ABAP-Based HTTP Client forMessages to SAP XI  © 2006 SAP AG The SAP Developer Network:http://sdn.sap.com 2   Introduction The HTTP adapter can be used for sending a payload to XI without SOAP envelope. It is native to theIntegration Server (IS) in XI. Consequently, there is no need to configure a sender HTTP Adapter in XI.Browser-based tools are already available for sending HTTP messages to the native HTTP adapter of XI.However, an ABAP-based tool can have certain advantages over the browser-based tool, if the sendingsystem is based on SAP. This article describes an ABAP-based tool for acting as the sender HTTPadapter.There may be valid business reasons for the SAP-based sending system to use a HTTP adapter, suchas: o Ability to send messages to several SAP systems in the same format o Minimum efforts in configuration and maintenance o Automate the sending processSome advantages of using an ABAP-based HTTP Client as compared to the browser-based tool: o Save different variants of selection screen for different receivers o Possibility to Schedule automated jobs to send messages from XML files o Provision to integrate the application into the business events of the back-end ERP system o In-line Text Editor that can be used for editing the Payload o Helpful in testing any Receiver Adapter o Can be enhanced to include logging the errors to a file and any custom validations on thePayload contents and communication data Description of the ABAP program for HTTP Client This ABAP Program is an executable stand-alone report program, with a selection screen. It does nothave any other dependent components. The only requirement is that the SAP environment in which this isexecuted should have the function module HTTP2_POST.The reason for using this function module HTTP2_POST and not the Class CL_HTTP_CLIENT is that thistool should be useful for older versions of SAP. The Class CL_HTTP_CLIENT has been undergoingsome revisions long after the function module HTTP2_POST became available. If needed, the code canbe modified to use the Class CL_HTTP_CLIENT instead. Selection Screen of the program Here is how the selection screen of the program appears:  ABAP-Based HTTP Client forMessages to SAP XI  © 2006 SAP AG The SAP Developer Network:http://sdn.sap.com Variants can be created and used as needed for each receiver. For example:3  ABAP-Based HTTP Client forMessages to SAP XI  © 2006 SAP AG The SAP Developer Network:http://sdn.sap.com  Explanation of the Selection Screen Fields Here is an explanation of the fields: Field Description Integration ServerHost&PortThe XI Integration Server’s <Host>:<Port>Quality of Service Allowed values: o BE (Best Effort) o EO (Exactly Once) o EOIO (Exactly Once In Order)Client SAP Client of the XI systemUser User to access the XI system client o Defaults to XIAPPLUER o If different, the user should have the same roles as XIAPPLUERPassword Password for the user access to the XI system clientLanguage Logon language for the user access to XI system client, Defaults to DEParty Sender Party, Optional4

Cloud Computing

Jan 30, 2018

Readme

Jan 30, 2018
Search
Similar documents
View more...
Tags
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks