SAP CONVERSION TYPE UTCLONG



Get Example source ABAP code based on a different SAP table
  



Source Field Type <(>utclong<)>
ITOC

Numeric Target Fields TargetConversion i, int8, (b, s)Not supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED. pNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED . decfloat16, decfloat34Not supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED. fNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED .



Latest notes:

The methods UTCLONG2TSTMP and UTCLONG2TSTMP_SHORT of class CL_ABAP_TSTMP convert time stamp fields of the type utclong to time stamps in packed numbers.
NON_V5_HINTS
ABAP_HINT_END

Character-Like Target Fields TargetConversion c The internal representation of the time stamp is converted to a character string that represents the time stamp in the notation yyyy-mm-dd hh:mm:ss.fffffff. Between the date and time specification there is a space, and a period (.) is used as a decimal separator. If the target field is shorter than 27, the character string is truncated on the right. If the target field is longer than 27, the field is padded with blanks on the right. If the source field is initial, the target field is filled with blanks. If the source field contains an invalid value, an exception of the class CX_SY_CONVERSION_NO_DATE_TIME is raised. nNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED . stringAs for a target field of type c. The resulting length of the target field is 27. If the source field is initial, the target field is an empty string.



Latest notes:

The formatting of a time stamp of type utclong during the conversion follows the SQL standard according to ISO 9075 and corresponds to the formatting option TIMESTAMP with the value SPACE for embedded expressions in string templates.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The example compares the formatting of the conversion with the corresponding formatting in a string template.
ABEXA 00956
ABAP_EXAMPLE_END

Byte-Like Target Fields TargetConversion xNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED . xstringNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED .

Date/Time Fields as Target Fields #Targetconversion dNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED . tNot supported. Produces a syntax error or raises the exception CX_SY_CONVERSION_NOT_SUPPORTED . utclongThe content of the source field is passed unconverted.