INV Customer Item and Cross Reference Upload

Description

Categories
Enginatics, R12 only, Upload
Repository
GitHub
Creates and updates customer items and their cross references to inventory items, as the Customer Items and Customer Item Cross References forms do.

A row holds one cross reference. The customer item columns repeat on each cross reference row of a customer item and are applied from the first of them. A row without Item and Rank maintains the customer item only.

Customer, Definition Level, Address Category and Site Number identify a customer item and cannot be changed afterwards. Site Number is the address of a customer item defined at Address level.

Nothing can be deleted, as in the forms: clear Customer Item Active or Cross Reference Active instead. A customer item can only be inactivated once all its cross references are inactive, and the cross references of an inactive customer item cannot be changed.

A Model must exist before the rows that refer to it are uploaded.

SQL 114 lines

Parameters 7

ParameterTypeList of values SQL
Upload ModeLOV
:p_upload_mode like '%'||xxen_upload.action_update
Customer NameLOV
hp.party_name=:customer_name
Customer ItemLOV
mci.customer_item_number=:customer_item
Definition LevelLOV
mci.item_definition_level=xxen_util.lookup_code(:definition_level,'INV_ITEM_DEFINITION_LEVEL',700)
Commodity CodeLOV
mcc.commodity_code=:commodity_code
Show Cross ReferencesLOV
ItemLOV
msiv.concatenated_segments=:item