SAP MOVE EXACT ABEXA



Get Example source ABAP code based on a different SAP table
  



Lossless Assignment
This example demonstrates how the operator EXACT is used to make lossless assignments.

ABAP_SOURCE_CODE
DEMO CL_DEMO_MOVE_EXACT

ABAP_DESCRIPTION
Without the operator EXACT, text is assigned to num_text without the check for validity of the assigned value against the associated conversion rules , which produces a value that is not very intuitive, 00000042.
Using the operator EXACT, the value that is passed is checked and an exception is raised in the case in question.