Ansicht
Dokumentation

RPRAPA00 - Create/Change/Block Vendor Master Records from HR Master Records

RPRAPA00 - Create/Change/Block Vendor Master Records from HR Master Records

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Description

From the HR master data, this program generates a batch input session for maintaining person-related vendor master records.

The report can process vendor master records as follows:

  • Initial set up (create/add missing company code segment)
  • Update (change completely according to vendor and HR reference)
  • Change (only according to HR master data, for example, name change)
  • Block

The following infotypes from HR master data are taken into account for the key date specified:

  • Tasks ,,(Infotype 0000)
  • Organizational assignment,,(Infotype 0001)
  • Personal data ,,(Infotype 0002)
  • Permanent residence ,,(Infotype 0006, subtype 1)
  • Bank details ,,(Infotype 0009, subtype 0 or 2)

All other required data is taken from a reference vendor that you can specify as a parameter when you start the program. Note that for the reference vendor, reference data must exist for all company codes that are applicable according to the HR master data. Since program RPRAPA00 cannot assign vendor master record numbers externally when creating vendor master records, you must be sure that the reference vendor is assigned to an account group that requires internal number assignment. If no house bank is specified in the reference vendor, this is determined via feature TRVHB (Implementation Guide for 'Travel Expenses' -> Transfer to Data Medium Exchange -> Set Up Feature for Determining House Bank) according to the employee's organizational situation.

The relationship between the HR employee master record and the corresponding vendor master record is established by entering the personnel number in the company code segment of the vendor master record.

General Program Flow

Program RPRAPA00 creates a sequential work file in the specified directory. Ensure that you use a global directory that can be accessed by all application servers; a directory is automatically proposed. The work file is then transformed into a batch input session by the subsequent program RFBIKR00, which is started automatically.

In test run mode, this program delivers information messages that document the creation of the batch input session. Since each information message must be confirmed manually, the test run should only be performed for a small number of personnel numbers.

In update mode, however, the program RFBIKR00 is automatically started as a job; the information mentioned above is stored in the job log in this case.

The 'Run as Background Job' indicator provides the option to create and save variants of the program on non-batch-capable servers also. However, you must not select this indicator for this purpose. For more information, see SAP Note 1309755.

Initial Setup of Vendor Master Records

Corresponding vendor master records are created from the infotypes listed above and the non-HR-specific information from the reference vendor. The personnel number is stored in the company code segment of the vendor master record. Persons who already have a vendor master record with corresponding personnel number are rejected in this run.

If a vendor master record already exists for a personnel number, but without a company code segment for the company code in which the employee exists at the key date entered, the program adds the required company code segment to the vendor master record. You must however activate the "Create new company code segment for existing vendor master records" checkbox.

The system uses HR master data from the infotype records that are valid for the key date entered.

Update of Vendor Master Records

The corresponding vendor master records are updated from the infotypes listed above and the non-HR-specific information from the reference vendor. Persons who do not yet have a vendor master record with corresponding personnel number are rejected in this run. The system uses HR master data from the infotype records that are valid for the key date entered.

Change Vendor Master Records According to HR Master Data

All HR-specific data is changed in the vendor master records for personnel numbers that have been changed in HR since the date recorded under '... with last change since'. The system again uses HR master data from the infotype records that are valid for the key date entered.

No Blocked/Deleted Vendors

When vendor master records are updated or changed according to HR master data, employees who are only assigned to blocked vendors or vendors that are flagged for deletion are skipped (if they are indicated with a checkmark). Otherwise, these vendors are also updated or changed and the block or deletion flag is removed.

Block Vendor Master Records

All vendor master records that correspond to the selected personnel numbers are blocked for posting.

User Exits

For the following situations, three empty routines that you can adjust to your requirements are provided in the includes RPRAPAEX and RPRAPAEX_001.

  • The employee's last name is entered in the sort field in the vendor master record. If you do not want this, you can program the situation you want in the user exit routine 'set_mc_field_by_user'.
  • If the address formatting in the vendor master record does not meet your requirements, it can also be changed. The user exit routine 'set_address_by_user' is provided for this purpose.
  • If you want to assign numbers to the vendor master records to be created via external number assignment (for example, vendor master record number = personnel number), you can adjust the user exit routine 'SET_VENDOR_NO_BY_USER' (in include RPRAPAEX_001). Note that the account group of the reference vendor must also be coded with external number assignment.

Note that in each case a thorough knowledge of the programming language ABAP/4 is necessary.

Set Up Vendor Master Records in a Separate System

The distribution of personnel master data from a HR system to an FI system is a prerequisite for creating, changing, and blocking vendor master records.

In the section Master Data Distribution (link to separate HR chapter) of the ALE IMG, an explanation is given regarding how the FI system is supplied with the relevant employee data from the HR system.

In the FI system, report RPRAPA00 described here can be used to create, change, and block vendor master records.

Output

Example

from the HR system.

In the FI system, report RPRAPA00 described here can be used to create, change, and block vendor master records.

Output

Example






TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.

Length: 7702 Date: 20240601 Time: 061523     sap01-206 ( 146 ms )