on 03-19-2006 11:36 PM
I have flat file to feed orders to R/3 as ORDERS IDOC, but partner details(cordinality 1-3), and some ohter structure does not come from Source.
How to map this kind of requirements, not just one structure and not one occurance?
Options that i can suggest :-
- map constants to the E1EDKA1 segment and its fields....and if more than one partner needs to be added...then duplicate E1EDKA1 node and map constants
- write user defined fucntion to generate the required queus to be mapped to the KA1 segments and its fields....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since i am converting source flat-file to XML, it does not have all the structure needed by ORDERS IDOC.
I mapped constants to Orders05/e1edk14 (with duplicate this tree), and getting following error when i save it
The source or target structure has been changed or could not be found in the Integration Repository. The mapping definition contains elements or attributes that do not exist in the changed structure. The relevant entries will be deleted
Target structure has no such path: /ORDERS05/IDOC/E1EDK14[1]/@SEGMENT. Skipping mapping
Target structure has no such path: /ORDERS05/IDOC/E1EDK14[1]/QUALF. Skipping mapping
Target structure has no such path: /ORDERS05/IDOC/E1EDK14[1]/ORGID. Skipping mapping
Target structure has no such path: /ORDERS05/IDOC/E1EDK14[2]/@SEGMENT. Skipping mapping
Target structure has no such path: /ORDERS05/IDOC/E1EDK14[2]/QUALF. Skipping mapping
Target structure has no such path: /ORDERS05/IDOC/E1EDK14[2]/ORGID. Skipping mapping
Message was edited by: kumar p
Hi,
>>I mapped constants to Orders05/e1edk14 (with duplicate this tree), and getting following error when i save it
When you have duplicated the tree then the parent node (of the duplicated entity) should be mapped to constant, else when you save the mapping they won't be created (ie they will disappear).
Regards
Suraj
Hi Kumar.
You can use setPreValue(..) method to generate some default fields.
StructureNode node =((StructureNode)container.getParameter("STRUCTURE_NODE"));
node.setPreValue("<fieldOne>Constant"+
"</fieldOnde><second>SecondConstant</second>");
You'll still have unmapped fields in your duplicated structure and mapping tool will not create them. But you'll do that on the parent level with this function.
If you need to add attribute,
node.setNSDeclarations(" someAttr="2"");
You can read more details in this topic:
Best regards
Dmitry
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.