on 03-02-2016 4:55 PM
Hi Experts,
I am using free project numbering within a range (not using coding mask)
I have a validation restricting my project code between a range 0070000000 - 0079999999
however its allowing me to create project with code eg, 007001 . Its not allowing 008 or any other series though, which is good.
I want to make sure the project code is always 10 character long. How do I have it with validation?
Thanks,
Krishna
Hi Krishna,
Try to create a set in GS01 for PROJ-PSPID and giving that range.
Next you validate PROJ-PSPID IN <set name>
Thanks,
Paulo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paulo,
Tried both, unfortunately it still allows me to create project 007002,0071 etc.
can we write some code to just say project length = 10? that along with the range validation should work I think..
Thanks for you time. Let me know if you think of any options of if am missing anything..
Regards,
Krishna
You always need to be careful when checking PS id's because most of them have conversion routines assigned to the fields so what is in the database and what the validation is checking is not exactly what you are seeing.
PSPID has conversion roingutine ABPSN assigned to it. Run the validation in debug mode and see what is actually being checked. Then you'll know what to change.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.