Ansicht
Dokumentation

RPUSTD00 - Transfer Master Data

RPUSTD00 - Transfer Master Data

PERFORM Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Description

You can use report RPUSTD00 to transfer master data from your old HR system.

The dataset to be transferred must be stored in a sequential file. The file is stored under the name specified in the "logical file name" field (for more information on logical file names, read the IMG section entitled Additional client-dependent file name maintenance).

The report reads this dataset and creates a batch input session for transaction PA30.

The data description of your old record is defined according to the structure HRDATASET. If this structure does not meet your requirements, create the structure CI_HRDATAS in the ABAP Dictionary. In this structure, you can store the infotype fields to which data should be transferred. Make the necessary changes in RPUSTD00.

Requirements

Output

Example

If the include CI_HRADATAS contains the field F1 which is to be assigned to the infotype nnnn, add the following ABAP statements to FORM Dnnnn:

CLEAR BDCDATA.
BDCDATA-FNAM = 'Pnnnn-F1'.
BDCDATA-FVAL = SATZ-F1.
APPEND BDCDATA.

If the FORM Dnnnn does not exist for your infotype nnnn, copy FORM D0008 to FORM Dnnnn. Replace the 0008 by your infotype number:

FORM Dnnnn.

CLEAR BDCDATA.
BDCDATA-PROGRAM = 'MPnnnn00'.
BDCDATA-DYNPRO = '2000'.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.

CLEAR BDCDATA.
BDCDATA-FNAM = 'Pnnnn-F1'
BDCDATA-FVAL = SATZ-F1
APPEND BDCDATA.

CLEAR BDCDATA.
BDCDATA-FNAM = 'BDC_OKCODE'.
BDCDATA-FVAL = '=UPD'.
APPEND BDCDATA.

ENDFORM.

The FORM Dnnnn is called directly after FORM D0008; see the ABAP statement indicated as "<------ INSERT in the following (starting at line 1730 in the standard system):

LOOP AT INFTAB.
CASE INFTAB.
***********************************************************************
* Include all infotypes in your action *
***********************************************************************
WHEN '0002'. PERFORM D0002.
WHEN '0001'. PERFORM D0001.
WHEN '0006'. PERFORM D0006.
WHEN '0007'. PERFORM D0007.
WHEN '0008'. PERFORM D0008.
WHEN 'nnnn'. PERFORM Dnnnn. "<------ INSERT
WHEN OTHERS. WRITE: / 'Infotype not included:' (008), INFTAB.
STOP.

ENDCASE.
ENDLOOP.

Parameter DSLOGNAM

Logical file name

Parameter MAPNAME

Session name

Definition

Enter any name for the session to be created.






TXBHW - Original Tax Base Amount in Local Currency   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2877 Date: 20240601 Time: 162058     sap01-206 ( 38 ms )