on 12-31-2012 3:39 PM
Hi All,
i have written a validation for a requirement which states that the user if enters project name(first four characters)as URMX and the relevant plant only then the system will create the project.
otherwise it will give error " incorrect project name for project profile RMX"
the coding mask is as follows: urmx-00-00-000-X-00-X-00
where the "000" stands for plant.
for example the plant is 101.
pre-requisite if project profile= "RMX"
my code for validation is as follows in check is:
( Project Def. :1-4: = 'URMX' ) AND (Project Def. :9-11: = '101')
after which if i test and create project with name URMX-12-12-101. it is giving me the error " incorrect project name for project profile RMX"
where am i going wrong please help.
Hi Sara,
Thanks for your reply.
It somehow worked, when i checked and tested by hardcoding it.
Thanks!
Hi Kiran,
The system doesnot take into account the special characters so 9-11 would stand for plant rather than 12-14
Thanks!!
there is just one doubt, i have around 150 plants to include in this validation, if i harcode each one separating each hardcoded statement by 'OR'..for example
pre-requisite:
project profile= "RMX"
code:
( Project Def. :1-4: = 'URMX' ) AND (
Project Def. :9-11: = '101' OR Project Def. :9-11: = '102'
OR Project Def. :9-11: = '103' OR
Project Def. :9-11: = '104' OR Project Def. :9-11: = '105' OR
Project Def. :9-11: = '106' and so on )
the system doesnot let me include all 150 due to space restrictions. if i divide the validation into three steps, the system only takes up the first step and doesnot consider the second and third.
is there any simpler method to include all 150 plants into the validation?
why isnt the system not taking up the second and third step?
please help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, you have to create a SET ( GS01 transaction) and include this set in your validation
Example : You create a set ZPLANT ( and include your plants in the set) and your validation would be
( Project Def. :1-4: = 'URMX' ) AND (
Project Def. :9-11 IN ZPLANT)
after do that you need to regenerate report RGUGBR00 ( generate sets)
Regards,
Hi,
To validate the project profile with Plan in the project definition, why can't you put the Plant as default in project profile. by the way to have such validation I think you should break this in steps as
Step1 :- Project Profile is RMX then Project should start with URMX
Step 2 :- Project Profile is RMX check the charcters 9-11 as 101
Hope this work out.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi asha,
The coding mask is as follows: urmx-00-00-000-X-00-X-00
where the "000" stands for plant.
Small Miodification in the postion
pre-requisite if project profile= "RMX"
my code for validation is as follows in check is:
( Project Def. :1-4: = 'URMX' ) AND (Project Def. :12-14: = '101')
Regards
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Asha,
It seems that your validation is correct. Have you regenerated the validation?
You can do it executing report RGUGBR00 . If it continues without working, my advice:
1) Try to create the validation only for 1-4 position and hard coding the value URMX. When it works :
2) Include the validation for positions 9-11 , and hard code the value 101.
When it works you can enter variables values ( or more than 1 value for positions). In most cases the validation doesn't work because it is missing a character like "(" or ")".
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.