CONVERT TEXT statement in ABAP

CONVERT TEXT statement in ABAP programming is used for converting character or string type fields values to a byte sequence. It will be a sortable byte sequence.

Syntax:

CONVERT TEXT <text> INTO SORTABLE CODE <x>.

The main runtime exceptions for this statement are

  • CONVERT_TEXT_BAD_OP (One of the operands has an invalid data type)
  • CONVERT_TEXT_BAD_SRC (Source field is invalid)
  • CONVERT_TEXT_DEST_TOO_SHORT (Target field is too small)
Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes