SAP® Documentation

Single view

ABAPASSIGN_CASTING_OBSOLETE - ASSIGN CASTING OBSOLETE

ROGBILLS - Synchronize billing plans   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

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_spec of the statement ASSIGN, in which TYPE or DECIMALS is specified without the addition CASTING, is not allowed in classes. Also it cannot be used together with the statement INCREMENT in mem_area or with the addition RANGE. However, the field symbol may have been typed using the obsolete- addition STRUCTURE of the statement FIELD-SYMBOLS.

Addition 1

... TYPE name

Effect

After TYPE, a single character character-like data object name is expected, which must contain exactly 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-in ABAP types and have the following effects:

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


Note

The specification of the built-in types b and s using "b" or "s" is an exception to the rule that these cannot be specified in statements. It is only possible in these obsolete variants.

Casting Built-In Data Types

Addition 2

... DECIMALS dec

Effect

A numeric data object dec must be specified after DECIMALS. For the casting, the data type p is used. Here, the number of decimal places is determined by the content of dec. TYPE does not need to be specified for DECIMALS. If TYPE is specified, name must contain the data type "P", which is used anyway.

Casting Decimal Places






Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 4212 Date: 20191018 Time: 052725     sap01-206 ( 23 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.