cancel
Showing results for 
Search instead for 
Did you mean: 

proxy problem

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ravi,

Try to re generate the proxy in SAP Ssytem. Is this Synchronus or Asynchronus proxy?

Go throgh the following links for proxy to File scenarios.

Regards

Goli Sridhar

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
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.

Former Member
0 Kudos

acually i'm getting method name is EXECUTE.We i'm calling this method in program it asks two parameters.Which valuse i can pass.Pls help me.

Former Member
0 Kudos

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