Functional Description
Purpose
To read the landed cost file.
Setup Notes and Prerequisites
The Key will determine how to read the file - by Item/Branch or Landed Cost.
If the Key is sent in, the appropriate parameter must also be sent.
If the Key is blank, the fetch will be first by Item/Branch then by Landed Cost Rule, if no record
for the item/branch existed.
A date may also be sent to determine if the record is effective.
Special Logic
Called from named ER Landed Cost Selection.
Technical Specification
If the key is blank.
If the item #, B/P and landed cost rule are all blank, return with error.
Read the landed cost file first by the item # and Branch.
If no record is found, read Landed Cost file by Landed Cost rule.
Set the Key (KEYD) = 1 or 2.
End If
If the key = 1
If the Item # or Branch are blank, set error = 1 and return.
Set the pointer and read the next record with the Item/Branch.
End If
If the key = 2
If the Landed Cost Rule is blank, set error = 1 and return.
Set the pointer and read the next record with the Landed Cost Rule.
End If
If End of key, set error to 2 and return.
If Date passed (RCJD) is not zero
Endif
Load output fields.
Set GENLNG pointers.
D4301030 - Get Landed Cost Record
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szLandedCostRule | PRP5 | char | NONE | NONE |
Special Input Expected
| ||||
mnItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
ITMab mnItemNumberab I/Oab ab Not required with PRP5ab
| ||||
szBranchPlant | MCU | char | NONE | NONE |
MCUab szBranchPlantab I/Oab ab Not required with PRP5ab
| ||||
szCostLevel | LVLA | char | NONE | NONE |
User defined code (table 40/CA) designating an add-on cost. This code also specifies the sequence of the cost add-ons for a particular
| ||||
szBasedOnLevel | LVLB | char | NONE | NONE |
User defined code (table 40/CA) designating the basis of cost for an item. If you use this code, you can roll costs based on a previous level
| ||||
mnPercentOfCost | PCST | MATH_NUMERIC | NONE | NONE |
Percentage of the item's primary purchasing cost that the system add as a landed cost component to the base cost of the item as indicated
| ||||
mnPlusAmount | PAMT | MATH_NUMERIC | NONE | NONE |
An amount to be added to the indicated cost to equal the total cost amount. | ||||
mnWeightRate | RATF | MATH_NUMERIC | NONE | NONE |
The system multiplies the rate you add to this field by the unit weight you specify for an inventory item to calculate a landed cost
| ||||
mnVolumeRate | RATV | MATH_NUMERIC | NONE | NONE |
The system multiplies the rate you add to this field by the unit volume you specify for an inventory item to calculate a landed cost
| ||||
mnSupplier | AN8 | MATH_NUMERIC | NONE | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szGLClassCode | GLPT | char | NONE | NONE |
A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If
| ||||
cIncludeInUnitCost | INYN | char | NONE | NONE |
Code indicating whether you want the landed cost to be added to the item's unit cost. Valid codes are:
Y Add the landed cost to the unit
| ||||
jdDate | RCDJ | JDEDATE | NONE | NONE |
RCDJab jdDate (I) Date used to compare effective datesab
| ||||
cVoucher | RCYN | char | NONE | NONE |
Code indicating whether the landed cost is to be displayed during Voucher Match or not. The possible values are as follows:
Y A receipt
| ||||
cKeyUsed | KEYD | char | NONE | NONE |
KEYDab cKeyUsedab (I/O)ab (Yes)ab
| ||||
cError | ERR | char | NONE | NONE |
ERRab cErrorab (O)1 = parameter error 2 = EOF or file errorab
| ||||
idPointer | GENLNG | ID | NONE | NONE |
GENLNGab idPointerab I/Oab Yes if KEYD passed inab ab
| ||||
idHRequest | GENLNG | ID | NONE | NONE |
GENLNGab idHRequestab I/Oab Yes if KEYD passed inab ab
|
None |
F41291 Item Cost Components |