Skip to Content
avatar image
Former Member

Ways for SAP PI to interact with SAP ECC

Hi Experts,

We are not able to establish connection between SAP PI and ECC using RFC destination type t. SAP OSS is raised the issue will be fixed by SAP. Meanwhile is there any way in which ECC can interact with SAP PI? I have suggested FTP as an option in case the ECC can place files in a ftp server but thats ruled out by the client. Please suggest a method.

Regards,

Nishant

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 07, 2015 at 09:05 AM

    Hi,

    FTP was only option left but that is not ok in your case then there is no other ways to connect ECC till RFC connection is established. Even for ABAP Proxy you will need to first establish the RFC connection.

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2015 at 07:26 AM

    Hi Nishant,

    Have a look below.

    Calling an External Web Service from an ECC 6.0 system WITHOUT using NetWeaver PI

    Also google how to connect from ECC to PI using Web services etc. There is more than one way.

    Regards,

    Jannus Botha

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07, 2015 at 07:22 AM

    Hi,

    Please look into below thread

    Thanks,

    Sreenivas

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07, 2015 at 08:57 AM

    Hi Nishant,

    From my point of view about the below suggestions, the best way with better performance to connect an ECC with PI is using an ABAP proxy. If you also want to send files you have two options, you can send it like attachment from ABAP or to create a field of type RAWSTRING, I got successful transfer with  String data type as well and base64 encoding. You only need to convert your file data to this field. For example in the sender ABAP proxy:

    "Path and file name
       DATA f_filename TYPE string.
    " File in BASE64
       DATA f_base64 TYPE string.
    "Fichero in Binary in Xstring
       DATA f_fxs TYPE xstring.

    "Load the file in binary


       CONDENSE f_filename NO-GAPS.
       OPEN DATASET f_filename FOR INPUT IN BINARY MODE.


       IF sy-subrc <> 0.
    " Error treatment
       ENDIF.

       CLEAR f_fxs.
       READ DATASET f_filename INTO f_fxs.
       IF sy-subrc = 0.
         CLOSE DATASET f_filename.
       ELSE.
      " Error treatment
       ENDIF.

       "Xstring in binary to BASE64 in string
       CLEAR f_base64.
       CALL FUNCTION 'SSFC_BASE64_ENCODE'
         EXPORTING
           bindata                  = f_fxs
    *     BINLENG                  =
         IMPORTING
           b64data                  = f_base64
         EXCEPTIONS
           ssf_krn_error            = 1
           ssf_krn_noop             = 2
           ssf_krn_nomemory         = 3
           ssf_krn_opinv            = 4
           ssf_krn_input_data_error = 5
           ssf_krn_invalid_par      = 6
           ssf_krn_invalid_parlen   = 7
           OTHERS                   = 8.
       IF sy-subrc <> 0.
    " Error treatment
       ENDIF.


    Hope this helps.


    Regards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Iñaki Vila

      We are using PO 7.4. The RFC destination is type t for the connection. But this connection is not g etting established for some reason and SAP is looking into it.