cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in Project Definition No Range

former_member213716
Participant
0 Kudos

Dear Expert,

I am creating a validation of project definition number range specific for a project profile but not get sucess.

Scenario is like this..i have a project profile Z000001 for which there is a number range of project code 1000 to 1999

i had created a validation as :-

Prerequisite :- PROJ-PROFL = 'Z000001'

Check :- ( ( PROJ-PSPID :4-7: >= '1813' ) AND ( PROJ-PSPID :4-7: < '2000' ) )

Project Code logic is XX/XXXX , ex PL/1814

But While creating Project Code system is giving the error massage in both right n wrong condition

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

PSPID & POSID both dont consider special characters.

PROJ - PSPID = "SN-001".

Here :1-6: means "SN001" for 1-5 & "0" for 6 as characters.

PRPS - POSID = "SN-001-CIV"

Here :1-6: means "SN001" for 1-5 & "C" for 6 as characters.

In Your case just try changing your check statement to.

Check :- ( ( PROJ-PSPID :3-6: >= '1813' ) AND ( PROJ-PSPID :3-6: < '1999' ) )

and update the test result.

Regards,

Pradeep

former_member213716
Participant
0 Kudos

Dear Experts thanks for your valuable suggestion, now my problem is resolved...

My requirement is met ..for Project number rangess FH/1813 to FH/1999 i had put the validation as shown below and it work..

Prerequisite :- Project Profile = 'ZPMI001'

Checks :- ( ( Project Def. :3-6: >= '1813' ) AND ( Project Def. :3-6: < '2000' ) )