on 04-06-2009 8:30 AM
Hi All
We have a requirement that if the confirmed qty in schedule lines is not equivalent or less than the order qty the order should not get saved
If the available or unrestricted qty is 5 then if a sales order comes for 6 or more qty the availabilty popup appears as the confirmation is for 5 only
But the client requirement is in such case even by default the order should not get saved by the users
In this case if the order is 5 or less there is no problem
I have made config such that if the confirmed qty is zero the order will not get saved but it works for ZERO qty only
If the available qty is even 1 unit the order is getting saved against any no of order qty
Is it possible thro standards or user exits?
Requirement in a nut shell
If the confirmed qty is less than the order qty along with the Availabilty check popup the order should not be saved
Waiting for the valuable inputs from all
Regards
Raja
hi
Hope this logic may work or not just check
at the time of saving a order in the user exit
If VBEP-WMENG equals(EQ) or < less than VBEP-WMENG
then sales order should not save
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
i am sure with your expertise you know how to do this via an exit.. i guess your question is whether we can do this through standard config.. if yes, the answer is no, you cannot achieve your requirement through standards
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Raj
Thanks for your input and the inputs from all
The reason for throwing this qn in SDN was to know whether soln is there in customization for my requirement and to have the best opinion from you all (best user exit)
All these days i was under the impression that an order with confirmed qty zero in schedule lines will get saved and there is no way to control the same in standard
But Recently thro the inputs from lot of friends like you in SDN i came to know that we can customize an order with confirmed qty zero in schedule cannot allowed to be saved (if we want)
Like that i was looking for any remote possiblity and my problem is solved thro USER EXIT thro our ABAPer and out of the replies that has come that the solution given by Mr.Sivanand seems to the best one according to me
Thanks to all
Regards
Raja
You can try with sale order User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT. you may be requiring during saving the document. I have once used in my scenario.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try with user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ.
The logic could be VBEP-BMENG is less than VBEP-WMENG, then dont save the order (or provide hard error).
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
For this the system has to carry availablility check.
When the sales order is entered, consider that the sales order quantity is X. Availabililty of the material in that plant is Y. Since the order is not saved, system will not pass the values into the DB tables.
So in the SAVE_DOCUMENT_PREPARE user exit in MV45AFZZ, you will have to write a code, In the code put a logic that if X > Y donot save the sales doc.
By doing so you will be able to save only when X <= Y.
Explain the requirement to the ABAPer. He will code it for you.
Regards,
Sivanand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the user exit USEREXIT_CHECK_VBAP in Include MV45AFZB (SE38) to check the material availability at order line level when any filed is changed at line level.
Use the user exit USEREXIT_CHECK_VBAP in Include MV45AFZZ (SE38) to update the entered materials (Material Type: ZW01) in ZSD009_001 at save order.
USEREXIT_CHECK_VBAP in Include MV45AFZB (SE38)
when user entered the material it uses the MV45AFZB user exit where i used this RV45A structure where it keeps the material details of the sales order. in the same time we wrote the material to a table and the quantity. didn't confirm the qty.
when user save the order MV45AFZZ (SE38) and confirm the material quantity. in the table.
You can try using the function module to reconfirm the schedule lines
SD_BACKORDER_CHECK_AND_SAVE
Regards,
Anbu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try with sale order User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT
thanks
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.