SAP® Documentation

Single view

ABAPUNASSIGN - UNASSIGN

ABAP Short Reference   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

UNASSIGN

Short Reference



Syntax

UNASSIGN <fs>.

Effect

This statement initializes the field symbol <fs>. After the statement, the field symbol does not reference a memory area and the predicate expression<fs> IS ASSIGNED is false.

Notes

  • The statement CLEAR <fs> does not initialize the field symbol and initializes the memory area that is assigned to the field symbol instead.
  • Unlike the initialization of reference variables, the statement UNASSIGN does not affect Garbage Collector.


Example

A field symbol to which a memory space is assigned is initialized with UNASSIGN.

FIELD-SYMBOLS <fs> TYPE d.

ASSIGN sy-datlo TO <fs>.
IF <fs> IS ASSIGNED.
  cl_demo_output=>write( 'assigned' ).
ENDIF.

UNASSIGN <fs>.
IF <fs> IS NOT ASSIGNED.
  cl_demo_output=>write( 'unassigned' ).
ENDIF.

cl_demo_output=>display( ).






BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1840 Date: 20200126 Time: 033442     sap01-206 ( 39 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.