Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: Exit or Badi For MB26 on Save

$
0
0

Hi Shaikh,

 

Try with below code...

DATA: ERR.


clear ERR.

loop at it_resb into wa_resb where matnr = i_mseg-matnr and erfmg GT i_mseg-erfmg .

if i_mseg-erfmg LT wa_resb-erfmg or  i_mseg-erfmg < wa_resb-erfmg.

Err = 'X'.

Exit.

endif.

endloop.


If ERR  'X'.


message 'Quantity less then actual quantity can not be change' type 'E'.

ENDIF.


If still you are facing same problem, you can try with BADI - MB_CHECK_LINE_BADI.

 

Here you will get the parameters, what have got in ZXMBCU02.



Arivazhagan S


Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>