Ansicht
Dokumentation

RPUCRR00 - Delete Date "Earliest Master Data Change"

RPUCRR00 - Delete Date "Earliest Master Data Change"

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Description

When master data is transferred by batch input, the "Earliest MD change" field (MD = master data) is filled in infotype 0003. In this particular instance, however, you need to avoid this happening because it would trigger a retroactive accounting run that is neither wanted nor required (since you have yet to effect production startup for the transferred set of personnel numbers). To prevent such a retroactive accounting run from being triggered, you must reset the "Earliest MD change" field in infotype 0003.

This program resets the "Earliest MD change" field in infotype 0003. Proceed as follows:

"Earliest MD change" < "Date of comparison" ?
|
|--------------------|
| |
yes no
| |
reset no action
|
"Effect changes" ?
|
|---------------------|
| |
yes no
| |
new infotype no action
save 0003 on database

The date in the "Earliest MD change" field is reset (initialized) for all of the personnel numbers whose "Earliest MD change" date is further back in the past than the "Date of comparison" specified on the selection screen.

If the "Effect changes" checkbox is flagged, the changed infotype 0003 record is saved on the database with the reset "Earliest MD change" date.

To avoid inconsistencies, the personnel numbers to be processed are locked before processing if the "Effect changes" checkbox is flagged. If a personnel number cannot be locked, it is not processed. Locked personnel numbers are listed separately in an output list at the end of the program.

The program does not recognize whether the "Earliest MD change" field is filled by the transfer of old data, or whether it is filled by an intentional change of dates after the transfer of old data. For this reason, you should run this program immediately after the transfer of old data.

Example

Master data is transferred from the legacy system for personnel numbers 1, 2, and 3. The production startup is planned for January 1, 1997. The "Earliest MD change" field is filled for all three personnel numbers during the data transfer:

|--------------------------------------|
|Pers.No. |Earliest MD change |
|---------|----------------------------|
| 1 | May 27, 1989 |
| 2 | April 1, 1992 |
| 3 | January 1, 1997 |
|--------------------------------------|

You start the program with "Date of comparison" = January 1, 1997. The result is as follows:

|--------------------------------------|
|Pers.No. |Earliest MD change |
|---------|----------------------------|
| 1 | |
| 2 | |
| 3 | January 1, 1997 |
|--------------------------------------|

The "Earliest MD change" date is reset for personnel numbers 1 and 2 because it is further back in the past than the "Date of comparison". Personnel number 3, however, is not changed because the "Earliest MD change" date is the same as the "Date of comparison".

If the "Effect changes" checkbox has also been flagged, the changed infotype 0003 data is stored on the database.






Fill RESBD Structure from EBP Component Structure   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3812 Date: 20240520 Time: 131248     sap01-206 ( 72 ms )