1. SM59创建Destination (可选步骤)
2. SE80创建Proxy对象
3. LPCONFIG创建Logical Port
4. 写程序调用Proxy
REPORT ztest.
DATA: proxy TYPE REF TO z00co_zairport_id_wsd2,
in TYPE z00my_operation_name,
out TYPE z00my_operation_name_response.
in-depa-city = ’frankfurt’.
in-depa-country = ’de’.
TRY.
CREATE OBJECT proxy
EXPORTING logical_port_name = ’LP00’.
CATCH cx_ai_system_fault.
ENDTRY.
TRY.
CALL METHOD proxy->my_operation_name
EXPORTING input = in
IMPORTING output = out.
CATCH cx_ai_system_fault.
CATCH cx_ai_application_fault.
ENDTRY.
查看PI服务接口:
Tcode: SPROXY / LPCONFIG