Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Idoc in XML format without adapter

Former Member
0 Likes
1,228

Hi,

I have to develop indound and outbound interfaces using idoc with XML format to external system without adapter.

First problem: the scenario for outbound is: creation of idocs using XML port so files will send to an external repository, but after the creation i have also to send an empty file: how can i do to create the second empty file immediately after the first one and only if the sending of first one is ok?

Second problem: the scenario for inbound is: i have to get XML files from the external repository so in SAP an idoc is created: how can i do that?

Thanks lot.

Matteo Vernile.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
923

Hello Matteo

I do not really understand your first question therefore I do not address it.

For your second problem SAP (at least on ECC 6.0) provides useful function modules (in function group EDIN, IDoc: Inbound processing 😞

- IDOC_XML_FROM_FILE (requires the XML-IDoc file to be located on the application server)

- IDOC_INBOUND_XML_SOAP_HTTP

- IDOC_INBOUND_XML_VIA_HTTP

If you are using these function module take care about the correct data in the control segment.

Regards

Uwe

Hi,

I have to develop indound and outbound interfaces using idoc with XML format to external system without adapter.

First problem: the scenario for outbound is: creation of idocs using XML port so files will send to an external repository, but after the creation i have also to send an empty file: how can i do to create the second empty file immediately after the first one and only if the sending of first one is ok?

Second problem: the scenario for inbound is: i have to get XML files from the external repository so in SAP an idoc is created: how can i do that?

Thanks lot.

Matteo Vernile.

6 REPLIES 6
Read only

uwe_schieferstein
Active Contributor
0 Likes
924

Hello Matteo

I do not really understand your first question therefore I do not address it.

For your second problem SAP (at least on ECC 6.0) provides useful function modules (in function group EDIN, IDoc: Inbound processing 😞

- IDOC_XML_FROM_FILE (requires the XML-IDoc file to be located on the application server)

- IDOC_INBOUND_XML_SOAP_HTTP

- IDOC_INBOUND_XML_VIA_HTTP

If you are using these function module take care about the correct data in the control segment.

Regards

Uwe

Read only

0 Likes
923

Hi Friends,

could you please guide me

how to create the XML file PORT

I to Send the IDOC in the XML format

Thanks in Advance

Ganesh

Read only

Former Member
0 Likes
923

Thanks Uwe,

My first question is: how can i send a second empty file immediately after the creation of the file created by idoc?

Others further answers:

1) Very important: the creation of XSD file (schema) is available in automatic with XML port type?

2) Always with XML port type the sending and receiving of files is automatic? Haven't i to call FTP?

Thanks lot,

Matteo Vernile

Read only

0 Likes
923

Hi Matteo,

When u create a idoc with the XML port along with that if first file is successful then create a second empty file.

2) Always with XML port type the sending and receiving of files is automatic? Haven't i to call FTP?

I dont think Sending and recieving is automatic.. you need push from the app server.

Thanks,

Chandra.

Read only

Former Member
0 Likes
923

Hi,

I dont think Sending and recieving is automatic.. you need push from the app server.

So i have to call FTP to get or set files between sap application server and the external repository?

As this way this scenario would be so:

outbound:

1)creation of idoc with XML port and automatic creation of XML file in sap application server

2) a custom program read application server and send file via FTP to external repository

inbound:

1) a custom program get file via FTP from external repository and save in application server

1)then calling IDOC_XML_FROM_FILE idoc will be processed

Is there another better solution?

Thanks,

Matteo

Read only

Former Member
0 Likes
923

Hi Friends,

could you please guide me

how to create the XML file PORT

I to Send the IDOC in the XML format

Thanks in Advance

Ganesh