05-17-2006 4:05 AM
hi all:
now i have a badi problem.
I use t-code migo to post a purchase oder to complete goods receipt.
I need to control the stock when user click the 'post' button, then maybe I WILL give a error message and then stop the migo program.
for example, i wirte the code 'show message e398(00) with 'error message'' in the badi implementation ZMB_DOCUMENT_BADI,method 'MB_DOCUMENT_BEFORE_UPDATE' and active it. it will come to a runtime error 'MESSAGE_TYPE_X'.
I debug the programe I found when the progamm come to
'show message e398(00) with 'error message'' ,next it will return sy-subrc = 4.
if I MODIFY the e398(00) with i398(00) then it will be OK
but I can not stop the program migo.
05-29-2006 8:53 AM
Hi,
have you solved this problem ?
Because i have something familiar to solve. How did you solve it ?
regards,
Hans
11-14-2006 2:31 PM
Hi all,
Try using the BADI "MB_MIGO_BADI" it has an POST_DOCUMENT where you can do the validations.
Reward if helpful plz.
Fran
01-27-2007 3:27 PM