cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order with no items should not be saved

Former Member
0 Kudos

Is there a possibility to keep users from saving a sales order with no items.


Sometimes when creating a standard order and after entering
the Sold-to party
the PO Number
and the Req. deliv.date
our users accidentally save the order without entering any items, thinking they already completed the order. (For example when they have to answer a call in the meantime)


Is there a customizing setting to not save the order when there are no items in it? Or to display an error message?


Thanks in advance

Jakob

Accepted Solutions (1)

Accepted Solutions (1)

former_member184771
Contributor
0 Kudos

Hi,

Explore in completion log process, can archive the same only you need to play at item level made few field mandatory in config of in completion log and without entering the value system will not allow the user to save the same.

Thanks

SS

Former Member
0 Kudos

Hello Summet Sah,

I am not quite sure what you mean. I already have an Incompletion procedure in place for the used item-category with the field VBAP-KWMENG being mandatory.

https://i.imgur.com/Xquebqs.png

It seems like the Incompletion procedure for the item-category is only used, when I enter at least one item. So it cannot be used for checking whether no item has been entered.

Kind Regadrs

Jakob

sez41
Active Contributor
0 Kudos

You are right. The only solution for your requirement seems coding as mentioned above.

former_member184771
Contributor
0 Kudos

Hi,

I already solved the similar requirement by using transaction VUA2, for your relevant sales order type, tick the IC-Dialog box (Dialog message for incomplete) and save. If you then process an order and it is incomplete, when you save - system will popup with incomplete log screen and wont allow saving until the incomplete data.

Hope this solve you issue.

Many Thanks.

Sumeet Sah

Former Member
0 Kudos

Hello Sumeet Sah,

thank you very much. I managed to get it to work by editing the Incompletion procedure for the standard order, using OVA2. The field I used is VBAK-FMBDAT since it only is filled when at least one item/material is added to the order.
https://i.imgur.com/JWRMSfe.png

I also ticked the IC-Dialog Box like you suggested.
https://i.imgur.com/QYjdkTl.png

I managed to get it to work without any coding.

Thanks again.

keyur_mistry1
Active Participant
0 Kudos

JAKOB,

I don't think so, by adding this field in in completion procedure you can achieve your requirement.

You requirement is not allow user to save sales order without entering any line item. (Okay Fine it will work here) But what about when user has enter the line item in sales order. that time this should not trigger. If still it wont trigger then can you tell me where I can find this (MBDAT - Material Staging/Availability Date) field at header level.

Please guide me. 

I don't want to disturb your correct answer but want to develop same functionality for my customer too. I develop the same but this is creating problem while entering line item too.

Former Member
0 Kudos

Hello Keyur,

I am not quite sure what you mean. Here is a screenshot of some test sales orders I created. The ones in red boxes are the ones without any items.

https://i.imgur.com/Sgr21hv.png

It is true that you cannot use the "Complete Data"-Button. Your users have to go back instead and enter the items on the initial screen.
https://i.imgur.com/woiWHHs.png

Kind Regards

Jakob

keyur_mistry1
Active Participant
0 Kudos

Jakob,

Better to close the discussion here. This is already answered and you get desired solution too. What problem I have, that I will post in separate question. I will check mine configuration.

Answers (3)

Answers (3)

stone_cold
Participant
0 Kudos

Hi,

How about if you apply screen variant on transaction level.

Maintain that variant in order type TVAK-VARIANT field so that it will be applicable to that order.

I have not tried yet it in the system due to limited access to sandbox.

Br,

Vishal

former_member233130
Active Participant
0 Kudos

Hi,

You can control this in delivery item configuration means whatever sales order is saved no delivery will be created without an item but for sales order coding  seems to be needed.

sez41
Active Contributor
0 Kudos

As far as I know there is no customizing setting for this. You can try to read xvbap in program Mv45afzz, form Userexit_save_document_prepare and raise an error message if no items are added.