Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Calling a proxy from ABAP report

Former Member
0 Likes
406

Hi All,

Can any one gimme some idea about calling a XI proxy from ABAP Report.

I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.

Thanks in advance.

Tnx,

Joe.

Hi All,

Can any one gimme some idea about calling a XI proxy from ABAP Report.

I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.

Thanks in advance.

Tnx,

Joe.

1 REPLY 1
Read only

Former Member
0 Likes
343

{

REPORT Z_TEST_111.

*PARAMETER: p_isbn(100) TYPE c OBLIGATORY.

DATA:

  • Reference variables for proxy and exception class

lo_clientproxy TYPE REF TO ZES_CO_ZWS_MATNR,

lo_sys_exception TYPE REF TO cx_ai_system_fault,

  • Structures to set and get message content

ls_request TYPE ZES_ZTEST_WS,

ls_response TYPE ZES_ZTEST_WS_RESPONSE.

****Set the input parameter ISBN into the Request of the SOAP Object

ls_request-matnr = '100'.

****Create the Proxy and Clall it.

CREATE OBJECT lo_clientproxy

EXPORTING

LOGICAL_PORT_NAME = 'ZWS_TEST'.

TRY.

CALL METHOD lo_clientproxy->ZTEST_WS

EXPORTING

input = ls_request

IMPORTING

output = ls_response.

CATCH cx_ai_system_fault INTO lo_sys_exception.

  • Error handling

ENDTRY.

COMMIT WORK.

}