on 11-15-2015 8:16 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Himanshu,
You always have an option for ABAP user exit that returns TRUE/FALSE as a boolean function.
Another idea is that you can add following statement AND PROJ-PSPID :9-9: = "".
And it would be better to validate not just from 9 to 9, but from 9 to max length (that depends on your coding mask).
Regards,
Paulo
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.