cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for project definition

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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.

former_member209919
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

Thank you so much,

My query is solved.

It worked perfectly

Thank you all for the help!

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member209919
Active Contributor
0 Kudos

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,