Functional Description
Purpose
To add a row to the Supplier/Item Relationships table if one does not exist. Update the F43090 with
UODR and AODR if the Suppress Update Flag allows.
Special Logic
This bsfn returns ER_ERROR is a matching record is found.
Technical Specification
2.4Processing
If the StockingType is 'N' then the access key is AN8 and LITM.
If the StockingType is not 'N' then the access key is MCU, AN8 and ITM.
Ensure that the record DOES NOT already exist in the table.
If the record already exists and Updates Allowed flag is not a '1', then exit with no add or update.
If the record does not exist then
If the data dictionary default for LTQP is zero then assign 100 to it.
If the stocking type is blank then retrieve the default from the data dictionary.
If the branch/plant is required (Stocking type < > 'N') and is blank, then set error number
0003 and exit the business function.
If the Units ordered or Amount ordered is passed in, add to UODR and AODR in the F43090.
Insert a row in the table F43090 if no errors.
If the record does exist and theUpdates Allowed flag is a '1',
Update the Units ordered or Amount ordered in the F43090.
^
D4300290 - Insert Supplier Item Relationship Row
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szBranchPlant | MCU | char | NONE | NONE |
Special Input Expected
| ||||
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
| ||||
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szSecondItemNumber | LITM | char | NONE | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
szThirdItemNumber | AITM | char | NONE | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
jdEffectiveDate | CEFJ | JDEDATE | NONE | NONE |
Special Input Expected
| ||||
jdExpirationDate | CXPJ | JDEDATE | NONE | NONE |
Special Input Expected
| ||||
cStockingType | STKT | char | NONE | NONE |
A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking
| ||||
mnUnitsOrdered | UODR | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
mnAmountOrdered | AODR | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
cSuppressUpdate | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
cLevelPurchasingPrice | PPLV | char | OPT | NONE |
A code that indicates where to retrieve the purchase price for an item when you enter a purchase order. Valid codes are:
1 Use the
|
B4000630 Verify Effective Dates |
F43090 Supplier/Item Relationships |