网上得来 彻底删除请求号
2012-04-19 13:08
218 查看
REPORT z.
data :
itab_e070 like e070 occurs 0 with header line,
iwa_e070c like e070c, "Request client
itab_e071 like e071 occurs 0 with header line ,
iwa_e07t like e07t , "Requst short text(desc)
iwa_E070A like E070A ,
itab_tlock like tlock occurs 0 with header line .
parameter reqno like e070-trkorr default '' .
select * into table itab_e070 from e070
where trkorr eq reqno or strkorr eq reqno.
if SY-SUBRC Ne 0 .
write : 'The Request No.:' , Reqno , ' not exist !' .
endif.
select single * into iwa_e070c from e070c
where trkorr eq reqno .
select * into table itab_e071 from e071
where trkorr eq reqno .
select single * into iwa_e07t from e07t
where trkorr eq reqno .
select single * into iwa_E070A from e070A
where trkorr eq reqno .
if itab_e070 IS INITIAL .
select * into table itab_tlock from tlock
where trkorr eq reqno .
else.
select * into table itab_tlock from tlock
FOR ALL ENTRIES IN itab_e070
where TRKORR eq itab_e070-trkorr .
endif.
if SY-SUBRC NE 0 .
write : / 'No Locked object for the request NO. was found!'.
endif.
delete :
e070 from table itab_e070 ,
e070c from iwa_e070c,
e071 from table itab_e071,
e07t from iwa_e07t ,
e070A from iwa_E070A ,
tlock from table itab_tlock .
write : / 'The Request No.:' , Reqno .
data :
itab_e070 like e070 occurs 0 with header line,
iwa_e070c like e070c, "Request client
itab_e071 like e071 occurs 0 with header line ,
iwa_e07t like e07t , "Requst short text(desc)
iwa_E070A like E070A ,
itab_tlock like tlock occurs 0 with header line .
parameter reqno like e070-trkorr default '' .
select * into table itab_e070 from e070
where trkorr eq reqno or strkorr eq reqno.
if SY-SUBRC Ne 0 .
write : 'The Request No.:' , Reqno , ' not exist !' .
endif.
select single * into iwa_e070c from e070c
where trkorr eq reqno .
select * into table itab_e071 from e071
where trkorr eq reqno .
select single * into iwa_e07t from e07t
where trkorr eq reqno .
select single * into iwa_E070A from e070A
where trkorr eq reqno .
if itab_e070 IS INITIAL .
select * into table itab_tlock from tlock
where trkorr eq reqno .
else.
select * into table itab_tlock from tlock
FOR ALL ENTRIES IN itab_e070
where TRKORR eq itab_e070-trkorr .
endif.
if SY-SUBRC NE 0 .
write : / 'No Locked object for the request NO. was found!'.
endif.
delete :
e070 from table itab_e070 ,
e070c from iwa_e070c,
e071 from table itab_e071,
e07t from iwa_e07t ,
e070A from iwa_E070A ,
tlock from table itab_tlock .
write : / 'The Request No.:' , Reqno .
相关文章推荐
- 彻底解决Fedora 6 中的添加删除与升级(转自网上)
- 如何解决网上邻居出现“登陆失败:未授予用户在此计算机上的请求登陆类型”的问题
- 如何彻底删除MySql
- UBUNTU 彻底删除 MYSQL 然后重装 MYSQL
- CISCO VLAN彻底删除的步骤
- 怎样彻底删除系统服务项
- 巧用Cipher命令 彻底删除数据
- Windows 10系统下彻底删除卸载MySQL的方法教程
- 彻底删除项目的VSS源代码管理信息
- 添加二次联动批量删除查询请求网络
- OSTaskDelReq()--请求删除任务函数
- 彻底删除mysql服务
- Oracle10g 回收站及彻底删除table
- windows下手动彻底删除chrome浏览器的方法
- 网上Post与Get请求数据步骤
- 在删除表时出现错误:递归sql级别1出现错误 ,实际返回的行数超出请求的行数
- NT下如何彻底删除Oracle?
- 教您如何彻底删除SQL Server注册表
- LXadmin漏洞致数十万网站被彻底删除,创始人自杀
- 【SSH网上商城项目实战24】Struts2中如何处理多个Model请求