Skip to Content
avatar image
Former Member

Abap proxy problem

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 08:33 AM

    Vheck weather all the proxy setting done in ECC.

    check the blog

    How do you activate ABAP Proxies?

    Regards,

    Jayasimha jangam

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 08:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • avatar image
    Former Member
    Sep 04, 2008 at 09:41 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded