cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for ProjID to Project profile

Former Member
0 Kudos

I need to have a validation setup when a particular Project ID is used to create a project then such profiles to be validated.

This is what I have defined:

Prerequisite:

PROJ-PROFL = 'ZPS0001' OR

PROJ-PROFL = 'ZPS0002' - In this case these profiles were set for revenue

Check:

PROJ-PSPID = 'CS' - in this case CS is ProjID defined in Mask Coding for Sale Project

Message:

Blah blah...

I also tried with "*" for CS.

Check:

PROJ-PSPID = 'CS*'

so far NOT working. by the way I do have the validation name in both project profiles ZPS0001 and ZPS0002

Any help appreciate it and reward points for correct answer.

Tim

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for response.

I have tried with range of project number but still it does not produce any error.

this is what I check:

PROJ-PSPID :00000001-99999999: = 'CG'

Tim

Former Member
0 Kudos

only try with

PROJ-PSPID :01-02: = 'CG'

it will work if the customization is done properly in project profile

Regards

Murali

Former Member
0 Kudos

Murali,

I tested with your suggestion with no result.

Project profile is setup fine, because I have 4 validations are working no problem except this one which I tried and tried still not working out.

Could you explain to me what 01-02 in this scenario mean?

Thanks,

Tim

Former Member
0 Kudos

Hi,

Your Project Definition will begin with CS and depending on coding mask it may be CS-1234 for eg. When you define '01-02' the system reads only 1 & 2 ie first 2 positions in the Proj Defn / ID.

Hope this is ok.

Regards

Former Member
0 Kudos

Hi Tim

i fully agree with shrikanth, u will validate only the first two charecters of the project ID with this validation

regards

Murali

Former Member
0 Kudos

Update.

I guess the sandbox was not setup quite right so it did not work but when I tried in the Config client and it worked great.

Thanks for your help guys.

Tim

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Tim,

This will be possible by creating a new User exit for the validation because every time your project id will be changing and not possible to check this using boolean equations. Just get in touch with your abaper for creation of new user exit for the same or add in the available exits.

Hope this helps.

Former Member
0 Kudos

Hi Tim

U have to give the range of the Project Def, for which u r doing validation. This u can define using the button "FldComp." in the prerequisite / check - screen.

or try with the following code

Prerequisite:

PROJ-PROFL = 'ZPS0001' OR

PROJ-PROFL = 'ZPS0002'

Check:

<b>PROJ-PSPID :1-2: = 'CS'</b>

Message:

Blah blah...

Reward points if it works for you, or revert back

Regards

Murali

Former Member
0 Kudos

Hi,

Try this:

PROJ-PSPID :1-2: = 'CS'

Regards