cancel
Showing results for 
Search instead for 
Did you mean: 

Maintain Validation Rule

Former Member
0 Kudos

Hello ,

I want to create a validation rule that indicates that when we enter certain company codes in the creation of the project, the project can not be created.

It gives the message

'Creation of the project for the company code is not possible'

In the prerequisite i indicated

PROJ-VBUKR <> CC OR PROJ-VBUKR <> CC

In the check

PROJ-VBUKR = CC OR PROJ-VBUKR = CC

When creating the project , he let me to create the project.

Can anybody tell me what i am doing wrong?

Davy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Davy,

Before I could suggest what can be done for your problem. Let me inform you that your query can be handled in many different ways.

See the validation can be handled in many ways. But you should be clear on which particular field you need to compare with your company code. It may be PROJ-WERKS (Plant) or PROJ-VKOKR (Co Area) or PROJ-PROFL (Project Profile) etc. Meanwhile you can try following processes which may suit your requirements.

Process 1.

If you are sure that your company code is fixed. It is better to assign it on Project Profile via OPSA under Organization Tab. After that go to OPUJ Transaction and then Select PROJ-VBUKR and mark it as Display Only. Now when you will create your project and select your desired project profile then Company code will come as fixed as per OPSA and user wont change that company code.


Process 2.

If still you want to maintain validation. Then it is better to put a pre-requisite on Project Profile(PROFL) or Plant (WERKS). You may also include Co Area (VKOKR ) but that may be more prone to error and has less control which I feel


Process 3.

You can also maintain substitution. In pre-requisite maintain if PROJ-PROFL=< as per your project profile> and in substitution put PROJ-VBUKR  = < Your Company Code)

and dont forget to put validation or substitution in OPSA and mark it as automatic validation or substitution.

Please correct me if I didn't understood your problem.

Regards

Amit Rajoria

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello ,

Thread will be closed.

I have used the information from tbn tbn and it worked

Former Member
0 Kudos

Hello Davy,

Please try following validation.

Prerequisite

PROJ-VKOKR = 'Co Area'

Check

PROJ-VBUKR <> 'CompCode'

Regards

Rajiv Sharma