ABAPASSIGN_CASTING_OBSOLETE - ASSIGN CASTING OBSOLETE

Addresses (Business Address Services)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

ASSIGN - obsolete_casting

Short Reference



Obsolete Syntax

... { TYPE name }
  | { [TYPE name] DECIMALS dec } ... .

Additions 1. ... TYPE name 2. ... DECIMALS dec

Effect

This form of the addition casting_specfor the ASSIGNstatement in which you specify TYPE or DECIMALS without the CASTING addition, isnot allowed in classes. Furthermore, it can neither be used together with the statement INCREMENTin mem_areanor with the addition RANGE.However, the field symbol may be typed using the obsolete addition STRUCTUREof the FIELD-SYMBOLS statement.

Addition 1

... TYPE name

Effect

After TYPE, a character-like data object name of length 1 is expected, which must containexactly one of the case-sensitive letters "C", "D", "F", "I", "N", "P", "T", "X", "b", or "s" when the statement is executed. These letters label the respective built-inABAP types and have the following effects:

  • If the field symbol <fs> is typed completely or in parts, thetypingmust match the ABAP type specified after TYPE. The assigned memory area is casted to the type of the field symbol.
  • If the field symbol is typed completely generically, the type of the assigned memory area is casted to the ABAP type specified after TYPE.

Note

The specification of the predefined types b and s using "b" or "s" is an exception to the rule that these cannot be specified in statements, and is only permitted in these obsolete variants.

Example

See Casting Predefined Data Types.

Addition 2

... DECIMALS dec

Effect

After DECIMALS, you must specify a numeric data object dec. For thecasting, data type p is used; the size of thefractional portion is determined by the content of dec. You do not need to specify TYPEfor DECIMALS. If you specify TYPE, name must contain data type "P", which is used anyway.

Example

See Casting Decimal Places.


BAL Application Log Documentation   CPI1466 during Backup  
This documentation is copyright by SAP AG.


Length: 3759 Date: 20120518 Time: 191653     triton ( 129 ms )