Skip to Content
author's profile photo Former Member
Former Member

Validation for ProjID to Project profile

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2007 at 02:22 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2007 at 04:26 AM

    Hi,

    Try this:

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

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2007 at 04:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2007 at 09:14 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.