Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

optinal XML elements in simple transformation

Former Member
0 Likes
690

Hello,

I want to perform a deserialization (XML to ABAP) using simple transformation.

Some of the XML elements are optinal - they can optionally appear in the XML structure.

Example:

<X>

<Y>

</Y>

</X>

Can be delivered as:

<X>

</X>

So that Y element is optional.

How is it possible to handle it?

Thanks in advance,

Sergey

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
489

Something like this:


...
        <tt:cond frq="?">
          <Y>
            <tt:value ref="Y"/>
          </Y>
        </tt:cond>

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
490

Something like this:


...
        <tt:cond frq="?">
          <Y>
            <tt:value ref="Y"/>
          </Y>
        </tt:cond>

Read only

Sandra_Rossi
Active Contributor
0 Likes
489

Please read the doc: [sap library - ST - index|http://help.sap.com/saphelp_nw04s/helpdata/EN/18/d16240e85cef6fe10000000a1550b0/frameset.htm]