on 01-07-2015 7:05 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can generate webservices in ECC and then can push the data via BAPI but for IDOC there is no direct way to publish the same via webservice as far as I know.
>>>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
Did you install a single stack system?
If so, have a look/ request your basis team to check below note - I saw several single stack installations facing these kind of issues.
1976188 - 748 not found error creating PI
RFC's SAPSLDAPI and LCRSAPRFC
If not can you share RFC connection test details?
>>>We will use webservice only for testing purposes. Once the connection between PI and ECC is established via t RFC we will go for IDoc or RFC communication.'
Are you sure, you really want to configure/develop your interfaces just for the testing purpose and then modify them later? If you deal with IDOC's/RFC then it's not just about changing communication channel but you'll have to change/create ESR objects as well.
I would prefer developing the actual interface (IDOC/RFC/Proxy) and then post the data soap UI to test the ICo.
Use AL11 Tcode in ECC system there you'll get the directories. the thread is saying this only.
ECC place the files in AL11 directory. PI picks the files from ECC AL11 directory.So this is also a way to connect ECC system to get the data.
You can use this method.
ECC(AL11) Directory --->File(NFS)----->PI----> Desired Target.
Regards,
Shaik.
Hi Nishant
You have to create a function module or re-use any standard function module to convert the idoc into idoc xml.
One example is FM IDOCS_OUTPUT_IN_XML_FORMAT
Then you need to create an xml file port using WE21 and use this function module there
Then use this xml file port in partner profile ( WE20 )
If everything is correct, idoc xml file will be saved under the AL11 directory mentioned in the xml file port.
Reference blog
Thanks,
Indrajit
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.