Ansicht
Dokumentation

FOICJ004 - generated module

FOICJ004 - generated module

General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Description

This routine sets the time unit of measure to be half months. Half months are counted from the 1st to the 15th of the month, and from the 16th to the end of the month.

The start and end dates of the fixation period are then determined using the unit of measure and the fields Period Before and Period After. The Exclude event date indicator is not used in this routine.

Requirements

This routine is intended to be used together with a event date offset routine, that sets the event date to either the first, or the 16th day of a month.

If a different event date is used and period before and period are not both zero, then the system will proceed as if the event date was set back to the last day that was a first or 16th.

Output

If period before and period after are both zero, date from and date to are set to the event date.

In any other case date from is set to the beginning of the half month period, that is calculated from the half month of the event date and the field period before.

If period after is not zero, date to is set to the end date of the half month period, that is calculated from the refence date and the field period after.

If period after is zero, date to is set to the end of the half month period preceding the one of the event date.

Example

event date | per. bef. | per. aft. | date from | date to
------------------------------------------------------------------------
20.12.1998 | 0 | 0 | 20.12.1998 | 20.12.1998
01.10.1998 | 1 | 0 | 16.09.1998 | 30.09.1998
03.10.1998 | 1 | 0 | 16.09.1998 | 30.09.1998
01.11.1999 | 0 | 5 | 01.11.1999 | 15.01.2000
16.04.1998 | 3 | 1 | 01.03.1998 | 30.04.1998






CPI1466 during Backup   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2002 Date: 20240520 Time: 054511     sap01-206 ( 34 ms )