3PL Scan Function Quality
Overview
This document provides a detailed overview of the functions available in the "3PL Scan Function Quality" codeunit. Each function is listed with its purpose and parameters, which can be expanded for more details.
Function List
Note
DOCTYPE identifies the quality document type: 1=Measurement, 2=Count, 3=Check, 4=Hours, 5=Request. For the functions that work on an existing quality document (2, 3, 4, 5, 8 and 13), DOCTYPE 0 finds the document by DOCNO alone, whatever its document type.
1. Create Quality Document
Purpose: Create a new Quality Header including Lines.
Parameters
- 'DOCTYPE': Quality Type: 1=Measure etc.
- 'QUALITYCODE': Quality Code!
- 'CHECKDOCTYPE': OPTIONAL: WMS Document Type: 1=Receipt,2=Shipment, etc.
- 'CHECKDOCNO': OPTIONAL: WMS Document No.
- 'LOCATIONNO': OPTIONAL: Location No.
- 'BATCHNO': OPTIONAL: Batch No.
- 'CARRIERNO': OPTIONAL: Carrier No.
- 'NEWDOCNO': Returns the new Created Document No.
- 'SKIPQUALITYCODE': If not Empty then Skip Quality Code, Create Quality Header only
2. Update Quality Header
Purpose: Update a Quality Header.
Parameters
- 'DOCTYPE': Quality Type: 1=Measure etc. 0 = find by DOCNO
- 'DOCNO': Quality Document No.
- 'POSTINGDATE': Set New Posting Date
- 'DOCUMENTDATE': Set New Document Date
- 'ATTRIBUTE 01': Attribute 01
- 'ATTRIBUTE 02': Attribute 02
- 'ATTRIBUTE 03': Attribute 03
- 'ATTRIBUTE 04': Attribute 04
- 'ATTRIBUTE 05': Attribute 05
- 'ATTRIBUTE 06': Attribute 06
- 'ATTRIBUTE 07': Attribute 07
- 'ATTRIBUTE 08': Attribute 08
- 'ATTRIBUTE 09': Attribute 09
- 'ATTRIBUTE 10': Attribute 10
- 'CATEGORY CODE': Set new category code
- 'SUB CATEGORY CODE': Set new sub category code
3. Update Quality Line
Purpose: Update a Quality Line.
Parameters
- 'DOCTYPE': Quality Type: 1=Measure etc. 0 = find by DOCNO
- 'DOCNO': Quality Document No.
- 'LINENO': Quality Document Line No
- 'ATTRIBUTE 01': Attribute 01
- 'ATTRIBUTE 02': Attribute 02
- 'ATTRIBUTE 03': Attribute 03
- 'ATTRIBUTE 04': Attribute 04
- 'ATTRIBUTE 05': Attribute 05
- 'ATTRIBUTE 06': Attribute 06
- 'ATTRIBUTE 07': Attribute 07
- 'ATTRIBUTE 08': Attribute 08
- 'ATTRIBUTE 09': Attribute 09
- 'ATTRIBUTE 10': Attribute 10
- 'TEMPERATURE': Temperature
4. Quality Header Change Status
Purpose: Change the status of a Quality Header.
Parameters
- 'DOCTYPE': Quality Type: 1=Measure etc. 0 = find by DOCNO
- 'DOCNO': Quality Document No.
- 'STATUS': -1=Previous, 1=Next, or
=New Status Code (eg. 10-NEW) - 'NEW-STATUS': Returns the new Document Status
5. Post Quality Header
Purpose: Post the Quality Header.
Parameters
- 'DOCTYPE': Quality Type: 1=Measure etc. 0 = find by DOCNO
- 'DOCNO': Quality Document No.
6. Open Quality Entry
Purpose: Open the Quality Entries for carrier.
Parameters
- 'TYPE': Mandatory: Type - 0=,1=Meting,2=Tellen,3=Controle,4=Uren
- 'CARRIERNO': Mandatory: Carrier no
7. Create and Post Quality Jrnl Line
Purpose: Aanmaken en boeken van Quality Jrnl.
Parameters
- 'TEMPLATE': Mandatory: Template
- 'BATCH': Mandatory: Batch
- 'DOCTYPE': 1=Measurement,2=Count,3=Check,4=Hours
- 'DOCNO': Document No
- 'TYPE': 1=Document,2=Batch Content,3=Carrier Content
- 'DIRECTPOST': Directpost
- 'CARRIERFILTER': Optional: CarrierFilter
- 'BATCHFILTER': Optional: Batch Filter
- 'ITEMFILTER': Optional: Item Filter
- 'LOCFILTER': Optional: Loc Filter
- 'Attribute01': Attribute 01
- 'Attribute02': Attribute 02
- 'Attribute03': Attribute 03
- 'Attribute04': Attribute 04
- 'Attribute05': Attribute 05
- 'Attribute06': Attribute 06
- 'Attribute07': Attribute 07
- 'Attribute08': Attribute 08
- 'Attribute09': Attribute 09
- 'Attribute10': Attribute 10
8. Check quality document
Purpose: Kwaliteitsdocument controleren.
Parameters
- 'DOCTYPE': Quality Type: 1=Measure etc. 0 = find by DOCNO
- 'DOCNO': Quality Document No.
9. Get Document Info Code Value as Text
Purpose: Retrieve document info code value as text.
Parameters
- 'INFOCODE': Information Code
- 'DOCTYPE': Document Type
- 'DOCNO': Document No.
- 'QUALITYLINENO': Quality Line No.
- 'VALUE': Return Value
10. Set Document Info Code Value on Qualit Line
Purpose: Set document info code value on quality line.
Parameters
- 'INFOCODE': Information Code
- 'DOCTYPE': Document Type
- 'DOCNO': Document No.
- 'QUALITYLINENO': Quality Line No.
- 'NEWVALUE': New Value
11. Add Document Info Template to Quality Header
Purpose: Add document info template to quality header.
Parameters
- 'DOCTYPE': Document Type
- 'DOCNO': Document No.
- 'DOCINFOTEMPLATECODE': Document Info Template Code
12. Update All Empty Quality Profiles
Purpose: Update all empty quality profiles.
Parameters
- 'DOCTYPE': Document Type
- 'DOCNO': Document No.
- 'BOOLEANVALUE': Boolean Value
- 'TEXTVALUE': Text Value
- 'DECIMALVALUE': Decimal Value
13. Create Quality Line
Purpose: Create a new Quality Line on an existing Quality Document.
Use this function to add a line of type Problem, Cause, Solution or Action to the Details of an existing quality document, for example a Request, from the scanner. Every call inserts a new line (Line No. = highest existing Line No. + 10000), so the function can be repeated to add several lines, also of the same type. When CODE is filled, the Description and Body of the line are taken from the Quality Comment Link; DESCRIPTION and BODY override these values when filled. An empty TYPE or a value outside this list stops the function with an error (Parameter value TYPE is empty. or Invalid value ... for parameter TYPE. Allowed: PROBLEM, CAUSE, SOLUTION, ACTION.) and no line is created.
Parameters
- 'DOCTYPE': 1=Measurement,2=Count,3=Check,4=Hours,5=Request. 0 = find by DOCNO
- 'DOCNO': Quality Document No.
- 'TYPE': PROBLEM, CAUSE, SOLUTION or ACTION (or 100/110/120/130)
- 'CODE': OPTIONAL: Quality Comment Link Code
- 'DESCRIPTION': OPTIONAL: overrides description from CODE
- 'BODY': OPTIONAL: content (Inhoud) of the line
- 'NEWLINENO': Returns the new Quality Line No.