Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

**Proxy creation in sproxy tcode

Hi all,

I am trying to create client(sender)proxy.

1)Created the message interfaces in the scenario,In the sproxy Tcode created the Proxy by right clicking the message interface and after creating the proxy,activated the same.

When I bouble clicked on the class ,I did not see the Excecute Asyncronous method.

The following methods got generated.

IF_PROXY_BASIS_INTERNAL~CREATE_FRAMEWORK

IF_PROXY_BASIS~GET_PROTOCOL

IF_PROXY_BASIS~GET_TRANSPORT_BINDING

IF_PROXY_CLIENT~EXECUTE

CONSTRUCTOR

MI_SAP_TABLE_DATA_OUT(my outbound interface name),in general I use to see Execute_Asyncronous method here in place of this interface.

how to call execute the Execute_Asyncronous method from my zprogram.

Where could be the problem.

Please let me know.

Thanks,

Srinivasa

Former Member
Former Member replied

Hi,

The proxy generation has changed from SP13 (PI 7.0). Now in the new generated class you will see the method as you see MI_SAP_TABLE_DATA_OUT as in your case. If you execute the method MI_SAP_TABLE_DATA_OUT (same as the name of the MI interface name) this will call the interface (sync/ asynch) depending on how you have defined in your message interface. Now if you want to test to make a async defined interface as synch try the code as below

extend the zco* class to a new class from se24.

open the method MI_SAP_TABLE_DATA_OUT

you'll see

ls_parmbind-name = 'OUTPUT'

comment all the four lines in this section.

Try calling the MI_SAP_TABLE_DATA_OUT again, this would execute the interface synchronouly.

You could debug this and find out the reason why this is getting changed.

Regards

Unni

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question