We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] Va01 Quantity Validation Code

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

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.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2015 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
Evan  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language