SAP CONVERSION TYPE XSTRING



Get Example source ABAP code based on a different SAP table
  



Source Field Type <(>xstring<)>
ITOC

Numeric Target Fields TargetConversion i, int8, (b, s)Content is handled in the same way as a source field of type x . If the source field has length 0, the target field is assigned the value 0. pContent is handled in the same way as a source field of type x. If the source field has length 0, the target field is assigned the value 0. decfloat16, decfloat34Content is handled in the same way as a source field of type x. If the source field has length 0, the target field is assigned the value 0. fContent is handled in the same way as a source field of type x. If the source field has length 0, the target field is assigned the value 0.

ABAP_EXAMPLE_VX5
The result of the following conversion has the value 123456789. The first three bytes FFFFFF of the source field are ignored.
ABEXA 00961
ABAP_EXAMPLE_END

Character-Like Target Fields TargetConversion cThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the target field is padded with blank characters. nThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the target field is padded with the character 0. stringThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the length of the target field is also 0 after the assignment.

ABAP_EXAMPLE_VX5
The string resulting from the conversion is FFFFFF075BCD15. All bytes of the source field are included in the conversion.
ABEXA 00962
ABAP_EXAMPLE_END

Byte-Like Target Fields TargetConversion xThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the target field is padded with the hexadecimal 0. xstringThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the length of the target field is also 0 after the assignment.

ABAP_EXAMPLE_VX5
The byte chain resulting from the conversion is FFFFFF075BCD15. All bytes of the source field are included in the conversion.
ABEXA 00963
ABAP_EXAMPLE_END

Date/Time Fields as Target Fields #TargetConversion dThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the target field is padded with the character 0. tThe content is handled in the same way as a source field of type x. If the length of the source field is 0, the target field is padded with the character 0. utclongNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED .

ABAP_EXAMPLE_VX5
The value of the date field resulting from the conversion is 20170111 corresponding to 736341 days since 01/01/0001. The first three bytes FFFFFF of the source field are ignored.
ABEXA 00964
ABAP_EXAMPLE_END