on 09-04-2008 8:57 AM
Dear All,
i have problem in ABAP Proxy .
This is my program logic to send out the data from ECC to XI :
TRY.
autopay-mt_autopay-amount = lt_trans-dmbtr.
autopay-mt_autopay-bank_code = lt_trans-bankc.
autopay-mt_autopay-currency = lt_trans-waers.
autopay-mt_autopay-description = lt_trans-vendor.
autopay-mt_autopay-pass_key = lt_trans-pass_key.
autopay-mt_autopay-pertamina_account = lt_trans-ubknt.
autopay-mt_autopay-ref_id = lt_trans-refid.
autopay-mt_autopay-swift_code = lt_trans-zswif.
autopay-mt_autopay-trx_date = lt_trans-zdate.
autopay-mt_autopay-vendor_account = lt_trans-zbnkn.
CREATE OBJECT i_proxy_obj.
CALL METHOD i_proxy_obj->mi_os_autopay
EXPORTING
output = autopay
IMPORTING
input = autopay_resp.
COMMIT WORK.
CATCH cx_ai_system_fault.
CREATE OBJECT i_fault.
i_text = i_fault->get_text( ).
ENDTRY.
This program can send out the data to XI system, but when i running the program, occur exception 'An exception (cx_ai_system_fault) occurred' after call method processing. and structure autopay_resp still empty.
do you have idea about this problem?
Thanks,
Tony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you please change the code in the following way.
try.
CREATE OBJECT i_proxy_obj.
call method i_proxy_obj->EXECUTE_SYNCHRONOUS
EXPORTING
output = autopay
IMPORTING
input = autopay_resp.
COMMIT WORK.
Catch the Exception if Proxy Method Failure
catch CX_AI_SYSTEM_FAULT .
data FAULT type ref to CX_AI_SYSTEM_FAULT.
create object i_fault.
write 😕 i_fault->ERRORTEXT.
endtry.
warm regards
mahesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paulus,
Did yoy type
DATA i_proxy_obj TYPE REF TO Your proxy class.
DATA autopay TYPE your proxy message type
Furtheremore,
What is mi_os_autopay?
Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paulus,
I don´t know if there is any change regarding to proxy methods in the current versions of sproxy, but before versions you must execute something like:
CALL METHOD proxy->execute_asynchronous if your scenario is asynchronous
CALL METHOD proxy->execute_synchronous if your scenario is synchronous.
These methods are generate by default when you create the proxy.
Regards,
Carlos
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.