cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order Against Contract

former_member212740
Participant
0 Kudos

Hi,

When we create Sales Order with reference to Contract and if Qty exceeded in Sales order against the Contract qty, system is giving warning message as under -

Target qty of reference: 1.000 TO (total referenced: 2.000 TO) Message no. V1501

We want to convert this warning message in error message.

Please inform how can we convert the message in error.

Regards,

Vinay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Its very normal that you can enter order quantity more than the reference contract quantity flowing from the contract.

Additionally its not recommended that you change the standard SAP standard messages from warning to error etc.

Better you should go for an exit. Use following details:

Goto SE38 & enter include MV45AFZZ

Then goto user exit "USEREXIT_SAVE_DOCUMENT". In this you should tell your ABAPer to write code such that it compare the previuosly refered quantity & hence does not allow to enter quantity more that that in contract. You will get error message while saving the document & system will thus prevent extra entry of quantity in sales order.

Hope this solves your requirement

Regards,

Dhananjay

former_member212740
Participant
0 Kudos

Dear Dhananjay,

We have applied this User exit and it is working fine.

Thanks for your help and Guidance.

Regards,

Vinay

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

V S

Hi

V S

Go to Tcode VTAA and select yr doc type and target doc and check the following in the item categoty of yr contract.

Copying requirements 301

DataT 151 General item data

DataT 102 Bus.data/item compl.

Pos./neg. quantity +

Copy quantity

Hope this can help you.

Thx.

former_member212740
Participant
0 Kudos

Dear Dwarkesh,

As per your message i have mentained the setting now i am getting error as below

'+' or '-' only allowed in connection with completion rule for item cat.

Further, please advise what values to be maiintained in the following field -

3rd Tab of DATAT

FPLA

Whether active the check box for Copy schedule lines

Former Member
0 Kudos

Hi

v s

Please check

DataT 002 Partner item

VEDA 000

FPLA 251 Conditions

Thx.