cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict adding line item(VA02) without reference to contract in sales order doc type having mandaory reference

Former Member
0 Kudos

Using standard please suggest a methodolgy which will prevent adding line item in a sales order (using t.code VA02) whose document type has mandatory reference.

In VA01 the sales document type is having mandatory reference and user creating sales order with reference.But by using VA02 the user is able to add items which are not referenced to contract.

Although the line items can be selected and assigned contract reference the requirement is to prevent creating such line items in VA02.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Prabhakar,

Yes,as per standard functionality it will always allow to make modifications in Sales order as they represent the confirmed orders whereas contract act as an agreement.

So in your case the required functionality can only be achieved  via customising in USEREXIT_SAVE_DOCUMENT_PREPARE in the program MV45AFZZ,

So tell your ABAPer to put the logic that

-> When creating the Sales Order  it checks the current document items & quantity with its referred contract .And in case of mismatch throws an error popup and don't allow to save.

Thanks

Vaibhav

siva_vasireddy2
Active Contributor
0 Kudos

Hi,

Hope this might also work

Copy controls---VTAA---Header Complete Reference.

venu_ch8
Active Contributor
0 Kudos

Dear 

Message was edited by: Jyoti Prakash

Don't post in all BOLD

Lakshmipathi
Active Contributor
0 Kudos

Through standard, it is not possible to achieve this reqiurement if this is user specific which can be controlled via authorisation to VA02.  Else, you need to try with USEREXIT_SAVE_DOCUMENT_PREPARE in the program MV45AFZZ

G. Lakshmipathi

Former Member
0 Kudos

Thanks for your prompt reply