码迷,mamicode.com
首页 > 其他好文 > 详细

Condtion type Z123 is mandatory!

时间:2018-12-20 10:27:38      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:type   snr   concat   loop   single   cat   ems   ESS   man   

user exit: MV45AFZZ—>userexit_save_document_prepare

ZI_EXIT_SD_CNEMS_SAVE_PREPARE


***Start of insert for S20180927143604 by crystal 20181130
CLEAR:ls_xkomv,l_const_ems_01.
CONCATENATE ‘Z123_‘ vbak-vkorg ‘_‘ vbak-auart INTO l_const_ems_01.
SELECT SINGLE const FROM zsd_con_val INTO l_const_ems_01
WHERE repid = ‘ZI_EXIT_SD_CNEMS_SAVE_PREPARE‘
AND const = l_const_ems_01
AND value = ‘X‘.
IF sy-subrc = 0.
LOOP AT xvbap WHERE posnr <> ‘000000‘.
READ TABLE xkomv WITH KEY kschl = ‘Z123‘ kposn = xvbap-posnr INTO ls_xkomv.
IF sy-subrc NE 0 OR ( sy-subrc = 0 AND ls_xkomv-kwert IS INITIAL ).
CONCATENATE ‘Condition type Z123 is mandatory on item‘ xvbap-posnr ‘!‘ INTO l_msg SEPARATED BY space.
MESSAGE l_msg TYPE ‘E‘ .
ENDIF.
ENDLOOP.
ENDIF.
***End of insert for S20180927143604 by crystal 20181130

Condtion type Z123 is mandatory!

标签:type   snr   concat   loop   single   cat   ems   ESS   man   

原文地址:https://www.cnblogs.com/chrisrockdl/p/10147422.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!