abap语法
wanghqapple88
这个作者很懒,什么都没留下…
展开
-
abap内表定义
1.内表种类: .标准表,表类型为关键字STANDARD TABLE,系统为该表的每一行生成一个逻辑索引。填充标准表时,可以讲数据附加在现有行之后,也可以插入到指定的位置,程序对内表行的寻址操作可以通过索引或者关键字,另外,在对表进行插入,删除等操作时,个数据行在内存中的位置不变,系统仅重新排列个数据行的索引值。 .排序表,表类型关键字为SORTED TABLE,也具有一个逻辑...2011-02-22 21:56:09 · 662 阅读 · 0 评论 -
ABAP程序启动后台作业
FORM frm_set_bgex . DATA: lc_ind TYPE char1, lt_par_tab TYPE STANDARD TABLE OF rsparams, ls_par_tab TYPE rsparams, lc_jobname TYPE tbtcjob-jobname VALUE 'Z03P2R1...原创 2011-07-15 10:03:43 · 630 阅读 · 0 评论 -
SAP ABAP 游标操作
if not %dbcursor is initial. close cursor %dbcursor. endif."打开游标 open cursor with hold %dbcursor for select VDARL~BUKRS VDARL~GSART VDARL~RANL VDARL~RERF VDARL~STITEL VDARL~ZZB...2011-07-07 10:37:06 · 412 阅读 · 0 评论 -
Pooled and Cluster Tables
Table pools (pools) and table clusters (clusters) are special table types in the ABAP Dictionary. The data from several different tables can be stored together in a table pool or table cluster. Tabl...原创 2011-03-01 16:12:15 · 87 阅读 · 0 评论 -
abap GET RUN TIME f 程序性能分析
*&---------------------------------------------------------------------**& Report ZTCXHTEST_RUNTIME_ANALYSIS*&*&---------------------------------------------------------------------**&*&*...原创 2011-02-25 10:43:48 · 910 阅读 · 0 评论 -
abap FOR ALL ENTRIES用法注意事项
1 FOR ALL ENTRIES in itab 不能为空,否则where条件不起作用。2 在使用FOR ALL ENTRIES之前应该排序,然后删除重复的项,否则重复读取数据库。原创 2011-02-23 17:08:00 · 459 阅读 · 0 评论 -
Generic ABAP Types
Generic ABAP Types The following table shows the predefined generic ABAP types. A generic data type is an incomplete type specification that includes several complete type specifications. The gene...原创 2011-02-23 11:25:45 · 150 阅读 · 0 评论 -
abap 使用数学函数去掉后置0
data: w_p(13) type p decimals 3 value '12.120',w_p2(13) type p decimals 3,w_c(13) type c,w_i type i value 1.do 3 times.w_p2 = w_p * w_i.if FRAC( w_p2 ) = 0.exit.else....原创 2011-02-23 10:24:45 · 901 阅读 · 0 评论 -
abap新老内表声明
abap3.0之前申明内表(不建议使用): TYPES: BEGIN OF itab OCCURS n, ... f..., ... END OF itab.只适用于创建标准表因为在旧的SAP版本中,标准表是唯一的内表类型。abap3.0以后: DATA: itab...原创 2011-02-22 22:08:41 · 206 阅读 · 0 评论 -
abap的子程序参数传递注意点(转)
1、参数引用传递(Parameters Passed by Reference)使用USING或CHANGING不带value关键字来声明参数引用传递。代码样例:FORM subr USING p1 [{TYPE type}|{LIKE field}] p2 [{TYPE type}|{LIKE field}] ...原创 2011-03-31 13:22:38 · 1061 阅读 · 0 评论