3PL Scan Function Item - Function Reference Guide
This document provides a comprehensive reference for all functions available in the 3PL Scan Function Item codeunit. Use this guide to find the appropriate function for your needs and understand its parameters.
Table of Contents
- Item Information Functions
- Location Management
- EAN/Barcode Functions
- Inventory Functions
- Batch Management
- Unit of Measure Functions
- Document Processing
- Carrier Management
- Condition and Status Management
- Miscellaneous Functions
Item Information Functions
5-check-if-item-exist
Validates if a customer item exists in the system.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| MESSAGE | Text | Input | Error message to display if item doesn't exist |
7-get-custom-item-info
Retrieves comprehensive information about a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| DESCRIP1 | Text | Output | Description |
| DESCRIP2 | Text | Output | Description 2 |
| BASEUNIT | Code[10] | Output | Base Unit of Measure |
| EXTERNAL | Code[50] | Output | External No. |
| CARRIERTYPERECEIPT | Code[20] | Output | Carrier Type Code (Receipt) |
| CARRIERTYPESHIP | Code[20] | Output | Carrier Type Code (Shipment) |
| CONDITRECEIPT | Code[20] | Output | Condition at Receipt |
| CONDITSHIP | Code[20] | Output | Condition at Shipment |
| UOMRECEIPT | Code[10] | Output | Unit of Measure at Receipt |
| UOMSHIP | Code[10] | Output | Unit of Measure at Shipment |
| SPECMETH | Code[20] | Output | Specification Method |
| SEARCHDESC | Text | Output | Search Description |
| ITEMCATEGORY | Code[20] | Output | Item Category Code |
| CUSTNO | Code[20] | Output | Customer No. |
| UOMORDERING | Code[10] | Output | Unit of Measure at Ordering |
| UOMCALC | Code[10] | Output | Calculation Unit of Measure |
| ATTRIBUTE01-10 | Text | Output | Attribute values 1-10 |
| DANGEROUSGOODSCODE | Code[20] | Output | Dangerous Goods Code |
| DANGEROUSGOODSCODE1 | Code[20] | Output | Dangerous Goods Code2 |
| DANGEROUSGOODSCATEGORY1-3 | Code[20] | Output | Dangerous Goods Categories |
60-check-customer-cust-item
Verifies if a customer item belongs to the specified customer.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| EXTITEMNO | Code[20] | Input | External Item No. |
| CUSTNO | Code[20] | Input | Customer No. |
80-get-dangerous-goods-info
Retrieves dangerous goods information for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UNNO | Code[20] | Output | UN Number |
| DGCODE | Code[20] | Output | Dangerous Goods Code |
| DGDESCR | Text | Output | Dangerous Goods Description |
| DGCODE2 | Code[20] | Output | Dangerous Goods Code 2 |
| HINO | Code[20] | Output | Hazardous Identification No. |
Location Management
3-get-default-location
Retrieves the default location for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| BUILDINGCODE | Code[20] | Input | Building Code |
| LOCATIONNO | Code[20] | Output | Location No. |
| INVENTORY | Decimal | Output | Inventory |
| INVENTORY BASE | Decimal | Output | Base Inventory |
| DEFAULT | Boolean (Text) | Output | Is Default |
| DYNAMIC | Boolean (Text) | Output | Is Dynamic |
| MIN INVENTORY | Decimal | Output | Minimum Inventory |
| MAX INVENTORY | Decimal | Output | Maximum Inventory |
| REPLENISH | Decimal | Output | Replenishment Quantity |
| MIN CARRIER QTY | Decimal | Output | Minimum Carrier Quantity |
| CUSTOMSCODE | Code[20] | Input | Customs Code |
| ZONECODEFILTER | Text | Input | Zone Code Filter |
4-get-default-zone
Gets the default zone for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure |
| ZONENO | Code[20] | Output | Zone No. |
8-get-free-location
Finds a free location based on specified filters.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| LOCNOFILTER | Text | Input | Location No. filter |
| LOCATIONTYPEFILTER | Text | Input | Location Type filter |
| ZONECODEFILTER | Text | Input | Zone Code filter |
| STATUSFILTER | Text | Input | Status filter |
| ALT.ZONE FILTER | Text | Input | Alternative zone filter |
| NOSUBS | Text | Input | Skip parent locations (any value) |
| ERRORMSG | Text | Input | Error if no location found |
| LOCATION | Code[20] | Output | Located free location |
| BUILDINGNO | Code[20] | Input | Building No. |
| WHSEACTCODE | Text | Input | Warehouse Activity Code filter |
| WHSEACTGROUP | Text | Input | Warehouse Activity Group filter |
| WHSEACTTYPE | Text | Input | Warehouse Activity Type filter |
9-get-last-used-loc-for-item
Retrieves the last used location for a specific item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| BATCHNO | Code[20] | Input | Batch No. |
| LOC | Code[20] | Output | Located last location |
| BUILDING | Code[20] | Input | Building Code |
| UOM | Code[10] | Input | Unit of Measure |
| ZONEFILTER | Text | Input | Zone filter |
| LOCFILTER | Text | Input | Location filter |
| EXCLDEFLOCS | Text | Input | Exclude default locations (any value) |
| CARRIERFILTER | Text | Input | Carrier filter |
| DOCUMENTFILTER | Text | Input | Document filter |
| ZONETYPEFILTER | Text | Input | Zone Type filter (0,1=Pick,2=Bulk) |
| CARRIERNO | Code[20] | Input | Get customer item from carrier |
| EXCLLOCTYPE | Text | Input | Exclude location type |
| DOCTYPEFILTER | Text | Input | Document Type filter |
10-check-if-item-exist-on-loc
Verifies if an item exists on a specific location.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| LOC | Code[20] | Input | Location No. |
| MESSAGE | Text | Input | Error message if item not found |
51-get-def-loc-based-on-put-strategy
Gets a default location using warehouse put-away strategy.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| DOCNO | Code[20] | Input | Document No. |
| DOCLINENO | Integer | Input | Document Line No. |
| LOCNO | Code[20] | Output | Located strategy location |
EAN/Barcode Functions
1-get-cust-item-ean-code
Retrieves customer item information from an EAN code.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| EANCODE | Code[20] | Input | EAN Code |
| CUSTITEMNO | Code[20] | Output | Customer Item No. |
| UOMCODE | Code[10] | Input/Output | Unit of Measure Code |
| CUSTNO | Code[20] | Input | Customer No. |
| CHECKINEXTITEM | Text | Input | Use EAN as filter on External Item No. |
| PRODUCTVARIANT | Code[20] | Input | Product Variant filter |
| SKIPPRODVARFILTER | Text | Input | Skip Product Variant filter if empty |
Note
When CHECKINEXTITEM is used, a scanned value longer than 20 characters is matched on the External No. only (the External No. holds up to 50 characters); the EAN lookup is skipped for such values.
14-scan-barcode-item-uom
Processes barcode scan for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| BARCODE | Text | Input | Barcode input |
| LABELCODE | Code[20] | Input | Label Code |
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| ITEMUOM | Code[10] | Input | Unit of Measure (optional) |
| LENGTH FACTOR | Decimal | Input | Length/width/height division factor |
| WEIGHT FACTOR | Decimal | Input | Weight division factor |
18-update-ean-code-if-ean-id-01-or-02
Updates EAN code when ID is 01 or 02.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| EANIN | Code[20] | Input | Input EAN code |
| EANOUT | Code[20] | Output | Output EAN code |
| TAKEFIRST15C | Text | Input | Take first 15 characters (any value) |
22-get-item-ean
Retrieves the EAN code for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EAN | Code[20] | Output | EAN Code |
27-check-ean-code
Validates if an EAN code is valid.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| EAN CODE | Code[20] | Input | EAN Code to validate |
| ERROR MSG | Text | Input | Error message if invalid |
| RESULT | Boolean (Text) | Output | Result (TRUE/FALSE) |
73-create-new-ean-code-record-in-uom-details
Creates a new EAN code record for a unit of measure.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EANCODE | Code[20] | Input | EAN Code |
83-check-ean-is-from-item-no
Verifies if an EAN code belongs to an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EANCODE | Code[20] | Input | EAN Code |
| ERROR | Text | Input | Error message if not found |
90-check-if-ean-belongs-to-item
Validates if an EAN code belongs to a specific item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| EANCODE | Code[20] | Input | EAN Code |
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOMCODE | Code[10] | Input | Unit of Measure Code |
| CUSTNO | Code[20] | Input | Customer No. |
| ERRORMSG | Text | Input | Error message if not found |
97-check-duplicate-ean-within-customer
Checks for duplicate EAN codes within a customer.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EAN | Code[20] | Input | EAN Code |
| CUSTNO | Code[20] | Input | Customer No. |
Inventory Functions
11-qty-on-location-uom-empty-baseqty
Retrieves the quantity of an item at a specific location.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| LOCATION | Code[20] | Input | Location No. |
| BATCH | Code[20] | Input | Batch No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| QUANTITY | Decimal | Output | Quantity on location |
| CARRIER | Code[20] | Input | Carrier No. filter |
12-qty-per-item-based-on-filters
Gets item quantities using various filter criteria.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| ZONEFILTER | Text | Input | Zone filter |
| ZONETYPEFILTER | Text | Input | Zone Type filter |
| LOCFILTER | Text | Input | Location filter |
| BATCHFILTER | Text | Input | Batch filter |
| UOMFILTER | Text | Input | Unit of Measure filter |
| CARRIERFILTER | Text | Input | Carrier filter |
| CARRIERTYPEFILTER | Text | Input | Carrier Type filter |
| QUANTITY | Decimal | Output | Found quantity |
| QTYBASE | Decimal | Output | Base quantity |
| CARRIERS | Decimal | Output | Number of carriers |
40-get-first-location-with-inventory
Locates the first location with inventory for a document line.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| DOCNO | Code[20] | Input | Document No. |
| DOCLINENO | Integer | Input | Document Line No. |
| LOCNO | Code[20] | Output | Located first inventory location |
| HIDEDOCCARRIERS | Text | Input | Hide document carriers (any value) |
70-post-item-quantity-weight-mutations
Posts item quantity/weight mutations.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| JRNLTEMPLATE | Code[20] | Input | Journal Template No. |
| JRNLBATCH | Code[20] | Input | Journal Batch No. |
| DOCUMENTNO | Code[20] | Input | Document No. |
| POSTINGDATE | Date | Input | Posting Date |
| ENTRYTYPE | Integer | Input | Entry Type (1=Positive, 2=Negative) |
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| QUANTITY | Decimal | Input | Quantity |
| GROSSWEIGHT | Decimal | Input | Gross Weight |
| NETTWEIGHT | Decimal | Input | Net Weight |
| CARRIERNO | Code[20] | Output | Carrier No. |
| CARRIERTYPE | Code[20] | Input | Carrier Type |
| BATCHNO | Code[20] | Output | Batch No. |
| EXPDATE | Date | Input | Expiration Date |
| PRODDATE | Date | Input | Production Date |
| FREEZINGDATE | Date | Input | Freezing Date |
| LOCATION | Code[20] | Input | Location No. |
| REASONCODE | Code[20] | Input | Reason Code |
| AUTOPOST | Text | Input | Auto post (any value) |
| AUTOREVERSE | Text | Input | Auto reverse (any value) |
| CONTAINERNO | Code[30] | Input | Container No. |
| VESSELNO | Code[30] | Input | Vessel No. |
| STORAGECHARENO | Code[30] | Input | Storage Charge No. |
| CUSTOMSCODE | Code[20] | Input | Customs Code |
Batch Management
13-check-last-expiration-date
Verifies the last expiration date for an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ADDRESSNO | Code[20] | Input | Address No. |
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| BATCHNO | Code[20] | Input | Batch No. |
| DOCTYPE | Integer | Input | Document Type |
| EXPIRATIONDATE | Date | Input | Expiration Date |
| RESULTSHIPPED | Integer | Output | 1 if LastExpirationDate > ExpirationDate Shipped |
| RESULTSTOCK | Integer | Output | 1 if LastExpirationDate > ExpirationDate Stock |
17-check-remaining-shelf-life
Validates the remaining shelf life of an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| SHIPTO | Code[20] | Input | Ship-To Address No. |
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| CUSTNO | Code[20] | Input | Customer No. |
| CALCDATE | Date | Input | Calculation Date |
| EXPDATE | Date | Input | Expiration Date |
| RESULT | Integer | Output | 1 if WarningDate > ExpirationDate |
| MANSHELFDATE | DateFormula | Input | Manual Shelf Life Date Formula |
30-get-calculated-exp-date
Calculates an expiration date from posting date.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| POSTINGDATE | Date | Input | Posting Date |
| EXPDATE | Date | Output | Calculated Expiration Date |
50-create-new-batch
Creates a new batch record.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| BATCHNO | Code[20] | Output | Batch No. |
| EXTBATCHNO | Code[20] | Input | External Batch No. |
| EXPIRYDATE | Date | Input | Expiration Date |
| PRODUCTIONDATE | Date | Input | Production Date |
| FREEZINGDATE | Date | Input | Freezing Date |
| CONTAINERNO | Code[30] | Input | Container No. |
| VESSELNO | Code[30] | Input | Vessel No. |
Unit of Measure Functions
20-get-uom-string
Retrieves a formatted UOM string.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| QTY | Decimal | Input | Quantity |
| TOUOM | Code[10] | Input | Target Unit of Measure |
| OUTPUT | Text | Output | Formatted UOM string |
| AUTOCALC | Text | Input | Auto calculate (any value) |
21-get-uom-info
Gets detailed UOM information.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| QTY | Decimal | Output | Quantity per Unit of Measure |
| GROSS | Decimal | Output | Gross Weight |
| NETT | Decimal | Output | Net Weight |
| TARE | Decimal | Output | Tare Weight |
| HEIGHT | Decimal | Output | Height |
| WIDTH | Decimal | Output | Width |
| LENGTH | Decimal | Output | Length |
| CUBAGE | Decimal | Output | Cubage |
| CUBAGE_UF | Decimal | Output | Cubage Use Factor |
| EANCODE | Code[20] | Output | EAN Code |
| LITER | Decimal | Output | Liter |
| CARRIERTYPE | Code[20] | Input | Carrier Type |
| QTYPERPAL | Decimal | Output | Quantity per Carrier |
| QTYPERLAYER | Decimal | Output | Quantity per Layer |
| ERRORCARRTYPEUOM | Text | Input | Error if Carrier Type UOM not found |
23-get-zippcube-info
Reads and processes Zippcube measurements.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| INPUT | Text | Input | Input string from Zippcube |
| ITEMNO | Code[20] | Input | Customer Item No. to update |
| UOMCODE | Code[10] | Input | Unit of Measure Code to update |
| SIZE FACTOR | Decimal | Input | Size division factor |
| WEIGHT FACTOR | Decimal | Input | Weight division factor |
| LENGTH | Decimal | Output | Length |
| WIDTH | Decimal | Output | Width |
| HEIGHT | Decimal | Output | Height |
| WEIGHT | Decimal | Output | Gross Weight |
| NETTWEIGHT | Decimal | Input | Net Weight to set |
24-get-text-per-layer
Splits a quantity into full layers and a loose remainder and returns it as text, for example 1 x 10 + 2. The layer quantity comes from the Carrier Type Unit of Measure of the customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Mandatory: Customer Item No. |
| QTY | Decimal | Input | Mandatory: Quantity to split into layers |
| UOM | Code[10] | Input | Optional: If empty then Unit of Measure at Shipment |
| HUTYPE | Code[20] | Input | Optional: If empty then Carrier Type Code (Shipment) |
| ERRORIFNOTFOUND | Text | Input | Optional: Not empty = error if Carrier Type UOM not found, else empty result |
| RESULT | Text | Output | Return: <layers> x <qty per layer> + <loose qty>, e.g. 1 x 10 + 2 |
63-calc-quantity-per-uom-from-package-inputqty
Calculates quantity per UOM from package input quantity.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EMBCODE | Code[20] | Input | Package Code |
| INPUTQTY | Decimal | Input | Input Quantity |
| OUTPUTQTY | Decimal | Output | Calculated Output Quantity |
64-calc-quantity-per-uom-from-uom2
Calculates quantity conversion between UOMs.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| FROMUOM | Code[10] | Input | From Unit of Measure |
| TOUOM | Code[10] | Input | To Unit of Measure |
| INPUTQTY | Decimal | Input | Input Quantity |
| OUTPUTQTY | Decimal | Output | Calculated Output Quantity |
| INPUTZEROISZERO | Text | Input | If InputQty=0 then Output=0 (any value) |
| PRECISION | Decimal | Input | Rounding Precision |
| DIRECTION | Code[10] | Input | Rounding Direction |
75-calculate-the-cubage
Calculates the volume (cubage) of an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| QTY | Decimal | Input | Quantity |
| RESULT | Decimal | Output | Calculated cubage |
81-set-uom-dimensions
Sets dimensions for a unit of measure.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| LENGTH | Decimal | Input | Length |
| WIDTH | Decimal | Input | Width |
| HEIGHT | Decimal | Input | Height |
| QTYPERPAL | Decimal | Input | Quantity per Pallet |
| CARRIERTYPE | Code[20] | Input | Carrier Type |
| QTYPERLAYER | Decimal | Input | Quantity per Layer |
| GROSSWEIGHT | Decimal | Input | Gross Weight |
| NETTWEIGHT | Decimal | Input | Net Weight |
| TAREWEIGHT | Decimal | Input | Tare Weight |
| EAN | Code[20] | Input | EAN Code |
91-insert-uom-for-customer-item
Creates a new UOM for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| LENGTH | Decimal | Input | Length |
| WIDTH | Decimal | Input | Width |
| HEIGHT | Decimal | Input | Height |
| GROSSWEIGHT | Decimal | Input | Gross Weight |
| NETTWEIGHT | Decimal | Input | Net Weight |
| TAREWEIGHT | Decimal | Input | Tare Weight |
| EAN | Code[20] | Input | EAN Code |
| QTYPERUOM | Decimal | Input | Quantity per UOM |
Document Processing
6-check-mandatory-values
Validates that required fields for an item are filled.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| EXTBATCH | Text | Input | External Batch No. |
| EXTCARRIER | Text | Input | External Carrier No. |
| EXPIRYDATE | Date | Input | Expiry Date |
| PRODDATE | Date | Input | Production Date |
| FREEZINGDATE | Date | Input | Freezing Date |
| RETURNRESULT | Text | Input | Return result without error |
| RETURN VALUE | Text | Output | TRUE if mandatory |
| VETCODE | Code[20] | Input | Veterinary Code |
| WEIGHT | Decimal | Input | Weight |
15-get-mandatory-fields
Gets mandatory field flags for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| EXTBATCH | Text | Output | TRUE if Ext. Batch mandatory |
| EXTCARRIER | Text | Output | TRUE if Ext. Carrier mandatory |
| EXPIRYDATE | Text | Output | TRUE if Expiry Date mandatory |
| PRODDATE | Text | Output | TRUE if Production Date mandatory |
| FREEZINGDATE | Text | Output | TRUE if Freezing Date mandatory |
| WEIGHT | Text | Output | TRUE if Weight mandatory |
| VETERINARY | Text | Output | TRUE if Veterinary mandatory |
| SKAL | Text | Output | TRUE if Skal mandatory |
| UNITCOST | Text | Output | TRUE if Unit Cost mandatory |
16-get-no-of-mandatory-fields-serial-no
Gets the number of required fields for serial number handling.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| DOCTYPE | Integer | Input | Document Type |
| NOOFMANDFIELDS | Integer | Output | Number of mandatory fields |
25-check-product-var-active-and-return-items-in-doc
Checks if a product variant is active and returns items in a document.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| EANCODE | Code[20] | Input | EAN Code |
| CUSTNO | Code[20] | Input | Customer No. |
| DOCUMENTNO | Code[20] | Input | Document No. |
| SKIPCUSTNOCHECK | Text | Input | Skip customer check (any value) |
| ACTIVE | Text | Output | "YES" or "NO" |
| ITEMFILTER | Text | Output | Item filter string |
| FIRSTDOCLINENO | Integer | Output | First document line no. |
| NUMBERLINENO | Integer | Output | Number of lines |
28-check-pickloc-ean-for-orderpicking-validation
Validates picking location or EAN for order picking.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| INPUT | Text | Input | Input value (location or EAN) |
| PICKLOC | Text | Input | Correct pick location |
| CUSTITEM | Text | Input | Correct customer item |
| MESSAGE | Text | Input | Error message text |
| RETURNPICKLOC | Text | Output | Returns pick location if correct |
Carrier Management
26-calculate-layer-height
Calculates layer heights for carriers.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| Maxheight | Decimal | Input | Maximum height |
| Fromlayerheight | Decimal | Input | Layer height from carrier |
| Fromqtyoncarrier | Decimal | Input | Quantity on from carrier |
| Fromqtyperlayer | Decimal | Input | Quantity per layer from carrier |
| Fromcarriertype | Code[20] | Input | Carrier type from |
| Fromqtyperpal | Decimal | Input | Standard qty per pallet from |
| Tolayerheight | Decimal | Input | Layer height to carrier |
| Toqtyoncarrier | Decimal | Input | Quantity on to carrier |
| Toqtyperlayer | Decimal | Input | Quantity per layer to carrier |
| Tocarriertype | Code[20] | Input | Carrier type to |
| Toqtyperpal | Decimal | Input | Standard qty per pallet to |
| Layersremaining | Decimal | Output | Layers remaining |
| Qtyremaining | Decimal | Output | Quantity remaining |
| Qtytotransfer | Decimal | Output | Quantity to transfer |
| Layersallowed | Decimal | Output | Layers allowed |
| Qtyallowed | Decimal | Output | Quantity allowed |
| Layerstotransfrom | Decimal | Output | Layers to transfer from |
| Layerstotransto | Decimal | Output | Layers to transfer to |
71-default-packing-carrier
Gets carrier packing information.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UNITOFMEASURE | Code[10] | Input | Packing unit of measure |
| CARRIERTYPE | Code[20] | Input | Carrier type code |
| SHOWCARRIERTYPE | Text | Input | Show carrier type in result (any value) |
| ERRORIFNOTFOUND | Text | Input | Error text if not found |
| RESULT | Text | Output | Result text |
| QTY PER UOM | Decimal | Output | Quantity per UOM |
| QTY PER CARRIERUOM | Decimal | Output | Quantity per carrier UOM |
72-default-packing-quantity
Gets formatted packing quantities.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| DOCTYPE | Integer | Input | Document Type |
| DOCNO | Code[20] | Input | Document No. |
| DOCLINENO | Integer | Input | Document Line No. |
| PACKAGEUOM | Code[10] | Input | Package UOM Code |
| SEPARATOR | Text | Input | Separator text |
| RESULT | Text | Output | Formatted result |
Condition and Status Management
2-check-if-item-remark-exists
Checks if remarks exist for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| CUSTITEMNO | Code[20] | Input | Customer Item No. |
| CHECKCODE | Code[20] | Input | Check Code |
| RESULT | Text | Output | "Yes" or "No" |
82-set-item-status
Sets the status for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| NEWSTATUS | Code[20] | Input | New Status Code |
| ONLYIFSTATUS | Code[20] | Input | Only change if current status matches |
| REASONCODE | Code[20] | Input | Reason Code |
| REASONDESC | Text | Input | Reason Description |
| ONLYIFNEWSTATUS | Code[20] | Input | Only if new status matches |
| ONLYDIFFERENT | Text | Input | Only set if different from current |
84-get-statuscode-from-item
Retrieves the status code of an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| ITEMSTATUSCODE | Code[20] | Output | Item Status Code |
85-check-is-quarantaine-duration-is-active
Checks if quarantine period is active for an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| RETURN | Text | Output | "TRUE" if active, "FALSE" if not |
86-get-condition-value-for-customer-item
Gets a condition value for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| CONDITIONCODE | Code[20] | Input | Condition Code |
| VALUE01 | Text | Output | Condition Value |
96-set-condition-value-for-customer-item
Sets a condition value for a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| CONDITIONCODE | Code[20] | Input | Condition Code |
| VALUE01 | Text | Input | New Condition Value |
Miscellaneous Functions
41-copy-customer-item
Creates a copy of a customer item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| SOURCEITEMNO | Code[20] | Input | Customer Item No. to copy |
| NEWITEMNO | Code[20] | Input/Output | New Customer Item No. |
| COPYADDRESSSETUP | Text | Input | Copy Address Setup (any value) |
| COPYCARTYPEUOM | Text | Input | Copy Carrier Type UOM (any value) |
| COPYCOMMENTS | Text | Input | Copy Comments (any value) |
| COPYCONDITIONS | Text | Input | Copy Conditions (any value) |
| COPYCUSTITEMCUSTOMATTRIBUTES | Text | Input | Copy Custom Attributes (any value) |
| COPYCUSTITEMTAXDATA | Text | Input | Copy Tax Data (any value) |
| COPYCUSTITEMWHSESTRATEGY | Text | Input | Copy Warehouse Strategy (any value) |
| COPYDIMENSIONS | Text | Input | Copy Dimensions (any value) |
| COPYEANUNITOFMEASURE | Text | Input | Copy EAN UOM (any value) |
| COPYFEATURES | Text | Input | Copy Features (any value) |
| COPYITEMTRANSFORMATION | Text | Input | Copy Item Transformation (any value) |
| COPYLOCATIONCONTENT | Text | Input | Copy Location Content (any value) |
| COPYPACKAGEUOM | Text | Input | Copy Package UOM (any value) |
| COPYTARIFFNO | Text | Input | Copy Tariff No. (any value) |
| COPYTRANSLATIONS | Text | Input | Copy Translations (any value) |
| COPYUNITPRICE | Text | Input | Copy Unit Price (any value) |
| NEWITEMNO | Code[20] | Output | New Customer Item No. |
61-get-item-package-based-on-itemno-code
Gets the package code for an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EMBTYPE | Integer | Input | Package Type (1=Receipt, 2=Shipment) |
| EMBCODE | Code[20] | Output | Package Code |
| FILTERDEF | Text | Input | Filter on Default (any value) |
62-get-item-package-info
Gets package information for an item.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| UOM | Code[10] | Input | Unit of Measure Code |
| EMBCODE | Code[20] | Input | Package Code |
| EMBDIV | Decimal | Output | Package Divisor |
| EMBMULTI | Decimal | Output | Package Multiplier |
87-print-zpl-label-from-unit-of-measure
Prints a ZPL label for a unit of measure.
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| ITEMNO | Code[20] | Input | Customer Item No. |
| EANCODE | Code[20] | Input | EAN Code |
| UOM | Code[10] | Input | Unit of Measure |
| LAYOUTCODE | Code[10] | Input | ZPL Layout Code |
| LABELCOUNT | Integer | Input | Number of Labels |
| PRINTERCODE | Code[20] | Input | Printer Code |
Note: This reference guide covers all functions in the 3PL Scan Function Item codeunit. For implementation details or assistance with specific scenarios, please contact your system administrator or 3PL support team.