SAP ST OPTION FORMAT Get Example source ABAP code based on a different SAP table
SAP Help
• format ABAP_ST_ELEMENT
• decimals ABAP_ST_ELEMENT
• regime ABAP_ST_ELEMENT
• noError ABAP_ST_ELEMENT
ABAP_ST - option>, Mapping Rules for Elementary Types ABAP_SYNTAX ... option='$[format(fmt)$]$[,decimals(dec)$]$[ ,regime(num$|char$|bin)$]$[,noError$]'> ABAP Addition 1 ... format(fmt) ...> 2 ... decimals(dec) ...> 3 ... regime(num$|char$|bin) ...> 4 ... noError ...> What does it do? Specifies mapping rules for elementary types. format> can be used to specify different formats fmt>. decimals> can be used to affect the decimal places of numeric values and of time stamps. regime> can be used to force numeric, character-like, or byte-like handling. noError> can be used to prevent exceptions for invalid values for some ABAP types and for some of the formats. ABAP Addition What does it do? The format> option can be used to do the following: Specify formats fmt> based on XML schema data types to create the corresponding XML representation or JSON representation from ABAP-specific representations of specific elementary values and vice versa. Specify other formats fmt> to convert ABAP data to framework-specific representations that do not comply with the standard asXML> representation and vice versa. The following table shows the possible formats fmt>, the ABAP types and representations where they can be used, and the associated XML representations and JSON> representations. fmt>ABAP Type>ABAP Representation>XML Representation>JSON Representation> boolean>c>, length 1X>, blanktrue>, false>true>, false> hex>x>, xstring>0123456789ABCDEF> 0123456789ABCDEF>0123456789ABCDEF> duration>t>125814>PT12H58M14S> PT11H24M22S> dateTime>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL>2014-12-12 11:24:22.7717230>, lbr 20141212112422>, lbr 20141212112422.7717230> 2014#12#12T11:27:22.7717230Z>, lbr2014#12#12T11:27:22Z>, lbr 2014#12#12T11:27:22.771723Z> 2014#12#12T11:27:22.7717230Z> , lbr 2014#12#12T11:27:22Z>, lbr 2014#12#12T11:27:22.771723Z > dateTimeOffset>c>, length 18 20141212113855+180> 2014#12#12T11:38:55+03:00>2014#12#12T11:38:55+03:00> dateTimeOffset>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL>2014-12-12 11:24:22.7717230>, lbr 20141212112422>, lbr 20141212112422.7717230> 2014#12#12T11:27:22.7717230+00:00>, lbr2014#12#12T11:27:22+00:00 >, lbr 2014#12#12T11:27:22.771723+00:00> 2014#12#12T11:27:22.7717230+00:00>, lbr 2014#12#12T11:27:22+00:00 >, lbr 2014#12#12T11:27:22.771723+00:00> dateTimeLocal>c>, length 14 20141212114245> 2014#12#12T11:42:45>2014#12#12T11:42:45>, dateTimeLocal>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL>2014-12-12 11:24:22.7717230>, lbr 20141212112422>, lbr 20141212112422.7717230> 2014#12#12T11:42:45.7717230>, lbr 2014#12#12T11:42:45> lbr 2014#12#12T11:42:45.771723>2014#12#12T11:42:45.7717230>, lbr 2014#12#12T11:42:45>, lbr 2014#12#12T11:42:45.771723> ticks>d>20141212>2014#12#12> /Date(1418342400000)/> ticks>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL >2014-12-12 11:50:38.9922080>, lbr20141212115038>, lbr 20141212115038.9922080> 2014#12#12T11:50:38.9922080Z>, lbr 2014#12#12T11:50:38Z>, lbr2014#12#12T11:50:38.992208Z> /Date(1418383462771)/>, lbr /Date(1418383462000)/>, lbr /Date(1418383462771)/> ticksOffset>c>, length 18 20141212115254+180> 2014#12#12T11:52:54+03:00> /Date(1418383462000+0180)/> ticksOffset>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL>2014-12-12 11:24:22.7717230>, lbr 20141212112422>, lbr 20141212112422.7717230> 2014#12#12T11:27:22.7717230+00:00>, lbr 2014#12#12T11:27:22+00:00 >, lbr 2014#12#12T11:27:22.771723+00:00> /Date(1418383462771+0000)/>, lbr /Date(1418383462000+0000)/> , lbr /Date(1418383462771+0000)/> guid>x>, length 16; c>, length 32, lbr c>, length 22 0050569181751ED4A0BED3E86422E104>, lbr 051MaO5r7jIWljFeP2BX10>00505691#8175#1ed4#a0be#d3e86422e104> 00505691#8175#1ed4#a0be#d3e86422e104> qName>string>{uri}name> < ... xmlns:...='uri'>...:name < /...>>{uri}name> uri>c>, string>:; < = > ?[ ]^_``{|}~> :;%3C=%3E?[%5C]%5E_%60%7B%7C%7D~> :;%3C=%3E?[%5C]%5E_%60%7B%7C%7D~> uriFull>c>, string>:; < = > ?[ ]^_``{|}~> %3A%3B%3C%3D%3E%3F%5B%5C%5D%5E_%60%7B%7C%7D~> %3A%3B%3C%3D%3E%3F%5B%5C%5D%5E_%60%7B%7C%7D~> uri1>c>, string>Rock'n'Roll Blues> 'Rock''n''Roll%20%26%20Blues'>'Rock''n''Roll%20%26%20Blues' > uri1>x>, xstring>0123456789ABCDEF> binary'0123456789ABCDEF'>binary'0123456789ABCDEF'> uri1>t>125814>time'PT12H58M14S'> time'PT12H58M14S'> uri1>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL> 2014-12-12 11:24:22.7717230>, lbr20141212112422>, lbr 20141212112422.7717230> datetimeoffset'2014#12#12T11%3A27%3A22.7717230Z'>, lbr datetimeoffset'2014#12#12T11%3A27%3A22Z'>, lbr datetimeoffset'2014#12#12T11%3A27%3A22.771723Z'> datetimeoffset'2014#12#12T11%3A27%3A22.7717230Z'>, lbr datetimeoffset'2014#12#12T11%3A27%3A22Z'>, lbr datetimeoffset'2014#12#12T11%3A27%3A22.771723Z'> uri2>x>, length 16; c>, length 32 0050569181751ED4A0BED3E86422E104> guid'00505691#8175#1ed4#a0be#d3e86422e104'> guid'00505691#8175#1ed4#a0be#d3e86422e104'> uri2>d>20141212> datetime'2014#12#12T00%3A00%3A00'> datetime'2014#12#12T00%3A00%3A00'> uri2>utclong>, lbr TIMESTAMP>, lbr TIMESTAMPL> 2014-12-12 11:24:22.7717230>, lbr20141212112422>, lbr 20141212112422.7717230> datetime'2014#12#12T11%3A27%3A22.7717230'>, lbr datetime'2014#12#12T11%3A27%3A22'>, lbr datetime'2014#12#12T11%3A27%3A22.771723'> datetime'2014#12#12T11%3A27%3A22.7717230'>, lbr datetime'2014#12#12T11%3A27%3A22'>, lbr datetime'2014#12#12T11%3A27%3A22.771723'> language>c>, length 1E>, D>, ...EN>, DE>, ...EN>, DE>, ... currCode>c>, length 5EUR>, USD>, ... EUR>, USD>, ...EUR>, USD>, ... unitCode>c>, length 3KM>, MI>, ...KMT >, SMI>, ...KMT>, SMI>, ... currency=CURRCODE>Numeric types >123456>, lbr 123,456>123456>, lbr 123,456 >123456>, lbr 123,456> unit=UNITCODE>p>, decfloat16>, decfloat34> 123,000>, lbr 123,456>123>, lbr 123,456> 123>, lbr 123,456> alpha>c>,