Skip to Content

How to measure Project Definition (PSPID) length in PS Validation

Dear Experts,

I got stuck in a different type of validation problem. Here is my problem scenario -

My project Coding mask is A-XXXXXXX-00-00-00-00.

when a user is create a project and He/She enter A-121 project definition created with A-121 and this is not business need.

Project definition should be in this format A-EXAMPLE after A- theres should be 7 character.

Any one can help me through this case so I can prevent the user to not create a project definition which not follow coding mask.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 15, 2015 at 10:09 AM

    Hi Himanshu,

    Please try to check that your substring from 2 to 8 belongs to the set defined as a range from "0000000" to "ZZZZZZZ".  I hope that is possible without boolean user exit.

    And do not forget to share the code... 😊

    Regards,

    Paulo

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 16, 2015 at 09:55 AM

    Hi Himanshu,

    first of all you should check if you activated EDIT in special character in project number (OPSK).

    now as per validation you can check for combinations.

    thanks

    Sunil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 16, 2015 at 12:57 PM

    Dear Himanshu,

    You can restrict user to create any project with the defined project coding mask only.

    Go to t code OPSK . There are two check boxes available - SL and Edit.

    just tick mark in both boxes, save and test. This will fulfill your requirement completely.

    Let me know if any further help requires.

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Ankit,

      Thanks for replying, I already used shared method here mail problem is coding mask.

      If you use coding mask Z-0000  and enter z-1 in project definition system will automatically convert into Z-0001 but in case of alphanumeric its different e.g. If you use coding mask Z-XXXX and you enter Z-1 in project definition system will pick Z-1 it is not convert to mask, and in my business case alphanumeric is need.

      Thanks