sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS PACK 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
ARTICLE

Cannot Use PACK

You cannot use the PACK statement to pack character-like fields in ABAP Objects.

  • In ABAP Objects, the following statements cause an error message:


  • DATA: c1(...) TYPE c,
    p1(...) TYPE p.

    PACK c1 TO p1.
  • Correct syntax:


  • DATA: c1(...) TYPE c,
    p1(...) TYPE p.

    MOVE c1 TO p1.
  • Cause:


  • The PACK statement is superfluous, since it works just like the MOVE statement when you assign a character-like field to a packed number.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_ON_CHANGE_1
    OO_OBS_PERFORM_1




    comments powered by Disqus