on 08-13-2010 4:59 AM
Hi Guys,
Still I have got this please can one solve this following issue?
Source Structure
ROOT
OUTPUT 0..unbounded
Group_N1 0..unbounded
H02_N1 0..1
N101 xsd:string 0..1
H02_N1 0..1
N401 xsd:string 0..1
H02_DTM 0..1
DTM01 xsd:string 0..1
Group_LIN 0..unbounded
D01_LIN 0..unbounded
LIN02 xsd:string 0..1
D01_PO4 0..unbounded
P0401 xsd:integer 0..1
D01_N9 0..unbounded
N901 xsd:string 0..1
Group_ZA 0..unbounded
D02_ZA 0..unbounded
ZA01 xsd:string 0..1
ZA02 xsd:decimal 0..1
ZA_Y2K_DATE xsd:date 0..1
Target Structure
ProductDemandInfluencingEventNotification 0..unbound
ProductDemandInfluencingEvent 1..1
Item 1..unbound
OrderForecastTimeSeries 0..1
Item1 1..unbound
ValidityPeriod 1..1
StartDateTime 0..1
EndDateTime 0..1
Quantity 1..1
unitCode optional Attribute
Only one question please?
Source side ZA01 comes with many values like 'QA' , 'QD' , 'QS' etc.,
I need to produce the target node "OrderForecastTimeSeries" when only ZA01 = 'QS' and 'LIN02' = '0' (this LIN02 element comes with multiple values), this node is optional fine. But if I produce this node, there are couple of mandatory nodes are underneath, like Item1, ValidityPeriod,Quantity etc.., these nodes has to populate as follows:
"StartDateTime" value must come from "ZA_Y2K_DATE "
"EndDateTime" value must come from "ZA_Y2K_DATE ",
"Quantity" must come from "ZA02" etc.,
Whenever "OrderForeCastTimeSeries' produces, then these value must come if not, the whole tag 'shouldn't appear on target side !!!
Please can any one answer this ? Clear answer required please !!
Many Thanks in advance
Regards
San
Edited by: ASandhya on Aug 12, 2010 8:59 PM
I need to produce the target node "OrderForecastTimeSeries" when only ZA01 = 'QS' and 'LIN02' = '0' (this LIN02 element comes with multiple values), this node is
optional fine. But if I produce this node, there are couple of mandatory nodes are underneath, like Item1, ValidityPeriod,Quantity etc.., these nodes has to populate as
follows:
"StartDateTime" value must come from "ZA_Y2K_DATE "
"EndDateTime" value must come from "ZA_Y2K_DATE ",
"Quantity" must come from "ZA02" etc.
Below logic for generating OrderForecastTimeSeries
ZA01-->
--> equalS -->
Constant(QS)-->
-->And1-->
LIN02-->
--> equalS-->
Constant(0)-->
--> And3------> IfWithoutElse(Then--> BlankConstant) --> OrderForecastTimeSeries
ZA_Y2K_DATE --> Exists-->
--> And2 -->
ZA02 --> Exists-->
Output of And1 and And2 shoudl be given to And3
If there are multiple occurences of source nodes then raise the context to a higher node, so that all the instances would be considered for validation.
Regards,
Abhishek.
Edited by: abhishek salvi on Aug 13, 2010 9:57 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abishek,
Many thanks for your quick reply. What about ITEM node it is 1..unbound, please let me know how to map this? This item node has to generate 'n' number of times, howmany times ZA01= 'QD', such number of times ITEM
tag has to produce. If ZA01 value comes other than QD, we shouldn't produce ITEM TAG. Sorry my previous question was not correct.
Kind Regards
San
Hi Abhi,
One more question please,
Source Structure
Source Structure
ROOT
Output -----> 0..unbound
Trans ----> 0..unbound
ID -----> String 0..1
XQ ----> 0..unbound
XqDate ----> Date 0..1
GroupN1 ---> 0..unbound
N1---> 0..unbound
N101--> String 0..1
N4 ----> 0..unbound
N401--> String 0..1
DTM ---> 0..unbound
Y2kdate--> Date 0..1
GroupLIN --> 0..unbound
D01Lin--> 0..unbound
Lin02--> String 0..1
P04 --> 0..unbound
P0401--> String 0..1
N9 --> 0..unbound
N901 --> String 0..1
GroupZA ---> 0..unbound
D02ZA ---> 0..unbound
ZA01-->String 0..1
ZA02-->String 0..1
ZA03--> String 0..1
ZADat--> Date 0..1
Target structure :
ProductActivityNotification 0..unbound
ProductActivity 1..1
Item 1..Unbound
SalesTimeSeries 0..1
Item1 1..Unbond
ValidityPeriod 1..1
StartDateTime 0..1
EndDateTime 0..1
Quantity 1..1
I need to produce the 'SalesTimeSeries' target node when ZA01 value = 'QS'
'StartDatetime' field value must get it from 'Y2kdate' field
'Enddatetime' field also from the same field 'Y2kdate'
Quantity field vlaue should come from ZA02 field.
What I am facing the problem is, if I put condition on Salestimeseries like if ZA01="QS" createif, I can't able to get ValidatePeriod node, throwing error values are missing in queue context on 'Quantity' etc.,
Please humble requesting you to solve this, I need to send this scenario for testing in oneday time.
How to map Item, SalesTimeSeries,Item1,ValidityPeriod,Startdate,Enddate and quantity???
ValidityPeriod is coming with Startdate and Enddate for first node, the next nodes are not getting Start and enddates to Validity node??
Many thanks
Regards
San
Edited by: ASandhya on Aug 13, 2010 12:10 PM
ValidityPeriod is coming with Startdate and Enddate for first node, the next nodes are not getting Start and enddates to
Validity node??
Then it is a context problem.
Ensure that you have raised the Context of the Source nodes to a higher node.....to such a node which will have all the occurences of the source nodes
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.