SAP ST TT LAX



Get Example source ABAP code based on a different SAP table
  


• lax ABAP_ST_ELEMENT

ABAP_ST - tt:lax, Name Comparisons of Literal XML Elements

ABAP_SYNTAX
... tt:lax='on'$|'off'$|'deep-on'$|'deep-off' ...

What does it do?
When deserializing literal XML elements, the optional attribute tt:lax can be used to control whether the name of an element is respected.
If tt:lax is specified with the value off, the inbound XML stream must contain an identically named element with all literal attributes attr of the same content.
If tt:lax is specified with the value on, the element in the inbound XML stream can have any name, but the expected attributes must still match.
The values deep-on and deep-off for tt:lax are used to set the setting on and off for all subelements of the current element; however, they can be overwritten locally there.
If tt:lax is not specified, the setting depends on the surrounding context. By default, a template has the setting deep-off.

ABAP_EXAMPLE_VX5
The following XML fragment is to be assumed: < X my_attr='attr'>abc < /X>
Due to tt:lax='on', the ST program DEMO_ST_LAX below can still deserialize this fragment despite different element names:
TRNS DEMO_ST_LAX
ABAP_EXAMPLE_END