A stock transport order (STO) moves stock from one plant to another. This guide covers the intracompany STO, where both plants belong to the same company code.
In Brazil, a transfer between plants needs a nota fiscal and tax calculation, just like a sale. With MRP generating the STO, goods issue runs through an SD delivery and goods receipt through MM. With the settings below, that covers the outgoing and incoming nota fiscal, including taxes.
Treat this as guidance. Your requirements may change some settings, and there is more than one valid way to configure several of them. The process is cross-functional between MM and SD, though one strong MM or SD consultant can usually configure all of it.
Process steps
- Create the STO (document type UB or equivalent, item category U) in the receiving plant with ME21N or ME27.
- Create the delivery with VL10B.
- Pick and post goods issue with VL02N.
- Send the NF-e for authorization (J1BNFE).
- Post goods receipt with MIGO or MB0A, movement type 861.

How the documents are determined:
- The supplying and receiving plant combination determines the STO document type (Customizing).
- The STO type and supplying plant determine the delivery type.
- Delivery type and the material’s item category group determine the delivery item category.
- Goods issue posts movement type 862, which is nota fiscal relevant.
- The delivery item category links to a sales order item category, which Customizing links to the NF type.
- The receiving plant posts GR with movement type 861, referencing the supplying plant’s NF-e.
Accounting
Example with plant numbers and G/L accounts:
Goods issue at the issuing plant (1440)
- Debit: stock at receiving plant (5611)
- Credit: stock at issuing plant (1440)
- Credit: ICMS payable at issuing plant (1440), 21305401
- Debit: tax transitory (TXO), 11513410
Goods receipt at the receiving plant (5611)
- Debit: ICMS recoverable at receiving plant (5611), 11513410
- Credit: tax transitory (TXO), 11513410
Goods issue from 1440 to 5611

Goods receipt at 5611

Movement types
Four Brazil-specific movement types post the STO, because taxes are calculated and the nota fiscal is triggered from the goods movement:
| Movement type | Use |
|---|---|
| 861 | Goods receipt |
| 862 | Goods issue |
| 863 | Return of goods receipt |
| 864 | Return of goods issue |
If they’re missing, see SAP Note 323649 – BR/TF: Creation movement types for Stock Transfer.
Then adjust table T156SC. See SAP Note 805584 – M7226 error with movement 645 for a non valuated material. Movement 645 is the non-Brazil equivalent of 862.

Maintain table T156SY. See SAP Note 1876282 – Error M7021 in stock transfer return when post goods receipt.

Maintain table V_156X_VC.

LIS update for the movement types
In SM30, table TMCA, copy all entries:
| From | To |
|---|---|
| 101 | 861 |
| 641 | 862 |
| 861 | 863 |
| 862 | 864 |




Save the changes.
Sales order type
IMG > Sales and Distribution > Sales > Sales Documents > Sales Document Header > Define Sales Document Type (VOV8)
Copy DLB to TFST – BR Plant Transf. STO.


Sales document item category
IMG > Sales and Distribution > Sales > Sales Documents > Sales Document Item > Define Item Categories
Copy NLNB to TFDP – BR Plant Transf. STO.

Delivery type
IMG > Logistics Execution > Shipping > Deliveries > Define Delivery Types (OVLK)
Copy NL to TFDT – BR Transf. STO Dlv. and set default order type TFST.

Item category determination in deliveries
IMG > Logistics Execution > Shipping > Deliveries > Define Item Category Determination in Deliveries
Add: DlvT = TFDT, Usage = V, ItmCatGrp = blank, ItmC = TFDP. Adjust to the item category group and usage values you use.

Schedule line category
IMG > Sales and Distribution > Sales > Sales Documents > Schedule Lines > Define Schedule Line Categories
New entry TF: Item rel. for dlv = X, movement type 862, movement type 1-step 862.

Then, under Assign Schedule Line Categories, item category TFDP gets proposed schedule line category TF.

Copy control for deliveries
IMG > Logistics Execution > Shipping > Copying Control > Specify Copy Control for Deliveries
Copy NL-DL and change it to TFDT-TFST.


Nota fiscal sales document item category (J_1BSDICA)
IMG > Sales and Distribution > Billing > Billing Documents > Country-specific Features > Brazil > Maintain Sales Document Item Category (or SM30, J_1BSDICA)
| Field | Value |
|---|---|
| Sales doc type | TFST |
| Item category | TFDP |
| NF rec. type | 2 |
| Partner ID | RE |
| Tax code | I1 |
| ICMS law | IC0 |
| IPI law | IP2 |
| COFINS law | C08 |
| PIS law | P08 |
Tax code and tax laws depend on your system.

Nota fiscal type by sales document type
IMG > Sales and Distribution > Billing > Billing Documents > Country-specific Features > Brazil > Assign Nota Fiscal Type to Sales Document Types
Assign the outgoing NF-e type.

Pricing procedure
IMG > Sales and Distribution > Basic Functions > Pricing > Pricing Control > Define and Assign Pricing Procedure
Define document pricing procedure T (Transfer).

Assign it to order type TFST.

Assign it to the billing type.

Create pricing procedure ZBRTRA – Brazil STO Price Procedure.

In pricing procedure determination, assign document procedure T to ZBRTRA with condition type VPRS.

Then assign ZBRTRA to the transfer delivery type: IMG > Logistics Execution > Shipping > Basic Shipping Functions > Pricing > Define Pricing Procedures for Delivery.

Tax code assignments
IMG > Financial Accounting (New) > Financial Accounting Global Settings (New) > Tax on Sales/Purchases > Calculation > Settings for Tax Calculation in Brazil > Access Tax Manager’s Workplace
Set the GR tax code (MM, e.g. I1) and the billing tax code (SD, e.g. I1), with these PIS and COFINS laws:
| Tax code | COFINS law | PIS law |
|---|---|---|
| A0 | C08 | P08 |
| A1 | C08 | P08 |
| A3 | C08 | P08 |
| I0 | C08 | P08 |
| I1 | C08 | P08 |
| I3 | C08 | P08 |


Special conditions for pricing
IMG > Sales and Distribution > Billing > Billing Documents > Country-specific Features > Brazil > Special Conditions for Pricing

STO setup in purchasing
IMG > Materials Management > Purchasing > Purchase Order > Set up Stock Transport Order > Assign Delivery Type and Checking Rule

IMG > Materials Management > Purchasing > Purchase Order > Set up Stock Transport Order > Assign Document Type, One-Step Procedure, Underdelivery Tolerance

NF category derivation
In the Tax Manager’s Workplace (same path as above), go to Nota Fiscal > Inventory Management > NF Category Derivation.

CFOP determination
IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Define CFOP Determination for Outgoing and Returns (Versioned)

IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Define CFOP Determination for Incoming and Returns (Versioned)

This guide is based on SAP Notes 199233 and 888805. Read them alongside it when setting up or troubleshooting the intracompany STO.



Leave a Reply