在abap中(Clear,Free, Refesh)的用法

本文介绍了在ABAP编程中,CLEAR、REFRESH和FREE这三个命令的作用,它们用于设置数据对象(基本类型、引用变量、结构和内部表)为初始值,以及删除内部表的行并释放内存。特别指出,REFRESH仅适用于内部表,而CLEAR适用于所有数据对象,包括带头行的情况。

1. Introduction

The statements CLEAR, REFRESH, and FREE initialize data objects, that is, they set the content of a data object to an initial value.

2.Usage

2.1 Clear

Syntax

CLEAR dobj

Effect

The data object dobj is assigned the type-specific initial value. The following applies:

• The initial values are assigned to elementary data types according to the table of built-in ABAP types.

• Reference variables are assigned null references.

• Structures are set to their initial values component by component.

• All rows in an internal table are deleted. All the memory required for the table, except for the initial memory requirement, is released (see Declaring Internal Tables). The FREE statement is used to release the memory space occupied by the rows of internal tables.

The optional additions allow you to

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值