Skip to Content

Material Mandatory not showing at sales order level error

Hi Every one,

According to my client Requirement at the time of sale order creation material is mandatory , but i tried through Incompletion log

its showing material mandatory but the problem is after entered the material in one line item when i try to save the sales order

system is asking enter the material again ie one more line item

so i have avoid the that error and how to map into SAP system suppose to ask onetime material is mandatory

Can any one guide me how to solve the issue

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 05, 2011 at 11:08 AM

    Hi,

    You dont have to go through the incompletion log. In std SAP material is mandatory by default.

    Please check if you are entering and quantity in the 2nd line item and leaving material field blank.

    Regards,

    Amit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Prasanna kumar S

      Hi,

      Check if there is any code in User Exit for Sales Order i.e MV45AFZZ under save_document_prepare.

      Also, check material master if the material has been maintained for the plant and the sales org., distribution channel you are using.

      Regards,

      Amit

  • Jun 06, 2011 at 09:24 AM

    Hi

    Try USEREXIT_MOVE_FIELD_TO_VBAP in Include MV45AFZZ and write your own logic using implicit enhancement

    Regards

    Sanil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 06, 2011 at 09:32 AM

    Hi Prasanna,

    As Amit Suggested, in user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ, you need to add a small 2 liner code telling the system that if VBAP-MATRN is blank then give an error message.

    I had the same requirement and I have used it and it works perfectly fine for me. Let me know if you have any further questions.

    Regards,

    Rohan Gudavalli

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      As already suggested, you need to discuss with your ABAPer and ask him to use the user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ. In this user exit the code has to be written. It is a very simple 2liner code only which says that:

      If VBAP-MATNR is blank then give the error message "Material to be entered".

      Regards,

      Rohan Gudavalli.