Professional Documents
Culture Documents
ABAP Proxy is one of the most remarkable forms of communication between SAP
application system and SAP PI. The proxy provides both asynchronous and
synchronous mode of communication. In order to utilize Proxy, the application
system should have WAS > 6.20. Proxies are used to connect the application
system to the PI system. The role of the Business system at the application side is
LOC Application system and that at the PI side is HUB Integration server.
These names apply, regardless of whether the interfaces are inbound or outbound
message interfaces. A proxy class also contains methods for implementing
protocols as well as enabling message exchange.
Parameters and Data Types
The following can be established for both outbound and inbound message
interfaces:
The output message type becomes a parameter with the name OUTPUT. The
input message type becomes a parameter with the name INPUT. OUTPUT refers
to an outbound message, INPUT to an inbound message. Both parameters are
structures of the respective message type with a field for the data component of
the message.
The data component of the message is communicated by using the message
type name. For example, if the message type is Report and it references the data
type InvoiceData, then a structure Report of type InvoiceData is generated.
Proxy generation saves a reusable data type in the ABAP Dictionary for global XSD
data types, for example, data elements or structures. It generates fields of a
structure for local elements or attributes. The reuse of data types in the Integration
Repository is reflected in the data types created in the system.
Integration
You cannot change ABAP proxy objects manually in the SAP system. You can only
change an ABAP proxy object by using the ABAP proxy generation function. ABAP
proxy objects only map data structures defined in the Integration Repository.
Therefore, they are not supported and must not be used on the interface.
Message Interfaces with RFC or IDoc Messages
You can generate ABAP proxies for message interfaces that
reference RFC or IDoc messages. The generated proxy objects (for example,
classes and generated structures) use the name of the message interface that
references the message as the prefix in the technical name. The proxy objects
belonging to the RFC or IDoc message belong to the superordinate message
interface and are not reused by the proxy generation function. RFC exceptions are
grouped in an exception class.
1 Connections com.sap.aii.connect.repository.name
2 Connections com.sap.aii.connect.repository.httpport
3 Connections com.sap.aii.connect.repository.contextRoot
4 Connections com.sap.aii.connect.integrationbuilder.startpage.url
The Object Navigator displays proxy objects created in the system in the
navigation tree under Enterprise Services ® Web Service Library (client proxies,
server proxies, and proxy Dictionary-objects). When you create new proxy
objects, the hierarchy of software component versions from the Integration
Repository is displayed in a dialog box.
You can display the interface objects from the Integration Repository by using the
navigation tree in transaction SPROXY. If no connection to the Integration
Repository exists, the tree presents an overview of those interface objects for
which a proxy object already exists in the system.
Message Type:
Message Mapping:
Interface Mapping:
Configuration time:
Sender Agreement
Interface Determination:
Steps need to Create Inbound and Output
Proxy in SAP ABAP using SPROXY
Creating of Client Proxies
Go to the SAP system, sproxy transaction and select the Outbound interface for
which the Client proxy needs to be generated. ( FlightData_OUT_MI in
urn:PROXY2PROXY in SIVA_SCSLCOMP this case)
Select the package in which the Objects need to be created. Prefix Z, else the
Objects generated will be SAP Objects that require access key
Interface
Message Type
Data Type
Click on ABAP Class to see its methods and parameters
* Error handling
ENDTRY.
REPORT ZPROXY_FLIGHT_DATA.
It_request-FLIGHT_DATA_MT-CARRID = 'AA'.
It_request-FLIGHT_DATA_MT-CONNID = '0017'.
It_request-FLIGHT_DATA_MT-FLDATE = '20040404'.
TRY.
COMMIT WORK.
WRITE :/ fault->errortext.
ENDTRY.
Starting with a cross-system integration process, you can then derive the
corresponding interfaces required. SAP Exchange Infrastructure supports this
process by using an integration
scenario to describe the collaborative process. The integration scenario
summarizes the interfaces required for this collaborative process.
You can use SAP interfaces that already exist in systems, non-SAP interfaces that
are connected to SAP Exchange Infrastructure using adapters, or define new
interfaces called message interfaces in the Integration Repository. Both worlds can
also be interconnected in a collaborative process.
Like this:
Loading...
Continue Reading
PreviousWorking with Internal Tables in SAP ABAP
NextWeb Dynpro In a Nutshell
More Stories
ABAP
ABAP
ABAP
Reply
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Post Comment