cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order (Urgent)!

Former Member
0 Kudos

Hi Gurus,

I have come across with this requirement, which is as follows:

You can create and save a sale order with out having any of the line items in that order.

My requirement is that i should not be able to save the Sales Order if there is not line item in it.

I had explored the possibility of putting material field at incompletion log.But it did not work since with out entering material item category would not determine for incompletion to be active at the item categories.

Kindly suggest me how to go about it......

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use userexit USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ.

Here you can write the code as if material is not present then show erroe message.

This user exit gets executed just before saving the sales order.

This will surely solve your requirement.

Reward points if useful

Regards,

Amrish Purohit

Former Member
0 Kudos

Hi amrish,

Thanks for your input.

Points rewarded

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

use tcode SHD0 enter the tocde va01 and select the variant by pressing F4 there r system define variants .

Make the material field required /

Hope this will help

Former Member
0 Kudos

Hi

Try with transaction Variant <b>SHD0</b>

Former Member
0 Kudos

Hi shesagiri,

Thanks for your reply.

Could you send me step by step procedure of Transaction Variant...

my email id is vivekkeni@gmail.com.

Thanks...