on 06-26-2013 3:43 PM
Dear All,
We are facing problem using One as Many Function.
In this scenario we want to pass value of LineId to LINE_NO.
Here hierarchy is like this :
InvoiceLineDetails (0..Unbounded)
-LineId
-PromotionInfo
-PromotionDetails (0..Unbounded) - ZINVS16
- LINE_NO
since context of LINE_NO is one tag lesser than LineId , so we have used one as many for repeating the tag as Promotion_Details tag
But issue is that..when PromotionDetails tag is not present for some InvoiceLineDetails tag ... LINE_NO is not gettign generated for successor tags.
Attaching the mapping and Queue values screenshot.
Please help.
Thanks !!!
Hello,
I think you should do like this:
1) PromotionDetails -> exists -> createIf - ZINVS16
2) As suggested above, use mapwithdefault just after "PromotionDetails" tag (before useoneasmany) and finally split by value (each value) before Line_No.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked..
Thanks !!!
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 Lisin,
Amit has already suggested mapping for ZINVS16.
However, PromotionDetails should be at context PromotionInfo and not higher which your screenshot shows. See below
I tested with a sample test:
Having said that, there a chance that the node PromotionInfo does not exists, then the above solution will fail and you will have to get PromotionInfo also in play to make it to work.
Do you want to check this possibility and revert back?
Hope it helps!
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use mapwith default function and split by value .
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.