+ All Categories
Home > Documents > Validations in Project System SAP

Validations in Project System SAP

Date post: 17-Jul-2016
Category:
Upload: majid-d
View: 35 times
Download: 3 times
Share this document with a friend
Description:
A guide for writing validations in SAP PS containing some examples
16
Writing Validations in Project System created by Chanabasappa Kallapur on Nov 14, 2013 7:30 AM, last modified by Chanabasappa Kallapur on Nov 14, 2013 10:09 AM Version 1 Tweet Writing Validations in SAP Project System This document will help to understand how to write validations for Projects / WBS Elements. In few cases the requirement would be to restrict certain things based on some other parameters while creating projects in SAP PS. To achieve this, SAP has provided option to write our own validations. In this document we can see sample case with example end to end. Contents 1. Case: Validate Project Definition with Project Profile 1.1 Creating Validation 1.2 Creating step 1.2.1 Defining Prerequisite 1.2.2 Check 1.2.3 Message 2. Defining Messages 3. Assigning Project Validation to Project profile 4. Testing the validation 1. Case: Validate Project Definition with Project Profile First 4 characters of project definitions should be common for all the projects which were created using project profile ‘XXXX’ In this case the requirement is whenever we are using project profile ‘HMCL001’ the first 4 characters of project definition should starts with HMCL. Follow the path:
Transcript
Page 1: Validations in Project System SAP

Writing Validations in Project Systemcreated by Chanabasappa Kallapur on Nov 14, 2013 7:30 AM, last modified by Chanabasappa Kallapur on Nov 14, 2013 10:09 AMVersion 1Tweet

Writing Validations in SAP Project System This document will help to understand how to write validations for Projects / WBS Elements.In few cases the requirement would be to restrict certain things based on some other parameters while creating projects in SAP PS. To achieve this, SAP has provided option to write our own validations. In this document we can see sample case with example end to end.  Contents 1.       Case: Validate Project Definition with Project Profile1.1     Creating Validation1.2     Creating step1.2.1  Defining Prerequisite1.2.2  Check1.2.3  Message2.       Defining Messages3.      Assigning Project Validation to Project profile4.      Testing the validation   1.     Case: Validate Project Definition with Project Profile First 4 characters of project definitions should be common for all the projects which were created using project profile ‘XXXX’ In this case the requirement is whenever we are using project profile ‘HMCL001’ the first 4 characters of project definition should starts with HMCL.Follow the path: 

Page 2: Validations in Project System SAP

SPRO >> Project System >> Structures >> Operative Structures >> Work Breakdown Structure (WBS) >> Maintain Validations (OPSI)

  After execution, select the ‘Project Definition’ node and click on Validation icon as shown. 1.1 Creating Validation:

Page 3: Validations in Project System SAP

  1.2 Creating step:Click on Step icon to create step for the validation

Enter the description for Step

 1.2.1 Defining Prerequisite 

Page 4: Validations in Project System SAP

Select Prerequisite to define on what parameters system should carry this validation

Select the project profile by double clicking on it.

Page 5: Validations in Project System SAP

 Project profile = select ‘constant’ and enter the required project profile… in this case Project profile is ‘HMCL001’.

  1.2.2 Check: Now we need to define against the above prerequisite what should be the validation.In this case we want to check the first 4 characters of project definition. 

Page 7: Validations in Project System SAP

Click on Constant icon to enter the first 4 characters of project definition.

 1.2.3 Message

Page 8: Validations in Project System SAP

You can define the required message using transaction SE91 by entering message class; in this case the message class is ‘/ISDFPS/MISC’ as below.          2. Defining Massage: 

Page 9: Validations in Project System SAP

If you want to give additional information to user about the error, remove the ‘Self-explanatory’ check box and click on Long text icon to enter additional information. 

Page 11: Validations in Project System SAP

3. Assigning Project Validation to Project profile

 After entering Validation, need to select ‘Automatic Validation’ check box.  4 Testing the validation

Page 12: Validations in Project System SAP

 Project Definition as GMENP114 using project profile ‘HMCL001’. In this case, first 4 characters of the project definition were supposed to be HMCL, but we are using wrong combination. So we can expect error here.

Page 15: Validations in Project System SAP

While saving the project, system will validate the project definition with project profile and throws the error as below.

So now system is giving error while saving project, it means the validation is working correctly.


Recommended