cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy doesn't contain return value

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Udo,

i change the code following your instructions, it does not displayed any error.

Answers (1)

Answers (1)

Former Member
0 Kudos

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