on 06-04-2009 3:50 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No,in that case you will have multiple XML declaration tags within the same XML file which is Invalid XML.
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.