cancel
Showing results for 
Search instead for 
Did you mean: 

Standard SAP Warning Message.

deven_rathi
Explorer
0 Kudos

Hi,

In standard SAP when you create order more than quantity available on the contract it pop up warning message below:

Target qty of reference: XX STN (total referenced: XX STN)

Message no. V1501

After this SAP allow you to create the order with more quantity actually available on the contract.

I want this to warning message convert error message and it should not allow to create order further.

Any idea on this, please reply.

Thanks

Dev

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

This can be achieved through Copy Control settings VTAA. At header Level , select the Check box Complete Reference.

Now while adding more quantity in the Sales Order , system will throw an error.

Best Regards,

Ankur

deven_rathi
Explorer
0 Kudos

Hi Ankur,

Thanks for your reply.

Sorry but your suggestion did not work. When you check Complete reference in Copy control SAP will disable field quantity in item selection screen when you create order with reference to contract but when u go to sales order you can still increase quantity and create order without any error message.

I think this will require ABAP change.

Regards

Dev

Former Member
0 Kudos

Hi,

Yes, you are right as it will just show a warning message.

In case of error , go to program V45EF0V_VBEP-WMENG_PRUEFEN_VO & FV45PF0V_VBAP-ZMENG_PRUEFEN_VO to change it to error.

Best Regards,

Ankur

Former Member
0 Kudos

Dev,

Do not change any STANDARD SAP Code.. instead, build your own logic in MV45AFZZ or MV45AFZB.

Regards,

Raghu.

Former Member
0 Kudos

Dear Dev_SD

For SD SAP has given customization of error to warning messages and vice versa in 2 ---T codes

OVAH all Sales related messages message type is V4

OVM1 all distribution related messages message type is VL

If your message is there in these two lists ( T codes ) then you can do whatever you want

Nothing will happen as they are meant for purely customization

If your message does not fall in these two lists ( T codes ) like message type V1

Then with the help of ABAPer thro SE91 T code can be changed

change the message to warning from error .

Go to SE91 and the following:-

u2022 input V1 in Message Class

u2022 input 061 in Number and execute.

u2022 select the message number and click on "Where-Used List" (press Cntrl + Shift + F3)

u2022 Deselect all boxes excepting "Programs"

u2022 List of programs will be displayed where this error message is used

u2022 Double click on the description in right side of the screen

u2022 You can see the coding written for the error message as E061 which may be changed to W061.

This is not recommended by SAP

and It requires an access key (generally Abider will not change this settings)

Regards

Raghu.K

Former Member
0 Kudos

Hi,

You can't change it to error..only V3 or V4(don't remember which one) messages can be changed to error in tcode OVAH.

You can put an error message by your own logic using user exit in MV45AFZ* programs.

Regards,

Raghu.