cancel
Showing results for 
Search instead for 
Did you mean: 

append for xml

Former Member
0 Kudos

Dear Experts,

Is it possible to use append mode for xml files. Each time an idoc comes it should get appended to the xml .

Thanks,

Aju

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

We had a similar requirement & we had to do it as a 2 step process.

Out requirement was : Sending System-> IDOC; Receiving System-> XML message (not an IDOC) but this XML will contain multiple records, one record for an IDOC.

2 Adapter modules are required.. 1 adapter module(in receiver comm channel) to strip all the XML tags when the data is being appended to a temporary file.

When you know this final file has to be transferred to target system, we pick this temporary file (& using another adapter module in Sender comm channel create XML root tags) & create the required output file..

If your requirement is to append IDOC-XML's, collecting them at source is the best solution.

- Siva Maranani

Former Member
0 Kudos

You can use BPM to merge them.

Saying you pick up the target xml file, get the new xml file and merge them to new target.

Regards.

Liang

Former Member
0 Kudos

No,in that case you will have multiple XML declaration tags within the same XML file which is Invalid XML.

Thanks

Aamir

Former Member
0 Kudos

Hi Amir,

The scenaro is this. Idoc comes from sap at regular intervals. It has to be collected into one fixed length file. But in the reciever append is not allowed. So what are the options ?

Thanks,

Aju

Former Member
0 Kudos

Hey

You have 2 options

First is to use BPM:

You can collect all the IDOC's in BPM and after a certain time period send them all to the receiver system.

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

Second is to collect IDOC's in SAP itself:

IDOC's will be collected on the file system in SAP itself and will be send as a batch(XML file) to PI.This is a much better approach in your case.

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm

Thanks

Aamir

udo_martens
Active Contributor
0 Kudos

Hi Amir,

you could append in a temporary file, which you transfer frequently to target folder in other process. Easy development but may be not the most elegant solution.

As alternative create a business process, where merge the messages and send them finally to the target folder. This would be the standard, but a little bit more complex to develope and with less performance.

Regards,

Udo

Former Member
0 Kudos

Hey Udo

>>you could append in a temporary file, which you transfer frequently to target folder in other process

But at the end of the day,it will be an XML file with multiple XML declaration tags,wont that be syntactically wrong as per XML standards?

Thanks

Aamir