Stock Transfer Order (also known as STO or Transport Order) are used to transfer products from one plant to another plant. This guide will cover the STO Intracompany (when the 2 plants belongs to the same company code). In Brasil, a nota fiscal and taxes calculation are not only required when goods are sold to customers (and other goods movements) but also when products are transferred between plants. To be able to generate a STO using MRP, the goods issue is done via SD Delivery Note and the goods receipt is processed via MM goods receipt functionality, and with all settings in place, it will cover the requirements of Nota Fiscal Outgoing and Nota Fiscal Incoming with taxes calculation and etc.

This guide is a “guidance” but depending on your business requirements and the way how the process will be handled, it may change slightly. I am assuming you have some SAP experience when reading this guide, that is, you may disagree of one or other configuration in here, that’s ok! There is not only one way to some of those configurations.

Companies and Consultants may diverge on the responsibilities on this process. Is that MM? Is that SD? The answer is that it is Cross-Function; It is a split responsibility between MM and SD (Logistics), however, it is common that an expert MM can do all the settings or a strong SD can do all by himself.

The posting steps are as follows:

  1. Create a stock transfer order (UB or equivalent) in the receiving plant within MM using Transaction ME27 or ME21N and Item type ‘U’
  2. Generate delivery document within SD using transaction VL10B
  3. Picking and posting goods issue in SD using transaction VL02N
  4. Output (submit for approval) the Electronic Nota Fiscal (J1BNFE)
  5. Posting goods receipt in MM using transaction MB0A or MIGO and movement type 861

picture1

  • The STO document Type is defined in Customizing. The assignment between Supplying Plant and Receiving Plant will define the correct STO Document Type;
  • The delivery type is defined via customizing, maintained via assignment between STO Type and Supplying Plant;
  • During creation of the Delivery Document, the item category is defined based on delivery type and item category group (based on material);
  • Based on the Delivery Document, the PGI will trigger the Stock movements using Mvt. Type 862 which is Nota Fiscal Relevant.
  • The NF-type is determined via the Delivery Item Category. A sales order item category is linked to this delivery item category. Via Customizing a NF-type is linked to this sales order type, sales order item category;

Receiving Plant must post GR in reference to the Nf-e created by Supplying Plant using the Mvt. Type 861

ACCOUNTING

Accounting at the Plant-to-Plant – Brazil – Intracompany Stock Transfer Order. I added the Plant numbers and G/L Account numbers in my example below to help understanding.

1) Goods Issue at issuing Plant (1440)

  • Debit – Stock at Receiving Plant (5611)
  • Credit – Stock at issuing Plant (1440)
  • Credit – ICMS Due (recolher) at Issuing Plant (1440) 21305401
  • Debit – Tax Transitory (TXO) 11513410

2) Goods Receipt at the Receiving Plant (5611)

  • Debit – ICMS Credit (recover) at receiving Plant (5611) 11513410
  • Credit – Tax Transitory (TXO) 11513410

Goods Issue from 1440 to 5611

STO-GoodsIssue

Goods Receipt from 5611 to 1440

STO-GoodsReceipt

The configuration and processing steps in this post may vary slightly depending on your own requirements. But I believe that this guide will help you troubleshooting or implementing the STO intracompany process in Brazil.

MOVEMENT TYPES

You may have noticed by the chart above that there are four new movement types used to post a stock transfer order:

  • Movement type 861 for Goods Receipt
  • Movement type 862 for Goods Issue
  • Movement type 863 for Return of Goods Receipt
  • Movement type 864 for Return of Goods Issue

Those movement types are required as Taxes needs to be calculated through goods movement and nota fiscal needs to be triggered by those movements.

If you don’t have those movements in your system, you may want to look the OSS Note 323649 – BR/TF: Creation movement types for Stock Transfer

After getting the movements created, you will also need to adjust table T156SC;

Check OSS Note 805584 – M7226 error with movement 645 for a non valuated material

The OSS Note explains an issue with the movement 645 (which is the “corresponding” to 862 in the STO process outside of Brasil environment):

t156sc

You will also need to maintain the table T156SY

OSS Note 1876282 – Error M7021 in stock transfer return when post goods receipt

t156sy

And finally you will have to maintain the table V_156X_VC:

v_156x_vc

EVALUATING MOVEMENT TYPE FOR LIS UPDATE

In transaction SM30, maintain the table TMCA.

Copy all entries for movement type 101 to movement type 861:

tmca861

Copy all entries for movement type 641 to movement type 862:

tmca862

Copy all entries for movement type 861 to movement type 863:

tmca863

Copy all entries for movement type 862 to movement type 864:

tmca864

Save the changes.

CREATE NEW SALES ORDER TYPE

IMG > Sales and Distribution > Sales > Sales Documents > Sales Document Header > Define Sales Document Type (VOV8)

Here you will need to create a new sales order type copying from standard DLB to TFST – BR Plant Transf. STO

create-new-sales-order-type1create-new-sales-order-type2

CREATE SALES DOCUMENT ITEM TYPE

IMG > Sales and Distribution > Sales > Sales Documents > Sales Document Item > Define Item Categories

The next step is going to be create a Sales Order Item type; therefore, you will have to copy from NLNB to TFDP – BR Plant Transf. STO

