SAC Loop Documentation

810 SAC Segment Mapping Guide for NetSuite Invoices

Overview

The SAC (Service, Promotion, Allowance, or Charge) segment in 810 invoice transactions automatically captures discounts and shipping charges from NetSuite invoices and maps them to the appropriate EDI format.

How SAC Segments are Generated

Discounts

Discounts appearing on NetSuite invoices are automatically mapped to SAC segments when:

  • Line items with item type "Discount" are present on the invoice
  • The discount is linked to an Orderful Discount configuration record

Mapping Details:

  • Allowance vs Charge: Positive amounts map to "Allowance", negative amounts to "Charge"
  • SAC Code: Pulled from the discount configuration (see setup below)
  • Amount: The discount amount in cents (multiplied by 100)
  • Handling Method: Always set to "Off Invoice"

Shipping Charges

Shipping charges are automatically aggregated and mapped when:

  • Line items with item type "ShipItem" are present on the invoice
  • Total shipping cost is greater than zero

Mapping Details:

  • Type: Always mapped as "Charge"
  • SAC Code: Fixed as "Shipping_and_Handling"
  • Amount: Total of all shipping line items in cents

Setting Up Discount Configurations

To ensure discounts map correctly to SAC segments:

1. Create Orderful Discount Records

Navigate to Customization > Lists, Records, & Fields > Record Types > Orderful Discount

For each discount type you use, create a record with:

  • Customer: The customer this discount applies to (if customer-specific)
  • Item: The NetSuite discount item
  • Accept Amount: The acceptable discount amount
  • Discount Code: The SAC code to use in the 810 transaction

2. Common SAC Discount Codes

Select the appropriate code based on your trading partner's requirements:

  • C310 - Discount
  • C240 - Volume Discount
  • D170 - Free Goods
  • D500 - Rebate
  • G740 - Promotional Allowance
  • C300 - Trade Discount

3. Link Discounts to Transactions

The system automatically links discounts when:

  • Header-level discounts are applied to the entire invoice
  • Line-level discounts are applied to specific items
  • The discount item matches a configured Orderful Discount record

Troubleshooting

Discounts Not Appearing in SAC

Check:

  1. Orderful Discount record exists for the discount item
  2. Discount code field is populated in the configuration
  3. Invoice has the discount properly applied as a line item

Incorrect SAC Codes

Verify:

  1. The correct SAC code is set in the Orderful Discount configuration
  2. The right discount configuration is being matched (check customer/item combination)

Shipping Charges Missing

Ensure:

  1. Shipping items are properly classified as "ShipItem" type
  2. Shipping amount is greater than zero
  3. Shipping lines are included in the invoice