Proxy Outbound Interface Example SAP to PI File Receiver

Hi Guys!

It has been a while since my last post and most of my previous blogs are related to ABAP. This time thought of writing an article on PI. This article shows how to send data from SAP though a Proxy interface to PI. In this example, PI convert this data to create a file.

If you need to set up Proxy Connectivity between the SAP back-end system and SAPI/PO for the first time, you can follow the steps in this article linked here.

ECC Proxy —->PI—-> File

I am using PI 7.31 single stack version and ECC 6.0.

In the example I would be sending FI document information from ECC to a file in application server. There are three main steps which needs to be carried out when creating this interface.

First, create PI interface.

  • Create data type of the sender and receiver

  • Create Message types of sender and receiver

  • Create inbound and outbound interfaces

  • Create message mapping and operation mapping

  • Create proxy sender communication channel.

  • Create file receiver communication channel.

  • Create configuration scenario and activate communication channels.

After PI interface is created. Import the interface to ECC through SPROXY transaction.

  • Create proxy class

Finally create the program that fetch the data and call the proxy outbound interface in ECC.

Test Scenario:

Trigger the Program using se38

PI Message Monitor results.

 

 

File created successfully with document data.

If you have any questions on outbound proxy interfaces, leave a comment below. If you are interested, you also check my example on Inbound ABAP Proxy and Fault Messages.

proxy interface, SAP PI, PI proxy interface, SPROXY, Integration, Integration directory, Integration repository, Message monitor, PI 7.3, PI Java, PI Java stack, PI single stack, File adapter, PI XML

18 thoughts on “Proxy Outbound Interface Example SAP to PI File Receiver

      • naga says:

        can u explain in detail what we need to maintain in sender business system in pi and configurations we need to do in ecc and pi level single stack and what roles we need to assign to the pi user.

  1. naga says:

    As we r developing proxy to soap scenario single stack.Connections everything fine, but still we r getting error as user has no permission to access the party service:Business system in ecc and in pi level.What would be the reason for this

  2. naga says:

    can u explain in detail what we need to maintain in sender business system in pi and configurations we need to do in ecc and pi level single stack and what roles we need to assign to the pi user.

  3. cader says:

    Hi
    I’m running the proxy in PI Abap system inself instead of ECC as my program resides there. But I’m getting this error.
    PROXY_NOT_ALLOWED_ON_IS

  4. priyanka says:

    Hi ,
    I’m completely new to proxies . Could you please provide the steps needed for –
    After PI interface is created. Import the interface to ECC through SPROXY transaction.

    Thanks in advance.

    • Isuru Fernando says:

      Hi Priyanka,

      At an high-level, You need to generate the proxy using SPROXY transaction and implement the ABAP code. I will try my best to write a post on Proxy configuration in ECC in the future.

      Cheers!

  5. Tim says:

    i am new to the proxy world.

    I have now been given the task of implementing an existing service interface entry via transaction SPROXY and of intercepting and processing the data that come in via proxy.

    I had implemented this now as a service consumer.

    So for the process:

    the proxy / service is to be called via PI and material numbers are reported in a (internal) table.
    Custom IDocs are then to be generated for these via a custom program (easiest via SUBMIT).
    I now had the procedure of storing the proxy class as a superclass for a custom class and redefining the required method. When testing the proxy, the subclass is not run.

    What do you have to do here so that custom code can be run through?

  6. Rituparna Roy says:

    Hi,
    I am getting this error while triggering payload from sproxy.It is failing in S4 HANA system with below error:
    XIServer
    UNAUTHORIZED
    401
    Unauthorized
    (See attachment HTMLError for details)

    Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)
    M

    I have gone through your post: https://sapintegrationhub.com/pi-po/proxy-pi-po/complete-proxy-configuration-guide-sap-pi-po-ecc/
    Please help what can be done to eliminate this particular error.

    Thanks,
    Rituparna

    • Isuru Fernando says:

      Hi Sandeep,

      Thanks for checking in! Good to hear from you. I was busy with projects the last couple of months but now I am back. I have a few new articles this year already.

      Please send me an email so we can connect offline.

      Cheers!
      Isuru

Leave a Reply

Your email address will not be published. Required fields are marked *