on 06-22-2012 1:52 PM
Hi Friends,
My issue is as below and i would first like to know if we can mange this in Graphical mapping.
Strucutre is :
<PartBalance>-----1:unbounded.
<StoredBalance>
<Quantity/>
<Account>
<AccountId> 0:Unbounded
<Id/>
</AccountId>
<Quantity/>
<Lot>
<LotId>
<Id/>
<SupplierId/>
</LotId>
<Quantity/>
</Lot>
</StoredBalance>
</PartBalance>
One idoc per partbalance and partbalance can be mulitiple in Source.
My condition is if Partbalance----->Account---->AccountID----->ID exists and if it is of any values of A,B,C,D then i need to create an IDOC for this part balance,else the need to ignore that part balance.
Could some one help me if we can do this in Graphical mapping as i tried a lot and been unsuccessful.Do we need UDF for this ???
You should use multimapping here, working with the cardinality of messages in the message mapping. Configure the target as 1...unbounded. Then, secondly, on the root node of that target message map your ID field and give it a "CreateIf" only in case of the desired values. If you consider these two things and work out the details, it should be fine. You should only think about the case that no message is created at all. Probably your mapping would throw an exception then.
Regards,
Jörg
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.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.