cancel
Showing results for 
Search instead for 
Did you mean: 

sales org specific error

former_member396676
Contributor
0 Kudos

Hi,

I have maintained "E" in OVAH for message no 115.(Purchase order number in document number: & already exists).

(Error- If user enters same PO no twice in sales order than System throws error).

It gives error in sales orders created for all Sales organization.

Requirement

Error should throw for orders created for only one sales organization.

Thanks,

Vrajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This is a common requirement. One approach is to adjust routine VBKD-BSTKD_PRUEFEN in program FV45KF0V_VBKD-BSTKD_PRUEFEN.

You can repair the routine or, if you have ECC6 you can use an "implicit enhancement" which doesn't require a repair (see here: http://www.sapdev.co.uk/enhance/eframework/ef_implicit.htm). Note: there's a missing step in that link - you must click the 'enhance' button in SE80. The button's icon looks like a spiral.

Add this code into VBKD-BSTKD_PRUEFEN right under the form declaration:

check vbak-vkorg = '1000'. (replace '1000' with the organization you want to check.)

Be careful - this will have the effect of completely disabling PO checks for all sales orgs other than 1000. If that's not what you want you will need to write the appropriate ABAP code...

Answers (1)

Answers (1)

Lakshmipathi
Active Contributor
0 Kudos
Error should throw for orders created for only one sales organization.

Either in your existing routine itself, you can add this logic or try with sale order exit in the program MV45AFZZ - USEREXIT_READ_DOCUMENT

thanks

G. Lakshmipathi