FM--ABL_MOVE_REQUIRED_LENGTH

652阅读 0评论2010-07-31 jiarui1230
分类:

ABL_MOVE_REQUIRED_LENGTH - Required length for MOVE to a type C target field

Functionality

If you want to use a MOVE statement to move data from a source field to a type C field, this functionmodule calculates the required length of the target field so that no data is lost. If the type C field is then reassigned to the source field, the contents of the source field do not change.

Example

Applied to the source field type F (float point number), the function module returns 24 as the requiredlength because a floating point number can include 1 leading sign, up to 17 valid digits, 1 decimal point, the letter "E", 1 exponential sign and up to 3 exponential places.

Notes

The module does not check each time whether the combination of input values makes sense.

If you use this function module to calculate the "safe" target field length for WRITE TO or the output length for WRITE, you should be aware of the following:

上一篇:ABAP--关于字符串String到XString XString to String转换代码(转)
下一篇:调用本地软件打开接口下载的文件