on 11-20-2008 6:34 AM
hi,
i'm trying to send data from sap to thirdparty.I am using proxys.I've created proxy in sproxy transaction.In that it wont shows Excute_Asyncronus.It shows only if_proxy_client~execute.I've imported this method in program it asks two parametrs methodname from exporting and parmbind_tab from changing.which parametrs i can pass.I'm new to proxys.I'm using ECC6.0.Pls help me.sds
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Define the Proxy in your program :
DATA: g_proxy TYPE REF TO XYZ , * Proxy name generated from sproxy
g_system_fault TYPE REF TO cx_ai_system_fault.
Create an object of the class :
TRY.
CREATE OBJECT g_proxy.
CATCH cx_ai_system_fault INTO g_system_fault .
ENDTRY.
Call the Proxy method passing the output structure :
TRY.
CALL METHOD g_proxy->method name
EXPORTING
output = l_output. *Same as the structure defined in IR
COMMIT WORK.
CATCH cx_ai_system_fault INTO g_system_fault .
ENDTRY.
Thanks
-Alok
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ravi,
To send message using the Client Proxy we use :
synchronous client proxy call
CALL METHOD lo_clientProxy->execute_synchronous
EXPORTING output = ls_request
IMPORTING input = ls_response.
Here above it is we are passing the data for ls_request and gets response in ls_response.
Pass the Fields which are present in the Structure generated by proxy
refer this :
http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm
regards
Ganga
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.