sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS ASSIGN TYPE 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
ARTICLE

No obsolete castings with ASSIGN

In ABAP Objects you are not allowed to use the additions TYPE and
DECIMALS for assigning data objects to field symbols using
ASSIGN .

  • Error message in ABAP Objects if the following syntax is used:


  • ASSIGN f TO fs TYPE ... [DECIMALS ...].
  • Correct syntax:


  • ASSIGN f TO fs CASTING TYPE|LIKE ...
  • Reason:


  • The TYPE and DECIMALS additions have been replaced by the addition CASTING [TYPE|LIKE] .
    Unlike the TYPE addition, CASTING supports any data type.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_ASSIGN_TABLE_1
    OO_OBS_AT_FS_1




    comments powered by Disqus