cancel
Showing results for 
Search instead for 
Did you mean: 

Client Proxy - asynchronous

Former Member
0 Kudos

HI Guys,

While doing ABAP report as a client proxy.

CALL METHOD PRXY->EXECUTE_ASYNCHRONOUS

EXPORTING

OUTPUT = FS_EMPLOYEE_MT.

COMMIT WORK

I am getting following error message. I have done XI data structures and activated in SPROXY in ECC. Please reply back ...AM i need to activate any more things on this error.

Error >>>>>>>>>>>>>>>

Method u201CEXECUTED_ASYNCHRONOUSu201D is unknown or PROTECTED or PRIVATE.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,


data: client type ref to [Generated client proxy class] .
data: output type [output Message type].

output-mt_dept_id-dep_id = 'SAP MM'.(here u assaign the value )( this is just an example)

try.
    create object client.
  catch cx_ai_system_fault .
endtry.

try.
    call method client->execute_asynchronous
      exporting
        output = output
      
  catch cx_ai_system_fault .
  catch cx_ai_application_fault .
endtry.

Former Member
0 Kudos

Hi once again,

while reading the last reply from Kubra fatima I noticed one error I made in my reply:

when calling a Static method you must use a double arrow so that the call looks this way:

CALL METHOD <name of your gemerated proxy-class>=>EXECUTE_ASYNCHRONOUS

And one remark to the reply from Kubra fatima: I cannot imagine that this will work because the methods EXECUTE_ASYNCHRONOUS and EXECUTE_SYNCHRONOUS for generated proxy classes are always Static Methods - that means Class Methods - that cannot be called for an instance / an object.

Have a nice day,

Dagmar

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Guys,

Now i am working on ECC6.0 & XI 7.0. SP = 16 using

so i have done like this ...

create object prxy.

try.

CALL METHOD prxy->MI_WB_PRXY_SEND ( instead of asynchronous???????????)

exporting

output = xi_data

catch cx_ai_system_fault.

endtry.

Data is coming while debugging also.and executed. While checking in SXMB_MONI, no messages found in either ECC & XI . So May i know what could be the reason fore that.Thanks ....

waiting for your reply.

Former Member
0 Kudos

Hi,

I think that the error results from your creating an object with

create object prxy.

and then trying to call method EXECUTE_ASYNCHRONOUS or another method that does'nt exist.

When using ABAP-Proxies in an ABAP-report you must use the method EXECUTE_ASYNCHRONOUS (and of course EXECUTE_SYNCHRONOUS too) with the Classname because it is a Static method.

So you must write:

try.

CALL METHOD <name ofyour gemerated proxy-class>->EXECUTE_ASYNCHRONOUS

exporting

output = xi_data

catch cx_ai_system_fault.

endtry.

Hope that I understood your problem right and could help you!

Regards,

Dagmar

JoelTrinidade
Active Contributor
0 Kudos

Hi Vasudeva,

This is a simple problem get someone in your team to debug the abap code there is a error. Create the class instance and call the method after definition.

Regards

joel

Former Member
0 Kudos

Activate all Proxy objects generated in SPROXY Transaction for this interface.

Shabarish_Nair
Active Contributor
0 Kudos

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

check if you have followed the correct way to create the proxy.

A proxy should be created and activated. Only then you will get the method for it.