Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 20, 2010 at 06:50 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2010 at 06:47 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 07:21 PM

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

    Add comment
    10|10000 characters needed characters exceeded