Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make all fields mandatory in sales order T- code VA11 initial screen and line item

former_member381412
Participant
0 Kudos

Dear All,

How to make Sales Office field mandatory in VA11 initial screen? I mean in the first screen where we enter the document type and the sales area?


The fields are

Sales Organization

Distribution Channel

Division

Sales Office

Sales Group

And i want to set a mandatory field storage location also in line item it is possible ??? give me idea step by step how to do it.

Regards,

Richa

1 ACCEPTED SOLUTION

Chintu6august
Contributor
0 Kudos

Hi,

it can be done through customization

SHD0-- > enter tcode VA11 --> press F5--- > Give the Enquiry type (IN)--- > give the details  Sales Org, Division, Distribution channel-- >

Press Enter-- > will get the fields with options.

check the required .

thanks!!

10 REPLIES 10

Chintu6august
Contributor
0 Kudos

Hi,

it can be done through customization

SHD0-- > enter tcode VA11 --> press F5--- > Give the Enquiry type (IN)--- > give the details  Sales Org, Division, Distribution channel-- >

Press Enter-- > will get the fields with options.

check the required .

thanks!!

0 Kudos

Dear Chintu,

Thanks for the quick response.

I am try to this process but not working as per select Mandatory field

0 Kudos

Hi,

Required means mandatory.. There ia a check box to make field required.

0 Kudos

Dear Chintu,

Thanks for the response...!!

main screen i have set mandatory and working fine but same process we try to set item level but not working please help.

we try to set mandatory Storage Location in Sales Tab item level

Thanks

Regards,

Richa

0 Kudos

Hi,

you can achieve this by doing enhancement as well..

USEREXIT_SAVE_DOCUMENT in MV45AFZZ is relevant for this. it triggers after the document is saved. you can check whether the storage location is blank or not, if storage location is blank  throw the error message.

thanks!!

0 Kudos

Better use USEREXIT_SAVE_DOCUMENT_PREPARE, usage of USEREXIT_SAVE_DOCUMENT for check and modificaiton can (and has) raise errors (dump or inconsistencies)


Regards,

Raymond

0 Kudos

thanks sir!!

Lakshmipathi
Active Contributor
0 Kudos

Couple of simple and straight forward solutions are there and not sure, whether you have explored those

  • Set this field mandatory to Customer Master Account Group, so that whenever, user execute VA11, automatically, system would fetch from master data
  • Set in-completion log by adding VKBUR to VBAK and add this to your document type
  • Create a variant in shd0 and assign this variant to document type

With the above three options, you can not only avoid unnecessary customization but also, it is a Best Practice.  Better consult with your Functional Consultant before going for any customization

G. Lakshmipathi

0 Kudos

Dear Lakshimipathi,

Thanks for the response,

main screen working but we have set in  Sale Tab & Item Overview field Batch, Storage Location mandatory but i am not able.

0 Kudos

Hi Richa,

You can definitely do this by the process of Incomplete log using T-Code OVA2. or check the link

Also if you have to have achieve this using coding check the form USEREXIT_FIELD_MODIFICATION of user exit MV45AFZZ.

Hope this helps.