on 10-15-2008 9:53 AM
I can't find execute_asynchronous method. I don't know why.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
refer this.
Client Proxy -
Please chekc this PDF :
u need to write an report and in that report u need to call that method.
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.