# Line item coding in S/4HANA for retailers

S/4HANA has line item coding built in. Each store codes the same supplier differently, so reports by store, brand or department cannot be compared.

## Why it matters for retailers

- Mixed bills carry taxable and GST-free lines, such as grocery and hardware on the same invoice.
- Freight, packaging and returns need their own accounts so stock margin is right.

## For retailers in S/4HANA

- Mixed supplier bills carry food and non-food lines. Set the Tax Code on every G/L Account Item through Show Details. SAP maps AU codes such as P1 (GST 10%) and P2 (GST exempt or free) to BAS boxes.
- For shop fit-out or maintenance with no PO, add one G/L account item per store and set the cost centre on each.
- On a PO item use multiple account assignment to split cost across stores by quantity or percentage. The Partial Invoice field decides how a part bill spreads.

## What S/4HANA does on its own

Each line of a supplier invoice carries its own account assignment. For an invoice with no PO you add G/L account items with an account, amount, tax code and an accounting object such as a cost centre, WBS element or order. For a PO invoice the accounts come from the PO.

The supplier master does not hold a default expense account for non-PO invoices. The reconciliation account and payment terms sit there.

What you need and the setup steps: https://www.pulsify.tech/line-item-coding-for-sap-s4hana/

## Example

Example Wholesale Foods sends one invoice to a convenience store with taxable and GST-free lines.

- Bread and milk, GST-free: $620.00 (Coded to cost of goods, GST-free)
- Soft drinks, taxable: $480.00 (Coded to cost of goods, 10% GST)
- Delivery fee: $40.00 (Coded to freight in, 10% GST)

Each line goes to the right account and tax code for that store. GST is $52 on the taxable lines only.

## Common mistakes

- Coding the whole bill as taxable.
- Letting each store pick its own account for the same type of cost.

## Step-by-step guides for S/4HANA

- How to enter a supplier invoice with line items in S/4HANA: https://www.pulsify.tech/how-to/enter-a-supplier-bill-with-line-items-in-sap-s4hana/
- How to code a supplier invoice with mixed GST lines in S/4HANA: https://www.pulsify.tech/how-to/code-a-bill-with-mixed-gst-lines-in-sap-s4hana/
- How to code one supplier invoice to several G/L account codes in S/4HANA: https://www.pulsify.tech/how-to/code-one-bill-to-several-accounts-in-sap-s4hana/

## What Pulsify adds

Pulsify reads each line and suggests its G/L account and tax code from how that supplier was coded before. Pulsify connects to S/4HANA. We set up the connection for you. More: https://www.pulsify.tech/automated-line-item-coding/

## Common questions

### How should a retailer code one bill across several stores in S/4HANA?

For a PO item, use multiple account assignment and split by quantity or percentage. For a bill with no PO, add one G/L account item per store with its cost centre. Set the tax code on each item.

### How should a retailer code mixed GST bills?

Code each line to its own GST treatment. Basic food is generally GST-free and drinks or non-food lines are taxable. Check each line against the ATO guide.

### Does S/4HANA remember the expense account for a supplier?

The supplier master holds the reconciliation account and payment terms. It does not hold a default expense account for non-PO invoices. For repeat invoices SAP offers a recurring entry or an invoice template.

## Sources

- https://help.sap.com/docs/SAP_S4HANA_CLOUD/0e602d466b99490187fcbb30d1dc897c/6477415e495f4025a7c8774db864a492.html
- https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/af9ef57f504840d2b81be8667206d485/ec7db65334e6b54ce10000000a174cb4.html
- https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/af9ef57f504840d2b81be8667206d485/4e246b54f94c8f4ce10000000a4450e5.html
- https://help.sap.com/docs/SAP_S4HANA_CLOUD/0e602d466b99490187fcbb30d1dc897c/85cd144f64cd4909989bd4eb0366fdd9.html
- https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/4e132486a4aa48479fa1f73c152633d6/af02951c83b84760bebb395f3c2bb72b.html
- https://www.ato.gov.au/businesses-and-organisations/gst-excise-and-indirect-taxes/gst/in-detail/your-industry/gst-and-food/gst-free-food
- https://www.ato.gov.au/businesses-and-organisations/gst-excise-and-indirect-taxes/gst/tax-invoices

Source: https://www.pulsify.tech/line-item-coding-in-sap-s4hana-for-retailers/ (last checked 2026-10-19)
