HRSEL Selective Test Environment SAP/HR
SySoft Gesellschaft für Systemberatung und Softwareentwicklung mbH Karlstr. 6 D-71409 Schwaikheim Phone +49 7195/9531-0 Fax +49 7195/9531-50 email info@sysoft.de Internet: www.sysoft.de |
| | | | | | | | | | | | | | | | | | | | | |
SySoft/HRSEL
© SySoft GmbH |
| | | | | | | | | | | | | | | | | | | | | |
Selective Test Environment SAP/HR R/3 for SAP Release 2.x/3.x and 4.x Release 1.0j Last update: June 2000 Changes and additions reserved All rights reserved by SySoft GmbH |
| | | | | | | | | | | | | | | | | | | | | |
1. System Description 1.1. Functioning 1.2. Data FlowSAP Ū is a registered trademark of SAP AG Walldorf/Germany
2. Hints for Installation 2.1 Delivery on Disks 2.1.1 Disk Structure 2.2 Installation of HRSEL using the CTS 2.3 Installation of HRSEL using the ABAP workbench 2.3.1 Definition of Table ZZPTS and Related Dynpro's 2.3.2 ABAP Setup/Import
3. Documentation of Components 3.1 ZSYSPTST Selection of Personal and Applicant's Data 3.1.1 Short Description 3.1.2 Repeated Execution 3.1.3 Defamiliarization 3.1.4 Selection Parameters 3.1.5 Table Entries in ATAB-Table ZZPTS 3.1.6 Use of Variants 3.1.7 Use of Tables 3.1.8 Export Problems 3.1.9 Execution Record ZSYSPTST
3.2 ZSYSPTSU Load Personal and Applicant's Data 3.2.1 Short Description 3.2.2 Repeated Execution 3.2.3 Selection Parameters 3.2.4 Use of Tables 3.2.5 Execution Record ZSYSPTSU
3.3 ZSYSPTSS Fill Table ZZPTS 3.3.1 Short Description 3.3.2 Selection Parameters
3.4 Deleting Personal Numbers Appendix Support - Userīs Comment
The HRSEL system offers consistent and selective transport of personal and applicant's data sets specified by tables between two SAP-systems (e.g. into the quality assurance system). This includes all core data and movements (accounting, time recording). It's possible to anonymize personal data to meet requirements of data protection.
Using cyclical data transport offers the advantage that test data in the production system is maintained by members of the personnel department. Thus you'll always have an up-to-date test environment for your own developments or changes made by SAP.
If you want to use HRSEL successfully ensure that source and target system are identically customized and have the same SAP and software release.
With this system you'll gain valuable security for personnel accounting.
Technically this package consists of ABAP/4 programs.
One program selects all relevant data of the source system, another moves them to the target system. Data that already exists in the target system which might collide with this transport is deleted before.
There is an additional program that enables you to clean up your test environment. It can remove selected personal and applicant's data from a client in a system.
This chapter describes installation for delivery of the HRSEL product on disks. There are two independent ways to proceed:
Hint: from SAP R/3 Release 3.x installation with the ABAP/4 workbench has to be done by a user who has got development rights (this can be attained by the SAP OSS system).
The disk is delivered in MS/DOS 1.44 MByte format. Itīs labelled HRSEL10 and contains the following directories:
All files of this directory can be imported by the standard upload function into the SAP system (transaction SE38 ABAP editor).
For security reasons you should only install the export and fill program in the source system and the import program in the target system.
This is no constraint but will prevent you from erroneous import or deletion.
2.2 Installation of HRSEL with the CTS
Here you must generally consider prerequisites for using the transport tool tp, in particular:
tp addtobuffer KWPKxxxxxx <SID> client=XXX
tp import KWPKxxxxxx <SID> client=XXX
tp connect <SID>
can be done with error code 0 and "everything OK".
2.3 Installation of HRSEL with the ABAP workbench
2.3.1 Definition of Table ZZPTS and Related Dynpro's
To ensure correct execution of the HRSEL product you may have to create the SAP ATAB table ZZPTS in the source system (data export) and the target system (only for deleting data).
In release 3.x this can be done as follows :
- Short text : table for HRSEL - Development class : $TMP - Delivery class: A - Tab. Maint. Allowed : X (activate)
Meanings of the fields:
CLIENT client, required by system (check field "Key") FUNKT field for personal number or special instructions This field has to be maintained always (check field "Key") BEMRK field available for individual purposes or comments NEUPERNR explicit new personal number if no internal defamiliarization is wanted NEUSTELL if planning is used you may enter a different position number to avoid identification by position numbers NEUPLANS s.a. NEUKOSTL s.a. NEUORGEH s.a.
Definition sample ZZPTS:
For SAP version 4.0x you must use the domain PERNR_D instead PERNR.
Please enter the following values for parameters that have to be provided
Save your entries.
Thus table ZZPTS is defined, and you can directly enter data there using transaction SM31. This can also be done by executing the ZSYSPTSS report.
To be able to use all features of the package all of the 3 ABAP's have to be created or imported.
To do so you have to execute the following steps for each of the programs :
- Short description: export program for HR data (ZSYSPTST) - import program for HR data (ZSYSPTSU) - fill program for table ZZPTS (ZSYSPTSS) - Type : 1 (online program) - Status : T (test) or P (Production) - Application : P (HR) - Logical Database: D$S (for ZSYSPTSU, ZSYSPTST) PNP (only for ZSYSPTSS)
Hint: For all parameters not mentioned above you may use the suggested default values.
3. Documentation of Components
3.1 ZSYSPTST Selection of Personal and Applicant's Data
The ABAP/4 programm ZSYSPTST extracts personal and applicant's data from a SAP system to import them to another SAP system later on using the ABAP/4 programm ZSYSPTSU. The programm is controlled by selection parameters. The client from which data is extracted can be replaced by another client (in the SAP target system) by simply starting import from this client. For data export you may also use different defamiliarization options. Basically all available data is selected for a distinct personal number.
Program execution can be repeated any time.
When defamiliarization is activated parts of the info types or PCLx clusters are changed by an internal algorithm so that no reference to any original person is left.
The following info types are currently supported:
For PCLx clusters the following cluster types are currently supported:
If you use your own info or cluster types or modified one of the listed info or cluster types and encounter problems please directly contact us. Basically all info and cluster types including customized ones are automatically selected.
The program ZSYSPTST is controlled by selection parameters that are offered to be set up when program execution starts.
selection screen ZSYSPTST:
The different selection parameters have the following meanings:
To mark defamiliarization the character 'N' is used by standard. If you want to use another sign for defamiliarization you only have to provide it as defamiliarization parameter.
The higher the value you provide for the test mode the more detail output will be created.
\usr\sap\<SID>\<instance>\work\<user name>
.
You may create different default values by creating variants for this report (see Chapter 3.1.6).
Warning : The import system needs access to the directiory containing the data file, otherwise no import of exported data is possible!
If you change the default value, please take care only to use names and files you have write permission for not to encounter errors because the file can't be created. This not only refers to operating system permissions (NT, UNIX,...) but also to the SAP permission object S_DATASET which must be used to grant sufficient rights for file access and reporting for the importing user.
3.1.5 Table Entries in ATAB-Table ZZPTS
Beispiel : 4711 55255
To exclude specific information (e.g. maternity regulations), that might give a clue to identify the person from being transported, the program can ignore info types. The info types that shall be ignored also have to be entered in ATAB table ZZPTS.
Example : - exclude transport for info types 0020 and 0021
SP01 IGNORE=0020
SP01 IGNORE=0021
- deactivate exclusion
SP01 IGNORE=
You can as well enter the personal number in column NEUPERNR in table ZZPTS, so that it will replace the calculated defamiliarization parameter.
Since a cyclical export of data should generally be run with identical selection parameters we recommend creation of one ore several variants for the export program.
These variants should contain parameters of all export users or of single export groups. This offers the advantage that all users use correct parameter adjustments for export and changes of guidelines only have to be done in the variant not for every single user.
Possible variants might be like :
The ABAP/4 programm ZSYSPTST uses the SAP standard tables PAxxxx/PBxxxx/TEVEN (xxxx = info type - R/3 Release 3.x) PCL1, PCL2, PCL3, PCL4 , PCL5, PD3xxxx, PDSNR, ASSOB and ASSHR.
If you should encounter problems using export with activated defamiliarization, please disable all defamiliarization possibilities and restart export. If there are no errors now, the problem is presumably related to defamiliarization (either an unknown, new or modified cluster). Please contact us and after consultation send us the generated export file for further analysis.
3.1.9 Execution Record ZSYSPTST
3.2 ZSYSPTSU Load Personal and Applicant's Data
The ABAP/4 program ZSYSPTSU is made to bring in again personal and applicant's data that have formerly been extracted by the programm ZSYSPTST.
To have an exact match of imported and exported data personal numbers of data which is to be imported are first deleted for consistency reasons.
Program execution can be repeated any time.
The program ZSYSPTSU is controlled by selection parameters which are offered at execution time.
Selection screen ZSYSPTSU
The different selection parameters have the following meanings:
example : TEST=0-9 import mode=0 test mode=1-9 (no import)
The file for reading data that has to be imported is by default expected to be found in the temporary SAP pool (\usr\sap\<SID>\<instance>\work) and must have the name of the executing SAP user. You may change path and name using variants (see also chapter 3.1.6).
Warning: The importing systgem needs access (and sufficient rights) to the directory from which data will be read for import, otherwise no import will be possible!
warning: The export system must have access to the directory from which the data file is to be read. Otherwise no import of the exported data is possible!
The ABAP/4 programm ZSYSPTSU uses the SAP standard tables PAxxxx/PBxxxx/TEVEN (xxxx = info type - R/3 Release 3.x) PCL1, PCL2, PCL3, PCL4, PCL5, PD3xxxx, PDSNR, ASSOB and ASSHR.
3.2.5 Execution Record ZSYSPTSU
This report can be used to fill personal numbers in table ZZPTS using HR standard selections.
The program ZSYSPTSS can be controlled by selection parameters that are offered by program call besides PNP standard selection.
Selection screen ZSYSPTSS:
The different selection parameters have the following meaning:
This parameter can be used to run the program in test mode thus only simulating generated entries in tabele ZZPTS.
This is un upper limit for the number of personal numbers that will be inserted in table ZZPTS.
If "append" is marked new entries are appended in table ZZPTS otherwise it's deleted first then updated with your new entries.
You can use SAP report RPUDELPN to delete personal numbers with all dependent data in
your quality ensurance system.
For further information refer to the documetation provided with
this report.
Appendix: Support - Userīs comment
In case you should encounter problems during installation or working with this product that canīt be fixed by consulting online documentation and error messages contact us as follows:
Please tell us about errors in this documentation and feel free to add suggestions for possible improvements.