on 09-02-2013 9:22 AM
i created incomplete log for sales orders for material, order qty, shipping point, and plant , incomplete log works well for shipping point and plant but for material and order qty it doesn't work and it gives me document complete even thought there is no material in sales order
Dear,
Kindly be informed that in case if there's no input value against the Material at Item level, as per Stnd. behavior system will not gonna check the same for incompletion at item level and you can create Sale Order easily without having any item. Against your desired query, enhancement will be the best option which you can do in Include MV45AFZZ and FORM USEREXIT_SAVE_DOCUMENT_PREPARE, do apply the logic with the help of your ABAPER and set an Error msg on save. Hope it works. Do hit back with your findings. Have a good day ahead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Muhammad Gouda,
As suggested by Ammarah, The above requirement can better handled through enhancement in the UserExit MV45AFZZ and FORM USEREXIT_SAVE_DOCUMENT_PREPARE, ask your ABAPer to write a logic mentioned below.
if sy-tcode = 'VA01'.
and if xvbap-matnr is initial. then trigger the Error Message 'Enter the Material ' type 'E'.
Hope it will help you.
Regards,
Saher MD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muhammad,
Have you tried adding VBAK-NETWR in the Header Incompletion and see whether it works.
Regards,
Shashi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mohd. Gouda,
You can achieve this too via imcompletion procedure in OVA2, just do the settings for Sales - Item and select your Item as per the assigned Procedure, add the field MATNR in it, already KWMENG is there. Lemme know in case you need any further assistance in this. Thanks and ve a good day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muhammad,
At header level Quantity is not required.
In sales order header data you will not find quantity hence it is of no use putting this in Incompleteness procedure for header level.
Now the logic is...
Incompleteness procedure is different for header and item
Header level Incompleteness procedure is assigned to Document type and
Item level Incompleteness procedure is assigned to Item Category,
Since Item category is determined (see Item category determination) in a sales order after you enter material master. Hence material can also not be a part of Incompleteness procedure for item level.
Hence your item level in-completion log will only be activated once you enter Material code in the sales order. Else it will always say sales order complete..
So please.
1. Remove Order Quantity from Header level.
3. Create a sales order and enter Material master and check in-completion log.
If you want material master to be mandatory in sales order. You can do it by User Exit.
Hi,
As per screen shot Header level
VBAP-KWMENG
VBAP-MATNR
why you mentioned Item fields in Header level?
try to remove these above mentioned two fields in header level and make sure that available in item level,so that it will check only in item level
Hope it will resolve your issue.
Regards,
Krishna.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
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.