Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from Evan on Jan 9 at 3:48 PM Just put everything you wrote into an IF statement. Or more preferably if you have other logic outside of the user exit to decouple it, utilize (or create perhaps) a class with methods to handle these kind of checks. You just need an IF statement with some checks and a MESSAGE 'Error....' TYPE 'E'. You might have to get creative if you specify a type E message and it still shows up as informational and continues on. SAP has been known to do that depending on the user exit. Perhaps I dont fully understand your requirement. Seems easy enough.
| | | ---------------Original Message--------------- From: wmsnlv Sent: Thursday, January 08, 2015 5:59 AM Subject: Va01 Quantity Validation Code va01 quantity validation If VBAP- KWMENG > Ztable-Max Qty Where VBAK-AUART = Ztable-Order type And VBAK-VKORG = Ztable-Sales Org And VBAK-VTWEG = Ztable-Dist Channel And VBAP-PRODH (3rd to 7th digit) = Ztable-L2 Prod-hierarchy Throw error "Line item XX ordered quantity is more than Maximum quantity" Can you help me with writing this code.? coding is needed in MV45AFZB "USEREXIT_CHECK_VBAP" | | Reply to this email to post your response. __.____._ | _.____.__ |