on 08-18-2008 2:27 AM
Hi Gurus,
I've got a scenario whereby i will need to send payment documents via idocs to XI and XI will output them into an XML file.
At the moment, when i perform a payment run for multiple vendors and send the idocs out, i realised that multiple idocs are being sent out and XI will output multiple XML docs.
Is there any way i can merged these idocs into a single XML document? The idocs are all from the same system.
Thanks in advance.
HI,
I think this is possible using PACKAGING.
Check this note 814393 on Service Market Place.
You want to create or process an XI message with multiple instances of an IDoc (of the same IDoc or extension type) in the mapping.
Please refer below link to follow the steps to Merge IDOCs under single XML,
SAP Network Blog: Collecting IDocs without using BPM
IDoc packaging
Reason and Prerequisites
The relevant IDoc is imported into the Integration Repository.
Solution
1) Log on to the Integration Repository.
2) Open the relevant IDoc in the object editor.
3) Select the "Export XSD" menu option in the "Tools" menu.
4) In the subsequent dialog box, assign a file name and save the data to the hard disk of your local PC.
5) Open the file that you have saved in step 4 in an adequate editor (for example, Notepad) for editing.
6) Locate the first entry: <xsd:element name="IDOC" type="<
Idocname>"> and add the following expression, maxOccurs="unbounded", between the value of the type attribute and the closing angular bracket.
Example:
<xsd:element name="IDOC" type="ADR2MAS.ADR2MAS02"
maxOccurs="unbounded">
7) Save the modified file to the hard disk of your local PC.
😎 In the message mapping, use the file saved in step 7 instead of the imported IDoc by using the "Import XML or XSD" function in the mapping tool to select the source or target messages.
Thnaks
swarup
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.
Hi,
I'm now lookin at the BPM scenario.
I'm encountering an error at the Transformation Block. I put the CollectNOM1List as the Source Mesaage and when i try to activate, its giving me the following error
"Expression must not return a multiline value"
Not too sure why.
Any help will be much appreciated.
As you are collecting IDocs, you should use container of type Multiline to collect IDocs,
This multiline container will be source message in your transformation step.
Another important thingp is check your interface mapping, there your interfaces for IDocs (source) should have occurrence 0..unbounded
Hi,
I think the problem is with the interface mapping. I tried to set the source and target to unbounded but im hitting an activation error. The message mapping that im using is for Imported IDOC -> Imported External Definition (XSD File) and the occurences are all 1 and im unable to change them. Any way to go ard this problem?
thanks.
You have to set source occurrence only to 0..unbounded... target occurrence would be 1.
This you need to do in message mapping as well. Open message mapping, go to Messages tab, there you can change occurrence of source message to 0..unbounded
complete the mapping accordingly.. then in interface mapping you will be able to set occurrence of source interfaces
Hi,
A multiline container element is a table comprising elements of the same type. For example, if you want to gather messages in a container element, you must define this element as a multiline container element.
you can be able to Accessing details from multiline object attribute..
You need to mark the checkbox multiline if the sender data will be comming to container with multiple records and have to imply the logic or to consider each records in container, you need to mark it as Multiline.
In the container create a containerElement that refers to an abstrakt interface.
Also check the checkbox "multiline"
Refer some of the links for useage of Multiline
Regards,
Nutan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.