create-sales-document-item-type

CREATE DELIVERY TYPE

IMG > Logistics Execution > Shipping > Deliveries > Define delivery types (OVLK)

Create a new delivery type copying from NL to TFDT – BR Transf. STO Dlv. and assign default Order Type TFST.

CREATE DELIVERY TYPE.png

ASSIGN DELIVERY TYPE TO ITEM TYPE

IMG > Logistics Execution > Shipping > Deliveries > Define Item Category Determination in Deliveries

Add a new entry for:

  • DlvT=TFDT            
  • Use=V                     
  • ItmC=”                   
  • ItmC=TFDP

Assignments here needs to be done based on the values you are using to item category, usage and etc., below is one example:

assign-delivery-type-to-item-type

DEFINE SCHEDULE LINES CATEGORIES

IMG > Sales and Distribution > Sales > Sales Documents > Schedule Lines > Define Schedule Line Categories

  • Add a new entry: TF
  • Item rel.f.dlv = X
  • Movement type = Movement type of GI = 862
  • Movement type 1-step = Movement type of GI = 862

DEFINE SCHEDULE LINES CATEGORIES.png

ASSIGN SCHEDULE LINES CATEGORIES

IMG > Sales and Distribution > Sales > Sales Documents > Schedule Lines > Assign Schedule Line Categories

Add the entry:

  • Item category=TFDP
  • PropSchdLneCat.= TF

assign-schedule-lines-categories

SPECIFY COPY CONTROL FOR DELIVERIES

IMG > Logistics Execution > Shipping > Copying Control > Specify Copy Control for Deliveries

Copy item NL-DL and change NL to TFDT and DL to TFST

specify-copy-control-for-deliveries1specify-copy-control-for-deliveries2

NOTA FISCAL SALES DOCUMENT ITEM CATEGORY

IMG > Sales and Distribution > Billing > Billing Documents > Country-specific Features > Brazil > Maintain Sales Document Item Category

This is the famous (or infamous) J_1BSDICA table, that you can also maintain via SM30;

Here you will add the following:

Sales doc typ = TFST           Item cat. = TFDP                  NF rec.ty. = 2                         Partner id = RE                      Tax Code = I1

ICMS Law = IC0                     IPI Law = IP2                          COFINS Law = CO8              PIS Law = PI8

Note that the Tax Code, ICMS Law, IPI Law, COFINS Law and PIS Law may vary from what you have in your system…

nota-fiscal-sales-document-item-category

SPECIFY NOTA FISCAL CATEGORY

IMG > Sales and Distribution > Billing > Billing Documents > Country-specific Features > Brazil > Assign Nota Fiscal Type to Sales Document Types

Assign here the NFe Outgoing NF Type

specify-nota-fiscal-category

DEFINE PRICE PROCEDURE

IMG > Sales and Distribution > Basic Functions > Pricing > Pricing Control > Define and Assign Pricing Procedure

Define document pricing procedure > new entry T for Transfer

define-document-pricing-procedure

Assign document pricing procedures to order types > TFST = T

assign-document-pricing-procedures-to-order-types

Assign document pricing procedures to billing types

assign-document-pricing-procedures-to-billing-types

Maintain pricing procedures > Create as ZBRTRA – Brazil STO Price Procedure as below:

maintain-pricing-procedures

Define Pricing Procedure Determination > Assign document T and new procedure for transfer ZBRTRA, Condition type=VPRS

define-pricing-procedure-determination

ASSIGN PRICE PROCEDURE TO DELIVERY TYPE

IMG > Logistics Execution > Shipping> Basic Shipping  Functions > Pricing > Define Pricing Procedures for Delivery

Assign the pricing procedure for transfer to the transfer delivery type

assign-price-procedure-to-delivery-type

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

TC at GR > Tax code used in MM for GR, e.g. I1

SD TC > Billing document tax code used in SD, e.g. I1

  • TC                               COFINS Law                            PIS Law
  • A0                              C08                                             P08
  • A1                              C08                                             P08
  • A3                              C08                                             P08
  • I0                                C08                                             P08
  • I1                                C08                                             P08
  • I3                                C08                                             P08

tax-code-assignments1tax-code-assignments2

SPECIAL CONDITIONS FOR PRICING

IMG > Sales and Distribution > Billing > Billing Documents > Country-specific Features > Brazil > Special Conditions For Pricing

special-conditions-for-pricing

ASSIGN DELIVERY TYPE AND CHECKING RULE

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

assign-delivery-type-and-checking-rule

ASSIGN DOCUMENT TYPE, ONE-STEP PROCEDURE, UNDER DELIVERY TOLERANCE

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

assign-document-type-one-step-procedure-under-delivery-tolerance

NOTA FISCAL CATEGORY DERIVATION

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

Go to Menu > Nota Fiscal > Inventory Management > NF Category Derivation

Setup as follow:

nota-fiscal-category-derivation

OUTGOING CFOP DETERMINATION

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

outgoing-cfop-determination

INCOMING CFOP DETERMINATION

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

incoming-cfop-determination

This guide was based on SAP Note 199233 and 888805, I recommend you going over those OSS Notes along with this guide to assist you getting the Stock Transfer Order – Intracompany process working.

stacker-cranes-for-pallets

I hope you found this post useful.