cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello experts,

I am a ABAP developer and I am developing a program to send XML strings to a legacy system using an ABAP PROXY but I have run into a roadblock as follows:

My PI colleagues who know PI but not ABAP have created a ABAP PROXY data type with the structure that I need to be populated from my program but cannot tell me how to get the data into this structure. They have directed me to SERVICE INTERFACES where there is a class and method EXECUTE_ASYNCHRONOUS but this is where we all have a road block. I am not sure whether I have to just use this class and method in my program to populate the data type proxy previously created or whether a completely new proxy has to be created under service interfaces.

Any help would be appreciated.

regards

0 Likes
View Entire Topic
former_member852447
Active Participant
0 Likes

Thank you satish and others, this is beginning to come together. Apparently I do not need to create a service interface proxy as SAP delivers one. I have the following methods. This standard interface also contains the user defined structure that I need to populate

IF_PROXY_BASIS_INTERNAL~CREATE_FRAMEWORK

IF_PROXY_BASIS~GET_PROTOCOL

IF_PROXY_BASIS~GET_TRANSPORT_BINDING

IF_PROXY_CLIENT~EXECUTE

CONSTRUCTOR

EXECUTE_ASYNCHRONOUS

From reading previous correspondence I believe that I need to call EXECUTE_ASYNCHRONOUS in my ABAP program. When I call the above method how do I ensure that the user defined structure in the method is populated.

regards

Former Member
0 Likes

Hi David,

Once you activate the proxy, the Data structure from the PI will move into the R3 and will automatically get linked to your data structure, if you have used move-corresponding.

In case the field names are different in PI and your proxy definition, then you will have to manually map the fields in R3.

Once you activate the proxy, you can see the DT under the ExternalView tab.

Regards,

Neetesh

Former Member
0 Likes

Hi David,

You debug from your end when you execute the report. If you think the data is populated and if you want to confirm then in sap go to the transaction sxmb_moni and then click on monitor for processed xml messages --> then press F8 --> then you should see a messages --> double click on the last message --> then on the left side click on inbound message --> Payloads --> double click on Main Document --> then in the right bottom screen you can see the payload what you are sending from your proxy. The same payload is going as input to PI. Then you work is done and the same can be seen in PI also. From here your PI developers should take care.

You can do this only when you have permissions for transaction sxmb_moni. If you dont have then you can ask the PI developers to do the same steps in PI and confirm you.

Regards,

---Satish