- 浏览: 291015 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
Kisses99:
怎么锁了?readonly?
tomcat不能正常启动 -
zhangliixi:
老板果然还是要厉害点~~
tomcat不能正常启动
创建子程序
DATA:
code type TABLE OF string,
subrtnm(10) type c,
prog type program,
msg(20) type c,
line(10) type c,
word(10) type c,
off(3) type c,
lw_string type string.
" for concatenate
* prepare the ”Dynamic Subroutine sentence”
append 'PROGRAM SUBPOOL.' to code.
subrtnm = 'TEST'.
CONCATENATE 'FORM' subrtnm '.' into lw_string SEPARATED BY space.
"CONCATENATE ’FORM’ ’TEST’ ’.’ into lw_string SEPARATED BY space.
APPEND lw_string to code.
append 'Write:/10 ''This is one transient subroutine''.' to code.
APPEND 'ENDFORM.' to code.
* create subroutine dynamically
GENERATE SUBROUTINE POOL code NAME prog MESSAGE msg LINE line WORD word OFFSET off. ”生成子程序
IF sy-subrc <> 0 .
write:/ 'Error occurs in line:',line,
/ msg,
/'Word:', word,
/ 'Offset:', off.
ENDIF.
创建report
DATA:
code type TABLE OF string,
prgnm(10) type c,
lw_string type string.
" for concatenate
prgnm = 'ZTEST_SUB'.
* form the dynamic-program
CONCATENATE 'PROGRAM' prgnm '.' INTO lw_string SEPARATED BY space.
APPEND lw_string to code.
APPEND 'WRITE:/10 ''Hello, this is the transient program!''.' to code.
INSERT REPORT prgnm from code."从内表code里面生成report
* call the transiet program
SUBMIT (prgnm) AND RETURN."执行程序
* append the transient program
READ REPORT prgnm into code.
APPEND 'WRITE:/10 ''Hello, this is the transient program! 2nd Time append.''.'
to code.
INSERT REPORT prgnm from code.
"GENERATE REPORT prgnm.
* call the transiet program
SUBMIT (prgnm) AND RETURN.
原文地址:http://scnblogs.techweb.com.cn/tcsapbw/archives/368.html
DATA:
code type TABLE OF string,
subrtnm(10) type c,
prog type program,
msg(20) type c,
line(10) type c,
word(10) type c,
off(3) type c,
lw_string type string.
" for concatenate
* prepare the ”Dynamic Subroutine sentence”
append 'PROGRAM SUBPOOL.' to code.
subrtnm = 'TEST'.
CONCATENATE 'FORM' subrtnm '.' into lw_string SEPARATED BY space.
"CONCATENATE ’FORM’ ’TEST’ ’.’ into lw_string SEPARATED BY space.
APPEND lw_string to code.
append 'Write:/10 ''This is one transient subroutine''.' to code.
APPEND 'ENDFORM.' to code.
* create subroutine dynamically
GENERATE SUBROUTINE POOL code NAME prog MESSAGE msg LINE line WORD word OFFSET off. ”生成子程序
IF sy-subrc <> 0 .
write:/ 'Error occurs in line:',line,
/ msg,
/'Word:', word,
/ 'Offset:', off.
ENDIF.
创建report
DATA:
code type TABLE OF string,
prgnm(10) type c,
lw_string type string.
" for concatenate
prgnm = 'ZTEST_SUB'.
* form the dynamic-program
CONCATENATE 'PROGRAM' prgnm '.' INTO lw_string SEPARATED BY space.
APPEND lw_string to code.
APPEND 'WRITE:/10 ''Hello, this is the transient program!''.' to code.
INSERT REPORT prgnm from code."从内表code里面生成report
* call the transiet program
SUBMIT (prgnm) AND RETURN."执行程序
* append the transient program
READ REPORT prgnm into code.
APPEND 'WRITE:/10 ''Hello, this is the transient program! 2nd Time append.''.'
to code.
INSERT REPORT prgnm from code.
"GENERATE REPORT prgnm.
* call the transiet program
SUBMIT (prgnm) AND RETURN.
原文地址:http://scnblogs.techweb.com.cn/tcsapbw/archives/368.html
发表评论
-
程序方法添加SAP_ALL权限
2012-04-10 14:28 1960REPORT ZTEST_001. data zUSR04 ... -
Business Add-ins
2011-12-20 10:33 1256本文是BC425中BAPI部分的内容,闲来无事学习一下,顺便翻 ... -
维护成本控制凭证的编号范围报错:co area have different elements
2011-08-19 16:30 1321在做维护成本控制凭证的编号范围时,从0001控制范围cop ... -
初级成本要素和次级成本要素 .
2011-08-18 16:40 2813初级成本要素与次级成本要素。SAP除总帐的及时集成外,它的另一 ... -
SAP query传输以后需要重新生成程序
2011-07-26 10:53 5787最近有个需求,需 ... -
ABAP程序启动后台作业
2011-07-15 10:03 5005FORM frm_set_bgex . DATA: ... -
SAP菜单显示事务码
2011-07-11 16:34 2834SAP的菜单项上,默认不显示该菜单项的事务码,进行如下操作可显 ... -
程序查找Customer Exit
2011-04-11 10:27 1060REPORT ZEXIT_HELP no standard p ... -
inner join on, left join on, right join on区别(转)
2011-03-31 14:06 16101.理论 只要两个表的公共字段有匹配值,就将这两个表中的记录 ... -
For all entries使用中注意的问题
2011-03-30 21:54 11971.SELECT CARRID CONNI ... -
ABAP memory中的Export和Import
2011-03-30 17:02 3554REPORT z_barry_export_import . ... -
ABAP中的各种接口技术(转)
2011-03-30 12:19 2302下面总结一下ABAP中的各 ... -
导入现成的安装有SAP的虚拟机报错:Failed to lock the file解决方法
2011-03-23 10:52 2221虚拟机文件来源:windows server 200 ... -
sap 标准abap程序优化example
2011-03-22 11:11 1364用se38进入程序编辑器,然后在Environment-Exa ... -
BADI 入门
2011-03-21 22:17 1071badi入门的文章看了不少,感觉下面这一片讲的挺好的。 地址: ... -
根据事物码查找BADI(转)
2011-03-21 20:29 1407对于根据事务代码查找对应的BADI,网上介绍的方法很多,但总结 ... -
SAP IMG的概念
2011-03-05 11:14 2114SAP - IMG IMG是SAP后台配置的入口。 Imp ... -
abap debug中设置watchpoint
2011-03-02 23:12 5062拿一个实例来说:先将文件写入服务器,然后再从应用服务器上读取, ... -
abap screen parameters自动转化成大写
2011-02-22 13:32 1774当我们写下面这段代码时 PARAMETERS: name ty ... -
使用Call Transaction来实现BDC(转)
2011-02-22 10:54 2301data: ls_bdc like bdcdata, lt ...
相关推荐
主要是关于ABAP动态内表使用详细方法以及示例的详解
在SAP ABAP里动态内表的构建,以及数据的传递,并且还附有说明的例子,简单明了.
ABAP BP创建角色程序示例以及更新信用数据示例(调用方法类),以上程序是使用方法类,可参考参数以及类方法后直接调用
ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建ABAP内表创建
动态内表的创建,动态内表的赋值,动态内表的读取显示
详细介绍ABAP里面动态语句的写法 FIELD-SYMBOLS 申明的类型详解
ABAP 动态内表ABAP 动态内表
不知道为什么,被加密了。 重新再发另外一份! type-pools: slis....field-symbols: <dyn_table> type standard table, ” 内表结构 , ” 表头 <dyn_field>....data: dy_table type ref to data, ...
什么是BAPI BAPI: Business Application Programming Interface 商业应用程序接口 1.访问R3中业务对象与业务过程的标准编程接口。 2.BAPIs 实现了BOR中业务对象的方法 3.BAPIs 通过RFC-enable的功能模块实现。...
ABAP tablecontrol 控件动态显示列 ABAP tablecontrol 控件动态显示列是指在ABAP编程中,使用tablecontrol控件动态地显示或隐藏表格中的列。下面将详细介绍实现这种功能的知识点。 首先,大家可能会想到使用LOOP ...
本程序自主开发,包括SELECT,UPDATE,DELETE,INSERT操作,SELECT 语句可以根据自定义的内表动态的输出ALV 列表,UPDATE DELETE INSERT 语句可以对数据库表进行操作. 切忌谨慎应用此程序对数据库的操作,以免造成数据...
sap abap cash flow report
特点: 1\30个不同结构的透明表可以通过一程序来维护 2\这个程序是通过动态生成对应的动态内表来实现的 3\字段之间的搜索帮助有互相影响 4\请使用webex录屏软件来播放
SAP ABAP SE11创建表操作步骤
ABAPsap创建包手顺
ABAP动态生成经典应用之Dynamic+SQL+Excute+程序.doc
abap object-oriented class:this document will teach you hwo to create a object-oriented class step by step.
教您学习怎么创建简单的abap程序,举了一些简单的事例,讲解比较详细
type-pools: slis. field-symbols: <dyn_table> type standard table, ” 内表结构 , ” 表头 <dyn_field>. ” 项 data: dy_table type ref to data, dy_line type ref to data, ” 行 xfc type lvc_s_fcat,...
SAP应用及ABAP开发最佳实践—基于ABAP Workbench创建并发布Web Service.