cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent saving orders without single material

shaktiprasad_dash
Participant
0 Kudos

Hi Experts,

My orders & quotations without material at double line entry get saved & I want incompletion of orders and quotations if material field MABNR is not available in orders and quotations at double line entry screen.

So I entered MABNR field in item incompletion  procedure with field status group 06 & incompletion screen PKAU but still orders get saved without any material.

I think I have to change field status groups and incompletions screen after which we can  prevent orders being saved without material.

So please suggest How I can prevent orders wtihout material through incompletion.

Thanks & Regards,
Shaktiprasad Dash

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Try this:

Add VBEP-VBELN into your SO header incompletion procedure.

Tick in VOV8 incomple. message.

Let me know if this works.

0 Kudos

Hi,

What good is a SO without a material in it?

This is an issue of simply maintaining discipline while creating the SO, so you just need to educate your user accordingly.

Regards,

Wilson

suman_sardar2
Active Contributor
0 Kudos

Hi Dash,

Fully agree with Wilson...Now can you tell me if your sales order is not filled up by Material then what is your Item category?

Is it TATX Text Item?

What is the importance of maintaining of additional codification in the standard program for this issue?

Thanks,

Suman

reazuddin_md
Active Contributor
0 Kudos

HI,

Issue:  Material field is mandatory during order creation.

Sol1:- Customize In-completion log procedure @ Header level -

WONT WORK - Because, you can include VBAP-MATNR in incompletion procedure, but system failed to understand the screen. Tx:OVA2,  you will have screens applicable to only header level, where as VBAP-MATNR is @ Item level.

Sol2:- Customize In-completion log procedure @ Item level

WONT WORK - Because if you maintain VBAP-MATNR in incompletion procedure this check triggers only when any field enters at item level.

Sol3:- Transaction/Screen variant (SHD0)

WONT WORK - Because you can make VBAP-MATNR or RV45A-MABNR as "required" field. Then system sets all the limited line items as mandatory. (As i understood, you need atleast one line item is mandatory)

Hence, I suggest you to write a piece of code in such a way that for the relevant document types atleast one line item has to available to save the order.

Code can be inserted in Program: MV45AFZZ ( FORM USEREXIT_SAVE_DOCUMENT).

Regards,

Reazuddin MD

Former Member
0 Kudos

Hi

To avoid saving the sales order without any material, you can do the below settings:

1. Goto Define Incompleteness Procedure  > Sales - Item > Your procedure eg. 20 Standard item > Add Table - VBAP; Fld Name - MATNR and your status group

2. Goto Assign Incompleteness Procedure > Assign Procedures to the Item Categories > Here assign Your procedure to the respective Item Categories

Hope it solves your query.

shaktiprasad_dash
Participant
0 Kudos

Hi S Kumar,

I did all these configurations but still system is creating orders without any material.

Best Regards,

Shaktiprasad Dash

shaktiprasad_dash
Participant
0 Kudos

Hi All,

I think I am missing the status groups, Screen sequence groups. Please suggest the correct screen sequence groups.

Best Regards,

Shaktiprasad Dash

Former Member
0 Kudos

Hi

In VOV8, under Transaction flow tab > Tick the Incomplete messages - It will not allow to save the document unless you maintain the incomplete fields.

Or else you need to check the transaction variant assigned in SHD0 transaction.

Thanks

former_member184065
Active Contributor
0 Kudos

Hi,

Prevent saving orders without single material

Actually if maintain below settings in Incompetion Procedure, without Material, Sales Order doesn't Save.I don't know what do you mean by Without Single Material (or Without Material)

I think,Please Check once again,

Table Name -VBAP

Field Name -MABNR

Screen Filed -MATNR

And also see One Field "Incompletion Procedure" in VOV8.

Thanks,

Naren

shaktiprasad_dash
Participant
0 Kudos

Hi Naren,

I also have entered MATNR. But still system is creating orders without numbers.

Best Regards,

Shaktiprasad Dash

shaktiprasad_dash
Participant
0 Kudos

Hi Naren,

I also have entered MATNR. But still system is creating orders without any material.

Best Regards,

Shaktiprasad Dash

former_member184065
Active Contributor
0 Kudos

Hi,

I don't know ,what happened but if you maintain correct configuration ,you will definitely get Incompletion message.If you don't mind check below link and observe where you did mistakes.

I think,you did mistake in Incompleteion Control:Status Group.The below link only for reference.

http://www.learnsaptips.com/2012/05/incompletion-procedure-in-sap.html

Thanks,

Naren

prasanna_kumar4
Active Contributor
0 Kudos

Hi

Try with User exit

SE38 : MV45AFZZ

User Exit : FORM USEREXIT_SAVE_DOCUMENT_PREPARE

if sy-tcode = 'VA01'.

if xvbap-matnr is initial.

message 'Enter the Material ' type 'E'.

endif.

ENDIF.