cancel
Showing results for 
Search instead for 
Did you mean: 

generate abap client proxy for outbound asynchronous message

Former Member
0 Kudos

I can't find execute_asynchronous method. I don't know why.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member183906
Active Contributor
0 Kudos

Hi,

Since ECC 6.0 version, EXECUTE_ASYNCHRONOUS methos and EXECUTE_SYNCHRONOUS methods are not generated with that names.

Instead, The same name of your message interface is created as a method.

Class name itself is the method name which you need to call in report.

For Client proxies you need to develop the code using SE38.

Regards

Former Member
0 Kudos

I wrote a program to call the proxy. but no message in SXMB_MONI.

I don't know whether my program is right.

REPORT  ZDECALL_CUST_PROXY.


DATA prxy TYPE REF TO ZDEMOCO_CUSTOMER_OUT.
*DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
*
CREATE OBJECT prxy.
*DATA it TYPE  zblogemp_profile_msg.
DATA it TYPE  ZDEMOCUSTOMER1. " here is message type

TRY.
    it-customer-cust_no = 'zp000001'.
    it-customer-sales_org = 'zso0001'.
    it-customer-division = 'zdiv00001'.

    CALL METHOD prxy->CUSTOMER_OUT
      EXPORTING
        OUTPUT = it.
     commit work
    .
  CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE 😕 fault->errortext.
ENDTRY.

Former Member
0 Kudos

Hi

Correct code will be

REPORT  ZDECALL_CUST_PROXY.
 
 
DATA prxy TYPE REF TO ZDEMOCO_CUSTOMER_OUT.
*DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
*
CREATE OBJECT prxy.
*DATA it TYPE  zblogemp_profile_msg.
DATA it TYPE  ZDEMOCUSTOMER1. " here is message type
 
TRY.
    it-customer-cust_no = 'zp000001'.
    it-customer-sales_org = 'zso0001'.
    it-customer-division = 'zdiv00001'.
 
    CALL METHOD prxy->execute_asynchronous
      EXPORTING
        OUTPUT = it.
     commit work
    .
  CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE 😕 fault->errortext.
ENDTRY.

This should work. Check with the class you created for proxy

ZDEMOCO_CUSTOMER_OUT.

should have 4 methods. Else recreate the class.

GET_PROTOCOL

GET_TRANSPORT_BINDING

CONSTRUCTOR

EXECUTE_ASYNCHRONOUS

Thanks

Gaurav

Former Member
0 Kudos

sorry, it is new version. the generated proxy has no method EXECUTE_ASYNCHRONOUS.

Former Member
0 Kudos

Hi

I have provided the solution to you based on

ECC 6.0 SP 11 EHS 1

Basis 7.0

Thanks

Gaurav

Former Member
0 Kudos

I believe ViJaYaNt JhA is right.

patch level is sap_basis, PI_basis sp14.

Thank you.

Former Member
0 Kudos

refer this.

Client Proxy -

Please chekc this PDF :

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d49...

u need to write an report and in that report u need to call that method.

chirag