on 05-11-2015 5:18 AM
Hi Experts,
I am in a process of generating XML files through BODS..when I tries to generate xml target files am getting output as below
<query>
<Node1>
<GeneratedDate>2015/11/05</GeneratedDate>
</Node1>
<Node2>
<ID>2526</ID>
<Name>ABC</Name>
</Node2>
<Node3>
<dEPT>10</dEPT>
<Sal>5000</Sal>
</Node3>
<Node1>
<GeneratedDate>2015/11/05</GeneratedDate>
</Node1>
<Node2>
<ID>4545</ID>
<Name>pqr</Name>
</Node2>
<Node3>
<dEPT757</dEPT>
<Sal>7000</Sal>
</Node3>
</Query>
As of now am getting is ok for me....But here issue starts..
I was given a requirement like Node1 should not repete all the time..It shot occur only on 1st hierarchy as below
<query>
<Node1>
<GeneratedDate>2015/11/05</GeneratedDate>
</Node1>
<Node2>
<ID>2526</ID>
<Name>ABC</Name>
</Node2>
<Node3>
<dEPT>10</dEPT>
<Sal>5000</Sal>
</Node3>
<Node2>
<ID>4545</ID>
<Name>pqr</Name>
</Node2>
<Node3>
<dEPT757</dEPT>
<Sal>7000</Sal>
</Node3>
</Query>
Please help me is very urgent..
Thanks for you support
Regards,
Abhi
Hi All,
Any suggestion for the above request.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Modify the where clause for the node1 nested table, it is probably mapped to the wrong source (often a row generation is used to fix a node to a single instance).
This is a key principle when working with with NRDM, mapping the nested tables to the correct source.
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
Thanks for you reply ..
I have only one source table from that am generating XML target.. do I need to use where condition for that??
below design I preferred..
SourceTable------>>Query(here am creating nodes)-------.>> XML Target
Row generator
Data is not looping in my design ,but the thing is 1st Node should occurs only at 1st hierarcy
Regards,
Abhi.
Check this document - it has a worked example - http://scn.sap.com/docs/DOC-19788
It's old, but the technique is still the same.
Hi All,
Can any one help me on above?????
Regards,
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.