cancel
Showing results for 
Search instead for 
Did you mean: 

Client Proxy : How to Call Outbound Generated Proxy in ABAP report ?

Former Member
0 Kudos

Dear SDNrs.

I have already created a Scenario for Client/ Outbound Proxy in XI .

I have already Generated Client/ Outbound Proxy in ECC .

Now Question is How to call this generated Proxy in report ?

:

:

:

Please Guide ..... I dont have any idea ...

1. before calling any proxy in report what information needs to collect from generated Proxy ?

2. How to call this generated Proxy in report ?

Regards

Prabhat Sharma.

Accepted Solutions (1)

Accepted Solutions (1)

former_member241146
Active Participant
0 Kudos

Hi Prabhat

You have to use your knowledge about ABAP OO for this.

It's simple. You created your Proxy Object throught SPROXY transaction, right? Now, you have to instance your class (information avaliable in SPROXY-> Proxy Objetc -> Class Name) and to use the method displayed there.

Follow an example:

DATA: wa_backfeed TYPE zibrsapglbackfeed_sapgl,

wa_output TYPE zibrsapglrequest,

lo_clientproxy TYPE REF TO zibrco_sapgl_out,

lo_sys_exception TYPE REF TO cx_ai_system_fault.

TRY.

CREATE OBJECT lo_clientproxy.

CALL METHOD lo_clientproxy->sapgl_out

EXPORTING

output = wa_output.

CATCH cx_ai_system_fault INTO lo_sys_exception.

lo_sys_exception->if_message~get_text( ).

ENDTRY.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for all comments , My outbound proxy scenario is Ok . and working fine in ABAP report.

Former Member
0 Kudos

You have to call the below method in your ABAP program in order to send the data to XI via outbound proxy where itab is the internal table which you populated by your select query in the program..

CALL METHOD prxy->execute_asynchronous
EXPORTING
output = itab.
commit work.

CATCH cx_ai_system_fault .
DATA fault TYPE REF TO cx_ai_system_fault .
CREATE OBJECT fault.
WRITE 😕 fault->errortext.
ENDTRY.

Refer these blogs..

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

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

stefan_grube
Active Contributor
0 Kudos

> CATCH cx_ai_system_fault .

> DATA fault TYPE REF TO cx_ai_system_fault .

> CREATE OBJECT fault.

> WRITE 😕 fault->errortext.

> ENDTRY.

This code is wrong.

Use the code of Bruno

Former Member
0 Kudos

May be you are right, but I just copied the code from below blog to give an example.

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

Upate:-

I just saw you comment on this blog for the same reason. So this code itself is wrong in blog example..

But can you please explain what's wrong in this code because I used this code and it works without any issues on ECC6.0. May be I am not aware of any hidden impact of this code.

Edited by: Sarvesh Singh on Sep 21, 2010 12:59 AM

stefan_grube
Active Contributor
0 Kudos

Finally I found the reason for wrong that frequently posp up in SDN forum.

Former Member
0 Kudos

comments removed.