Setup Variables for Batch Codes

Setup Variables for Batch Codes

Variables in batch codes were introduced in version 6.5. Dynamics GP batch codes can be 15 characters or less. If your configured batch code exceeds 15 characters, it will be automatically trimmed.

Common Variables

The following variables are applicable to all variable-enabled batch codes:

  • CreatedTime
  • SubmitTime
  • CreateUserName
  • CreateDeviceName
  • ProfileName

Batch Code Variables by Transaction Type

BatchCodeForAdjustments

  • AdjustmentReasonCode
  • CostCenterCode
  • FlexField1 through FlexField5
  • Operation (Add or Remove)
  • ProjectCode
  • TaskCode
  • WS_CostCode
  • WS_JobNumber
  • WS_Module
  • WorkOrderCode

BatchCodeForAssemblies

  • BinCode
  • FlexField1, FlexField2
  • ItemCode
  • LotCode
  • SerialCode
  • SiteCode
  • TrackingOption
  • UnitOfMeasure

BatchCodeForCashReceipt

  • CheckbookCode
  • CustomerCode
  • SalespersonCode

BatchCodeForCompletedDelivery

  • CustomerCode
  • CustomerName
  • SalesOrderCode
  • SiteCode

BatchCodeForCompletedOrderFulfill and BatchCodeForPartialPicks

  • OrderGroupCode
  • SalesOrderCode
  • CurrentBatch (Added in 7.4.6.18+)

BatchCodeForNewOrder

  • AddressCode
  • CheckbookCode
  • CustomerCode
  • CustomerName
  • CustomerPurchaseOrderCode
  • DiscountAmount
  • LineTotal
  • MiscChargeAmount
  • PaymentTermsCode
  • RequestedShipDate
  • SalesOrderCode
  • SalespersonCode
  • ShipMethodCode
  • SiteCode
  • SubtotalAmount
  • TaxAmount
  • TaxScheduleCode
  • TotalAmount

BatchCodeForNewSale

Used for online and offline sales:

  • AddressCode (Offline Sales Only)
  • BillingAddressCode (Online Sales Only)
  • CheckbookCode
  • CustomerCode
  • CustomerName
  • CustomerPurchaseOrderCode
  • DiscountAmount
  • LineTotal
  • MiscChargeAmount
  • PaymentTermsCode
  • SalesOrderCode
  • SalespersonCode
  • ShippingAddressCode (Online Sales Only)
  • SiteCode
  • SubtotalAmount
  • TaxAmount
  • TaxScheduleCode
  • TotalAmount

BatchCodeForReceipts (Add Asset)

  • AssetClassCode
  • AssetCode
  • AssetCodeSuffix
  • AssetCustodianCode
  • AssetLabel
  • AssetShortName
  • AssetStructureCode
  • MasterAssetCode

BatchCodeForReceipts (Receiving Inventory)

  • FlexField1, FlexField2
  • PackageCode
  • PurchaseOrderCode
  • VendorCode

BatchCodeForReturns

  • AddressCode
  • BillingAddressCode
  • CheckbookCode
  • CustomerCode
  • CustomerName
  • DiscountAmount
  • FlexField1 through FlexField4
  • LineTotal
  • MiscChargeAmount
  • PaymentTermsCode
  • SalesOrderCode
  • SalespersonCode
  • SiteCode
  • SubtotalAmount
  • TaxAmount
  • TaxScheduleCode
  • TotalAmount

BatchCodeForShipOrder

  • Carrier
  • FlexField1 through FlexField3
  • SalesOrderCode
  • ShipMethod
  • ShippingBoxCode
  • TrackingCode
  • CurrentBatch (Added in 7.4.6.18+)

BatchCodeForSpotCounts

  • BinCode
  • ItemCode
  • LotCode
  • SerialCode
  • SiteCode
  • TrackingOption
  • UnitOfMeasure

BatchCodeForTransfers (Site and Directed Transfers)

  • CreatedByProcInbTrans
  • FlexField1, FlexField2
  • OrderGroupCode
  • ReasonCode
  • ShipMethodCode
  • ToBSMEMFacilityCode
  • TransferOrderCode

BatchCodeForTransfers (Project Transfers)

  • CostCategoryCode
  • FlexField1, FlexField2
  • ProjectCode

BatchCodeForTransfers (Container Transfers)

  • ContainerCode
  • FromSiteCode
  • HostBinCode
  • ToSiteCode

BatchCodeForVendorReturns

  • FlexField1, FlexField2
  • ReturnReasonCode
  • RmaReferenceInfo
  • ShipMethodCode
  • VendorCode

BatchCodeForVerifiedOrders

Note: This may not work as expected if you are using the EnableOrderVerifiedBatchCodeAsPrefix setting.

  • FlexField1, FlexField2
  • SalesOrderCode

Format Examples

Date and Username

Format: [CreatedTime:MMddyy]-[CreateUserName]

Example: 032814-DefaultU (truncated at 15 characters)

FlexField and Static String

Format: [FlexField1]-PTGPReceipt

Example: LW4-PTGPReceipt

    • Related Articles

    • Reason Codes with PanatrackerGP

      Reason codes were introduced in Dynamics GP 2013. PanatrackerGP provides a way to use this feature on your handheld devices. Reason codes are also available for previous versions of Dynamics GP, but they are not configured in Dynamics GP and are not ...
    • How does Panatracker deal with duplicate Manufacturer Item Codes if more than 1 item in GP shares a UPC?

      When multiple items in Dynamics GP share the same UPC or manufacturer item code, PanatrackerGP provides a selection interface to ensure the correct item is chosen. How It Works When you scan or enter a manufacturer item code that's associated with ...
    • Device Setup

      The Device Setup page allows you to manage all handheld devices that connect to your PanatrackerGP portal. Access Device Setup from the Panatracker portal under Configure > Device Setup. Device Setup Features On the Device Setup page, the current ...
    • Intermec CK3 Setup Guides

      Complete these setup tasks when initially configuring your Intermec CK3 handheld devices. Set Device Name/ID Remap F1 and F2 Keys to Up and Down — Up and Down are used frequently in PanatrackerGP Intermec Scanner Wireless Setup Connect Device to ...
    • GP Manufacturing Setup

      To use transactions for GP Manufacturing, a .cnk file needs to be installed and additional configuration completed within GP. GP Manufacturing requires a dedicated desktop with GP open to process transactions. Install Instructions Open and run ...