CalculateLifeRemaining

Calculate Life Remaining

Minor Business Rule

Object Name: B4101540

Parent DLL: COPBASE

Location: Client/Server

Language: C

Data Structure

D4101540 - Calculate Life Remaining

Parameter NameData ItemData TypeReq/OptI/O/Both
jdExpirationDateMMEJJDEDATEOPTNONE

The date on which a lot of items expires. The system automatically enters this date if you have specified the shelf life days for the item on 
Item Master Information or Item Branch/Plant Information. The system calculates the expiration date by adding the number of shelf life days to 
the date that you receive the item. You can commit inventory based on the lot expiration date for items. You choose how the system commits 
inventory for an item on Item Master Information or Item Branch/Plant Information.

jdBasedOnDateBODJJDEDATEOPTNONE

The date that the system uses in conjunction with the shelf life days to calculate the lot expiration date. You can enter this date during 
inventory completions. In addition to calculating the lot expiration date, the system uses the date that you enter in this field to calculate the following 
lot dates:   o Sell By Date   o Best Before Date   o Lot Effectivity Date   o User Lot Date 1   o User Lot Date 2   o User Lot Date 3   o User Lot Date 
4   o User Lot Date 5

jdCalculationDateCLCJJDEDATEOPTNONE

A date that the system uses to calculate the remaining number of days until the lot expires. If you leave this field blank, the system uses 
today's date.

mnPercentOfLifeRemainingPOLRMATH_NUMERICOPTNONE

A value that represents the amount of time that has elapsed since the material contained in a lot became an on-hand quantity. The system 
determines the amount of time that has elapsed in relation to the expiration date of the lot.

mnNumberOfDaysRemainingNODRMATH_NUMERICOPTNONE

A number that represents the difference between either the expiration date and the current date or between the expiration date and a 
user-specified date.

cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

Related Functions

None

Related Tables

None