Skip to Content
avatar image
Former Member

How to Fetch data into Proxy

Hello Friends,

In client proxy ,We have to fetch data from R/3 By executing the report in the Integration server.

But How the data is fetched from R/3 to XI ..By simply execting the Report.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Nov 14, 2007 at 03:22 AM

    hi

    could you explain the problem statement in deatil

    regards

    Sheetal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2007 at 03:35 AM

    hi

    ref this

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

    http://help.sap.com/saphelp_nw04/helpdata/en/c9/74246d8ad2447799063d39013e9a11/frameset.htm

    /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2007 at 03:48 AM

    Hi

    >>How the data is fetched from R/3 to XI

    If u execute the ABAP report in R/3 system the message is send to the XI server.

    Regards

    Yugapreetha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2007 at 06:46 AM

    Hi Satya,

    The report is written in the application system (R/3).When you execute the report in SE38, it automatically triggers the proxy.

    once u execute the report ..the method execute_asynchronous ( in case of asynchronous scenario) will be called ..and the required data will be sent to XI.

    Before going for Proxy scenarios you need to perform basic steps in application server(R3)...

    Also, you need to set up a HTTP connection with XI and thus we are able to see IR objects for Proxy generation..

    The following blogs will help you:

    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

    Client Proxy:

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

    Activation of ABAP Proxies:

    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

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

    Communication between SAP System & Webservice Using Proxies

    /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies

    I have worked on Proxies, so if you have any question, please feel free to ask.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2007 at 06:51 AM

    -->But How the data is fetched from R/3 to XI ..By simply execting the Report.

    Data fetching logic will be in the report program( it is you need to code...) which will use the generated proxy for sending the data to XI...

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      In order to fetch the data from R/3 to integration server you have to write an ABAP code.

      In the code fetch the data from the data base as per your selection criterion and store it in aninternal table ( or variable )

      Now assuming that you are using asynchronous mode now call your ABAP proxy

      as below.

      TRY.

      CALL METHOD PRXY->EXECUTE_ASYNCHRONOUS

      EXPORTING

      OUTPUT = IT.

      COMMIT WORK.

      CATCH CX_AI_SYSTEM_FAULT .

      DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .

      CREATE OBJECT FAULT.

      WRITE :/ FAULT->ERRORTEXT.

      ENDTRY.

      Here IT is the int. table whith your data ( note that IT must be compatible with the message type )

      On executing the report the data is submitted to the proxy.

      Hope this helps.

      Regards,

      Sandeep

  • avatar image
    Former Member
    Nov 14, 2007 at 07:07 AM

    in ur report u will accept values , these values you can provide to proxy by

    declaring variable ref to proxy class(you can find it out from SPROXY) as

    cproxy type ref to <i>proxy_class</i>,

    CREATE OBJECT cproxy.

    CALL METHOD cproxy->EXECUTE_SYNCHRONOUS

    provide here paramete itab that will hold your values

    Add comment
    10|10000 characters needed characters exceeded