on 09-12-2005 12:40 PM
Hi,
i have the following scenario: R/3(proxy) -> XI -> Webserivce(all interfaces are sync.)
i can see in the monitoring of XI that the webservice returns a value but this value is not passed to the proxy output parameter. The configuration is XI seems to be correct.
This is mijn code(i am not a abap person 😞
The report should display a program name when the user submit a program code.
REPORT Z_HATP_WOS.
PARAMETERS: code type Z_HATP_PROGRAMCODE.
DATA: proxy TYPE REF TO ZES_CO_MI_PROGRAM_INFO_OUT_SY.
DATA: request type ZES_MT_REQ_PROGRAM_INFO.
DATA: inputParams type ZES_DT_REQ_PROGRAM_INFO.
DATA: response type ZES_MT_RES_PROGRAM_INFO.
DATA: outputParams type ZES_DT_RES_PROGRAM_INFO.
inputParams-CODE = code.
request-MT_REQ_PROGRAM_INFO = inputParams.
TRY.
CREATE OBJECT PROXY
EXPORTING
LOGICAL_PORT_NAME =
.
CATCH CX_AI_SYSTEM_FAULT .
ENDTRY.
*TRY.
CALL METHOD PROXY->MI_PROGRAM_INFO_OUT_SY
EXPORTING
INPUT = request
IMPORTING
OUTPUT = response.
.
CATCH CX_AI_SYSTEM_FAULT .
CATCH CX_AI_APPLICATION_FAULT .
*ENDTRY.
outputParams = response-MT_RES_PROGRAM_INFO.
write outputParams-title.
thanks very much,
Peter Ha
Hi Peter,
extend ur programm.
DATA: l_sys_exception TYPE REF TO cx_ai_system_fault.
...
*...proxy call
catch CATCH CX_AI_SYSTEM_FAULT into l_sys_exception.
write: l_sys_exception->errortext.
to see the error.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Peter,
Could you check if you are dealing with your data types (structures) and table types properly. That might create some problems.
Could you please check the value in the variable response, in debug mode, right after the PROXY is executed.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.