abap 学习笔记(3) 数据字典和数据对象
2008-08-18 15:33
239 查看
在程序使用数据字典内置类型时,将转化为abap内置类型
ACCP-------N(6)
CHAR-------C(n)
CLNT--------C(3)
具体查<<sap程序设计>> 92页
下面是系统 字段示例:
SY-SUBRC 返 回代码值( 0,如果操 作成功)
SY-UNAME 用 户的登录名
SY-DATUM 当 前日期
SY-UZEIT 当 前时间
SY-TCODE 当 前事务
Neither this documentation nor any part of it may be copied or reproduced in any form or by any means or translated into another language, without the prior consent of SAP AG.
write /(8) time using edit mask '__:__:__'.
数据赋值
move source to destination.
destination = source.
连接字符串
CONCATENATE s1 s2 s3 s4 into s_dest [separated by sep]
后面separated by 是分隔符
data s type string.
concatenate 'a' 'b' 'c' into s separated by '|'.
write / s.
拆分字符串
split s_source at sep into s1 s2 s3.
拆分成n行内表
split s_source at sep into table itab.
替换字段内容
replace str1 with str2 into s_dest [length len].
s_dest是要被替换的原来的整个字符串 length后面限制长度.
确定字段长度
strlen( str)
substring的功能在abap中
'abc'+2(1)
得到 'c' 2表示从第3个开始,1表示取一个,1如果不写,表示取到底
ACCP-------N(6)
CHAR-------C(n)
CLNT--------C(3)
具体查<<sap程序设计>> 92页
下面是系统 字段示例:
SY-SUBRC 返 回代码值( 0,如果操 作成功)
SY-UNAME 用 户的登录名
SY-DATUM 当 前日期
SY-UZEIT 当 前时间
SY-TCODE 当 前事务
Neither this documentation nor any part of it may be copied or reproduced in any form or by any means or translated into another language, without the prior consent of SAP AG.
write /(8) time using edit mask '__:__:__'.
数据赋值
move source to destination.
destination = source.
连接字符串
CONCATENATE s1 s2 s3 s4 into s_dest [separated by sep]
后面separated by 是分隔符
data s type string.
concatenate 'a' 'b' 'c' into s separated by '|'.
write / s.
拆分字符串
split s_source at sep into s1 s2 s3.
拆分成n行内表
split s_source at sep into table itab.
替换字段内容
replace str1 with str2 into s_dest [length len].
s_dest是要被替换的原来的整个字符串 length后面限制长度.
确定字段长度
strlen( str)
substring的功能在abap中
'abc'+2(1)
得到 'c' 2表示从第3个开始,1表示取一个,1如果不写,表示取到底
相关文章推荐
- abap学习笔记(5) 动态数据对象
- Head First Python 学习笔记-Chapter6:自定义数据对象:字典与类
- oracle 学习笔记(十一) 数据库常用对象, table ,constraint ,index ,view和数据字典
- abap 学习笔记(2) 数据类型声明
- ios学习笔记之字典(NSDictionary)对象相应方法的用途
- 【学习笔记】Redis(2)-数据对象
- 面向对象的程序设计学习笔记-17-静态成员数据
- 设计模式学习笔记--数据访问对象模式
- SilverLight学习笔记--对象数据绑定
- django学习笔记---获取关联表单数据的3种方式(列表,字典,元祖)。
- Python学习笔记(5)--数据结构之字典dict
- OneThink学习笔记02----数据字典(即OneThink项目数据库里的表及其字段)
- SpringMVC学习笔记(八):Ajax用法二(借助json传对象数据)
- 数据字典学习笔记
- openerp学习笔记 对象继承,对象初始化数据
- abap 学习笔记(1) 数据类型
- CanOpen学习笔记1--Canfestival对象字典编辑器打开
- Python学习笔记_Chapter 6定制数据对象
- Struts2.x--学习笔记之页面对象数据传递 详解
- Spring学习笔记之使用对象-关系映射持久化数据