cancel
Showing results for 
Search instead for 
Did you mean: 

Sending IDOC/XML to provider without XI possible ?

gerd_hotz
Contributor
0 Kudos

Hello,

I've the requirement to send an delivery IDOC/XML-file

via FTP or mail to a parcel service provider in order to trigger the

pickup.

At the moment we do this via XI server and ist working fine,

but we want to shut down this server and do it direct.

I've created a programm in order  to download an IDOC to XML in ERP, this works.

Now my question:

Is this XML-File the same as when I transfer it through XI ?

Has anybody done something like this ?

Thanks

G

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hello,

You need not write a single line of code to create a IDOC XML File in ERP.

This is available out of the box.

In your ERP system, in WE21 create a port of Type XML File.This will ask you for the directory and the filename FM as below.

In your Partner profile, change the port to be this XML File port.That's it, now your IDoc will be a IDoc XML and this will be same as the one sent to PI. No additional coding required.

Regards

Bhavesh

former_member190293
Active Contributor
0 Kudos

Hi Bhavesh!

Exactly!

Regards, Evgeniy.

iaki_vila
Active Contributor
0 Kudos

Hi Gerd,


Is this XML-File the same as when I transfer it through XI ?

How do we can know if the XML is the same if we don't know any example or the program?. However, if you can do an XML you have in ABAP classes to work with XML and to have the XML that you want. You can check the XML easily if you have your XI available.


Has anybody done something like this ?

SAP ERP has connectivity without XI/PÎ/PO. You can consume/expose WSDLs, you can do FTP calls, even you can do RFC's connections with No SAP systems if the endpoint has the RFC libraries.

The main purpose of PI is to centralize the interfaces, not expose the ERP to internet, to offer monitoring tools, etc but i have been in a lot of projects without PI doing the integration directly with the ERP.

Regards.

gerd_hotz
Contributor
0 Kudos

Hello Inaki,

thanks for fast replay !

I use class  cl_idoc_xml1 to get XML from idoc,

and then I download it to XML file.

I checked the downloaded XML and the XI-XML structure,

and what I can see is that the downloaded XML structure

contains more data then XI-XML structure.

If I understand u right, the XI-server is only doing centralizing /monitoring and

do the connection to other systems.

If the data in the downloaded XML is the same as in the XI-XML

I would not need an XI anymore ?

BR

iaki_vila
Active Contributor
0 Kudos

Hi Gerd,


I would not need an XI anymore ?

If you only have one integration scenario or a few ones, my answer is yes.

If you have n scenarios in XI, my answer would be to recommend to use XI.

In ERP you can integrate via (with a few restrictions in comparison with XI/PI):

- RFC

- File if you have a NFS mounted.

- FTP.

- HTTP.

- SOAP.

- REST

- Mail.

- IDOC.

If the third system support any of below techonologies and you want to connect directly your ERP, you will not have issues. However if the third system is not in your DMZ, the direct connection will be a potential risk.

Regards.