on 07-20-2010 12:24 PM
Hello All,
The problem is related to Sales Order where I want to make the field PO Number mandatory with respect to a specific customer group. For example for customers having customer groups 1, 2, 4 etc when we save the Sales Order it will allow me to save the Sales Order without any text or number in the PO number field. But in case of customers having customer group 3 it will not allow the Sales Order to be saved without a PO number.
How to configure this ? Is there any user exit or source code need to be written to achieve this ?
Please help with some valuable suggestions at the earliest.
Thanks & Regards
Priyanka Mitra
Hello Priyanka,
How to configure this ? Is there any user exit or source code need to be written to achieve this ?
I think your requirement can be easily met with a User Exit in the Sales Order processing.
USEREXIT_MOVE_FIELD_TO_VBAK
Here you need to put a check on the basis of your requirement such that when the Sales Order transaction goes on for the Customer Group # 3, the PO field is checked and when entries are not found then an Error is thrown back !!
Hope this information helps you in resolving your issue and please don't forget to close this thread if your query is answered.
Regards,
SARTHAK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is solved.
Thanks to All.
Regards
Priyanka Mitra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no standard customizing available for this. Please ask your ABAPer to code the logic in exit MV45AFZZ.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is pretty easily done with a user exit. I recommend the subroutine USEREXIT_SAVE_DOCUMENT_PREPARE in program SAPMV45A. The logic would go something like this:
IF creating or changing a document AND
Order type is appropriate to this situation AND
Sold-to partneru2019s Customer Group = 3 AND
Purchase order field is blank THEN
Issue an annoying pop up message telling the order entry person that a PO number is necessary.
On acknowledgement, return to the document with the cursor in the PO number field.
ENDIF
Regards,
Ken
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.