on 03-18-2011 5:52 AM
Hi Expert,
i am doing a project, where project no is including the plant code and user want to identify the plant from project definition and also want to avoid the wrong plant entry through validation,
Project definition code is like X / XXXXX : XXXXXXXXXXXXXXXX , Here 3rd to 6th character (4 character) is the plant code.
i want to create the validation which match the 3rd to 6th character of project definition with the plant code enter while creating project definition and if it will match then only allow to save else give error that plant code is entered wrong.
Pls suggest hoe to create the validation to compare the character with plant code..
rgds
rkp
In tocde OPSI create a new validation (say ABCD) for Project Definition. Click on Step and name the step as per your requirement. Then create the prerequisite, check and the error message to be displayed if the validation fails. Do not forget to assign the Validation in Project profile. Tick the check box for automatic validation. This will trigger the validation when the project is being saved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried simulating your requirement but it seems that it will work only for a particular project definition and will not be coding mask specific. Due to time constraints i am not able to explore more on this. Why don't you check if you can use some other criteria (e.g. Project Profile etc.) to build up a validation for having the correct plant?
Edited by: Gokul Pillai on Mar 18, 2011 2:26 PM
I am trying for a validation but its nt wrking
Prerequisite
PROJ-PROFL = 'ZPCE001'
Checks
Project Def. :3-6: = Profit Center
Message (If Prerequisite is met & check not fulfilled)
Project Code is not matching with Profit Center.
Input Given
Project definition - PC / 2002
Profit Center - 2002
here condition match but system is giving error..
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.