on 2007 Mar 29 5:44 PM
Hello folks,
I have a requirement to make the sales document incomplete if the value of a condition type, (say ZY01) is 0. The value of this condition type is calculated using a condition value formula and is different from the net value.
We use the standard incompletion procedure 20 for the order item. My initial thought was to set the value of VBAP-PRSOK to blank if I found a 0 value in ZY01 in the user exit USEREXIT_SAVE_DOCUMENT_PREPARE. However I found that the system always automatically determines the value of VBAP-PRSOK and ignores my modification.
The condition type ZY01 is mandatory in the PP but this does not really help because I do not use condition records for this condition type.
Is there any way to over-ride the value of this field? For that matter, are there any user-exits to influence the results of the incompletion procedure?
Any useful information will be rewarded.
Looking forward to hearing from you.
Regards,
Balaji
Make this condition type as Mandatory in the Pricing Procedure.
If this works, this could be the easiest solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually found out the same a couple of hours back.
Making the condition type mandatory also checks for the 0 prices in a condition type. I am now left kicking myself and wondering how I missed it yesterday.
Thanks a lot to you all folks and sorry for having sent you on a wild goose chase.
Regards,
Balaji
Balaji,
The user exit USEREXIT_CHECK_VBAP and USEREXIT_CHECK_VBKD are specific to "checking completeness and consistency". Try using these to determine incompletion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the incompletion procedure 20 have you included the field and set the status correctly?
My thought is if this is done correctly then it should work.
regards
Biju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried your logic in "USEREXIT_MOVE_FIELD_TO_VBAP" in MV45AFZZ
By this place your value would have been detrmined and may be you can put your logic to redetermine the VBAP-PRSOK at this point to blank or non blank based on your requirement.
let me know if this works.
This is any way an interesting issue!!
regards
Biju
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
5 | |
5 | |
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.