matinal:SAP ABAP 用程序彻底删除请求号

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 . 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值