cancel
Showing results for 
Search instead for 
Did you mean: 

Outbound Proxy Problem

former_member201987
Participant
0 Kudos

Hello Experts,

We are sending Customer data via Proxy from ECC system. Below is the code snippet that we are using. The data is fetched successfully and can be viewed while exporting. But then the in CATCH statement an error is encountered. We are unable to solve this. The error is as ""

TRY.

FS_CUST_CONVERT_MT-MT_OB_CUSTOMER_CONVERSION-Customer_Details = T_CUST_CONVERT.

CALL METHOD PRXY->SI_OB_CUSTOMER_CONVERSION

EXPORTING

OUTPUT = FS_CUST_CONVERT_MT.

COMMIT WORK.

CATCH CX_AI_SYSTEM_FAULT .

DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .

CREATE OBJECT FAULT.

WRITE 😕 FAULT->ERRORTEXT.

ENDTRY.

ENDIF.

Please Help!

Thanks in Advance,

~ Suraj

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

> DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .

> CREATE OBJECT FAULT.

> CATCH CX_AI_SYSTEM_FAULT into FAULT.

> WRITE 😕 FAULT->ERRORTEXT.

> ENDTRY.

Too difficult?

former_member201987
Participant
0 Kudos

Hello Stefan,

Thanks for your help!

That indeed solve my problem. But now I am getting the below error.

"An error occurred when determining the business system (SLD_API_EXCEPTION)"

Can you please help regarding this?

Thanks!

~ Suraj

henrique_pinto
Active Contributor
0 Kudos

SLDCHECK finishes ok?

If not, you probably need to go thru SLD configuration steps (RFC Destinations SAPSLDAPI & LCRSAPRFC, tx RZ70).

BR,

Henrique.

former_member201987
Participant
0 Kudos

Hello Henrique,

Thanks for the input!

The SLDCHECK is not working. I have informed the basis guys. As soon as it is resolved I test the proxy

Thanks,

~ Suraj

Answers (2)

Answers (2)

henrique_pinto
Active Contributor
0 Kudos

Hi Suraj,

usually I see that type of error when the message structure which is being filled (in your case, FS_CUST_CONVERT_MT) is not filled according to the XSD/message type definition.

Could you let us know a little bit more about the message type you're using for this interface and how you're filling these fields?

BR,

Henrique.

stefan_grube
Active Contributor
0 Kudos

> CATCH CX_AI_SYSTEM_FAULT .

> DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .

> CREATE OBJECT FAULT.

> WRITE 😕 FAULT->ERRORTEXT.

I have seen this peace of code a lot here in forum.

Where did you find it?

Please tell whoever spread this code that it is wrong.

former_member201987
Participant
0 Kudos

Hello Stefan,

I took this code from an existing Proxy. I am not aware it is wrong or who spread it.

Can you please help solve our problem and let us know what would be the correct code ?

Thanks

~ Suraj