cancel
Showing results for 
Search instead for 
Did you mean: 

Incompletion procedure

Former Member
0 Kudos

Hi All,

In the sales order how can we assign the incompletion procedure to the material field.The order being saved even if the material is not entered. The requirement is the sales order displays the warning message if material is not enterend. How can this be done?

Regards,

Ashima

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi Ashima,

You may want to take the help of your ABAP colleague to implement the code to check whether the Material number field is populated with data in the Sales order using the user-exit,

USEREXIT_SAVE_DOCUMENT_PREPARE

(User exit in the program MV45AFZZ)

*********************************************************************

(SAP's explanation for this user-exit usage)

Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.

The user exit is carried out at the beginning of the FORM

routine BELEG_SICHERN.

*********************************************************************

The check may be to see if there is data in the material field of the sales order under creation, VBAP-MATNR

If Yes, Save. Else, do not save but pop up a hard error (red), saying, Material number field not populated or similar

Please remember, there is no sales order number generated as yet, since this check takes place before the save during creation. You may need to fine tune the solution with the help of your ABAP colleague.

I hope this information helps you in your work.

Best Regards

Sitaraman

Former Member
0 Kudos

I have same requirement from the client. It seems only possibility is using the user exit.

Regards

Jey

Former Member
0 Kudos

The incompletion checks at item level will not be called if there is no line item in the order. Only the header level checks will take place.

The option available is to use exit MV45AFZZ for this. On document save you can write the code to check whether vbap is filled or not. If it is not filled then you can throw an error message.

Regards,

GSL.

jignesh_mehta3
Active Contributor
0 Kudos

Dear Ashima,

Do make Material compulsory in Sales Order follow this:

IMG - SD - Basic Functions - Log of Incomplete Items - Define Incompleteness Procedures - Select B - Sales - Item - Double click on Fields (on left side) - Enter Work area as 11 (Standard Order)

Go to New Entries & enter the following details:

Table - VBAP

Fld Name - MATNR

Put a tick mark in Warning check box.

Save & Back

Now check Check if your Incompletion Procedure (11) is assigned to your Sales Document Type Thru - IMG - SD - BF - Log of Incomplete Items - Assign Incompleteness Procedures - Assign procedures to the sales document types

Now try creating a Sales Order, system would give warning message if you dont enter material number. (You can also setr error message if required).

Hope the above helps.

Give points if useful...

Thanks,

Jignesh Mehta

Former Member
0 Kudos

In the Item category you will find some Incompletion Procedure assigned (VOV7).

You can create your new Incompletion Procedure also.

In clude the field "Net weight", which is a item specific data in your In completion Procedure.

Assign the In completion procedure to the Item category.

Activate the "Incompletion message" in the Sales document type (VOV8).

Now, it will not allow to process the sales order with out giving the Material & quantity.

Former Member
0 Kudos

Hi,

To do so:

Path:

SPRO --> IMG --> Sales and distribution --> Basic Functions --> Log of incomplete Items --> Define Incompleteness Procedures

Now, Select Group as 'B' - Sales - Items

and Click: "Procedures' (left-hand sub-tree)

Now select your Incompletion procedure for sales document.

as '20' - Standard Item.

NOTE: If you have defined your custom procedure then select accordingly and Click: 'Fields' (left-hand sub-tree).

Now here maintain entries in to the specific Colums:

*Table:

*Field Name:

Screen:

Status:

Warning: Check the box

Processing sequence of incompletion log:

*Table-Field Name: VBAP-MATNR (Pls get it confirmed).

Once done, Assign the Incompleteness Procedure:

SPRO --> IMG --> Sales and distribution --> Basic Functions --> Log of incomplete Items --> Assign Incompleteness Procedures --> Assign procedures to the sales document types

Hope this may help you some extent.

Best Regards,

Amit.

former_member204513
Active Contributor
0 Kudos

Dear Ashima,

I hope as per the standard system will give warrning message if you don't enter the material.But system will allow you to save.

Any how !

Do this for your requirement.

Please go to this IMG path do the Incompletion procedure configuration path is'

SPRO>IMG>Sales and Distribution>Basic Functions>Log of Incomplete Items-->Define Incompleteness Procedures here select

B -Sales - Item then click on procedures here you go to new entry define the new incompletion procedure then select that procedure click on fields now system will take you to the fields overview screen here you put table as VBAP and Field name MATNR then check warrning

Now you assign that procedure to itemcategory through this path

SPRO>IMG>Sales and Distribution>Basic Functions>Log of Incomplete Items>Assign Incompleteness Procedures>Assign procedures to the item categories

Now system will give the incompletion log (warrning message) If you don't enter the material in the sales order.

I hope it will help you,

Regards,

Murali.

Former Member
0 Kudos

Hi,

I have tried assigning the field MATNR in the incompletion log to the sales item. But still it does'nt work..

The sales order is saved even after the above setting..Probably the reason when the sales order gets saves without supplying the material could be that we assign the incompletion procedure to the item category and the category is only determine if we enter the material.So incompletion procedure does'nt work..

How to problem would be rectify?

Regards,

Ashima

Former Member
0 Kudos

You can try by adding the "Net weight " field in the Imcompletion procedure for the Item level. Field name "NTGEW" nad table name "VBAP".

I hope it will solve your problem.

Even if you actiavte the "Incompletion message" field in the Sales document type (VOV8) for your Sales document type now, iy will not allow the document to save without entering the Material number and quantity.

Former Member
0 Kudos

Hi,

go to VUA2 T.code u can find out all Incomplete procedure.

EXP-

Dialog message for incompletion

Indicates whether you can save an incomplete sales document.

Use

If you mark the field and then try to save a sales document in which information is missing, the system advises you that the document is incomplete. For certain types of document (for example, rush orders and complaints), you can leave the field blank.

I hope it will help full for u.

Regards,

venkataswamy.y