Cannot Use PACK

You cannot use the PACK statement to pack character 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 field to a packed number.

Overview:

Replacement for Obsolete Statements ABAP Objects