Ansicht
Dokumentation

PYIN_P2E_VAL_01 - Maintain Attributes for Validation

PYIN_P2E_VAL_01 - Maintain Attributes for Validation

Vendor Master (General Section)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you define the validation attributes and the relevant backend processing that the system must perform for each attribute.

The attributes that you define here are displayed on the Define Validation screen of HR Policy Management application and the user can select the relevant attributes while defining validation step for a policy.

If required, you can define an attribute item as a folder and, under this folder, you can define a hierarchical structure containing sub folder(s) and validation attributes. For each validation attribute which is not a folder, you must also define a class and a method that the system uses to trigger relevant processing.

Note that, system supports hierarchical structure: for example, you can create a folder, inside this folder you can have a subfolder containing validation attribute.

  1. Select New Entries.
  2. Enter the unique attribute ID.
  3. Enter the attribute name and its short description. The system uses the text that you maintain here as the tool tip that appears for the validation attribute on the Define Validation screen.
  4. Select the validity period.
  5. Choose the attribute in Parent Node field, under which you want to create the validation attribute.
  6. Select Is Folder checkbox, if you want to make the validation attribute as a folder. If you select this checkbox, you must leave the Parent Node field blank. In case you want to create a sub folder under a folder, enter the folder ID in the Parent Node field.
  7. If required, select the action type and action reason for the validation attribute. Based on the type of validation, you must maintain the relevant action type and reason for action. For example, consider that you want to maintain the attribute for Transfer. In this case, you must select the Action Type as Transferand also select the relevant reason for this action.
  8. If required, specify the subtype for an attribute. Based on the type of validation, you must maintain the relevant subtype. For example, consider that you want to maintain validation attribute as Postal Code. You want the system to validate the postal code from employee's communication address. In this case, you must specify the relevant subtype of Address (0006) infotype to determine the postal code.
  9. Enter the data element corresponding to the validation attribute that you have maintained in Attr. ID field. Based on this, the system checks whether the validation attribute is of the type defined in the relevant data element. For example, if the validation attribute is Date of Birth, then the corresponding data element is DATUM, which is of type date. If you enter a value other than a date, system generates an error message.
  10. Enter the linked data element name, if required. Consider that you want to validate the percentage (75%) of an employee in a particular branch of study (BE Mechanical), in this case, you must enter the name of data element relevant for branch of study, in linked data element name field.
  11. Enter the relevant Class/ Interface Name and Method Name for the selected attribute. Based on this the system performs the relevant backend processing.
  12. Enter the relevant Search Help Name for the selected attribute. Based on this, the system displays the relevant values for the selected attribute in the drop-down list in Validation Detailssection on Define Validation screen of HR Policy Management application.
  13. Enter the relevant F4 Class Name and F4 Method Name for the selected attribute. Based on this the system displays the relevant values for the selected attribute in the drop-down list in Validation Details section on Define Validation screen of HR Policy Management application.

Note that if you enter values in both Search Help Name and F4 Class/ Method Name, the system considers the value in F4 Class/ Method Name field for fetching the drop-down list for a validation.

  1. Save your entries.

Note that, in case you are creating a validation attribute type as folder, then you must enter data only in the following fields:

  • Attribute ID
  • Description - Attribute Name
  • Short Description
  • Parent Node (only if you want to create attribute as second level folder)
  • Is Folder

For HR Policy Management application, consider that you want to create a validation attribute Employee Position.

Note that, before you create a validation attribute, you must have created class and method as described in Validation Attribute document provided by SAP via Note number <>. Once you have created the class and method, you must maintain the following values relevant for validation attribute, in this view:

  • Enter the unique attribute, such as EMPOS.
  • Enter the attribute name as Employee Position.
  • Enter the description as Validate Employee's Current Position. System uses the text that you maintain here as the tool tip that appears for the validation attribute on the Define Validation screen.
  • Select the Start and End Date.
  • Since you are not creating this attribute as a folder, do not maintain any values in Parent Node field and do not select the Is Folder checkbox.
  • Do not maintain the action type, action reason and subtype fields. This is because the validation attribute, Employee Position, does not have to validate any action or is a subtype dependent validation.
  • Specify the data element name as PLANSwhich, is of type Character string. Based on this the system checks whether the validation attribute is of the type defined in the relevant data element.
  • Enter the class name and method name which you have created for this validation attribute. Based on this, the system performs the relevant backend processing.
  • Enter the F4 class name and F4 method name which, you have created for this validation attribute. Based on this, the system displays the relevant values for the Employee Position validation attribute in the drop-down list in Validation Details section on Define Validation screen of HR Policy Management application.

Note that if you enter values in Search Help Name and F4 Class/ Method Name, the system will consider the value in F4 Class/ Method Name field for fetching the drop-down list.

  • Save your entries.






BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 8517 Date: 20240523 Time: 190004     sap01-206 ( 174 ms )