控制MD61,MD62中WBS元素不能为空

Enhancement     Impl      Exp  M60E0002 User Exit to End Planned Independent Requirements Maintnce

Function exit                  EXIT_SAPLM60E_002

  SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S52 { color: #0000FF; } include zx60eu02.

  SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style. italic; color: #808080; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } *&---------------------------------------------------------------------*
*&  Include           ZX60EU02
*&---------------------------------------------------------------------*
**********************************************
tables: zplot,prps.
if sy-tcode = 'MD61' or sy-tcode = 'MD62'.
 loop at fxpbpt.
   if fxpbpt-knttp <> 'Q'.
     clear fxpbpt-knttp.
     fxpbpt-knttp = 'Q'.
   endif.
   select single * from zplot where matnr = fxpbpt-matnr.
   if sy-subrc = 0.
     select single * from prps where posid = zplot-posid.
     clear fxpbpt-pspel.
     fxpbpt-pspel = prps-pspnr.
   endif.
   modify fxpbpt.
*   fxpbpt-PSPEL = 'IL003'.
 endloop.
endif.
**********************************************
data:lv_pbpt like fxpbpt.
clear lv_pbpt.
loop at fxpbpt into lv_pbpt.
  if lv_pbpt-pspel is initial.
    message text-001  type 'W' display like 'E'.
    leave to screen sy-dynnr.
  endif.
endloop.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/166523/viewspace-419004/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/166523/viewspace-419004/

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值