In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to realize the interconnection between two ABAP systems". In the daily operation, I believe many people have doubts about how to realize the interconnection between two ABAP systems. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the questions of "how to realize the interconnection between two ABAP systems". Next, please follow the editor to study!
Scenario: two ABAP system instances on the SAP cloud platform, one as a data provider-provision system; and the other as a data consumer-client system, the latter reads data from the former and displays
Overview of implementation steps:
(1) client System creates outbound communication. (2) create inbound communication in provision system. (3) Create a Service Consumption Model, and save this locally as a $metadata XML file; From this you will create proxy artefacts in the client system, representing the remote service, and use this model to generate an abstract entity. (4) create a remote client proxy (5) create an OData service in client System, consume and display the data retrieved from the provision system using Fiori Elements
Communication Scenario SAP_COM_0276, released by the SAP standard, provides the possibility for SAP Cloud Platform ABAP instances to integrate with remote ABAP On-Premises systems or third-party systems.
A communication arrangement specifies the metadata for a specific communication scenario, such as your host system and the authentication method. This metadata is contained in a service key. You can then define one or more specific destinations for this arrangement.
Communication Arrangement specifies the necessary metadata for Communication Scenario, including information such as communication system and message authentication, which is stored in the form of Service key. You can create Destination based on Communication Arrangement.
Create a Destination service instance in the SAP cloud platform CloudFoundry environment:
Create a new Destination instance based on this Destination service:
The url field is maintained as the url of provision System to ensure that the connection is established successfully.
Create a new service key for Destination service and save its contents locally:
On client System, open the dashboard of ABAP service instance:
In Communication Arrangement tile, create a new instance:
From the Communication Scenario drop-down list, select the SAP_COM_0276: SAP CP CF Destination Service integration described earlier:
After selecting the Communication Scenario, maintain the name of the Communication Arrangement, such as OUTBOUND_XXX.
In Communication Arrangement's additional properties, change the value of service instance name from the default value of OUTBOUND_XXX to something more memorable, such as Outbound-For-Tutorials_XXX.
The final step is to create an ABAP implementation class on ABAP client System:
CLASS ZCL_OUTPUT_HTTP_XXX DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES if_oo_adt_classrun. PROTECTED SECTION. PRIVATE SECTION.ENDCLASS.CLASS ZCL_OUTPUT_HTTP_XXX IMPLEMENTATION. METHOD if_oo_adt_classrun~main. TRY. DATA (lo_destination) = cl_http_destination_provider= > create_by_cloud_destination (i_name ='A 4C access XXX HTTP 'i_service_instance_name =' Outbound-For-Tutorial-XXX' i_authn_mode = if_a4c_cp_service= > service_specific). DATA (lo_http_client) = cl_web_http_client_manager= > create_by_http_destination (i_destination = lo_destination). DATA (lo_request) = lo_http_client- > get_http_request (). DATA (lo_response) = lo_http_client- > execute (i_method = if_web_http_client= > get). Out- > write (lo_response- > get_text ()). CATCH cx_root INTO DATA (lx_exception). Out- > write (lx_exception- > get_text ()). ENDTRY. ENDMETHOD.ENDCLASS.
The value of the parameter i_name in line 18 is the name of the Destination created earlier in SAP Cloud Platform.
I_service_instance_name is the value of the Service instance name created in the created Communication Arrangement additional properties.
Execute the ABAP class and the test results are as follows:
At this point, the study on "how to realize the interconnection between two ABAP systems" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.