2009 Sep 01 5:43 AM
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.
2009 Sep 01 11:19 AM
{
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.
}
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |