Automation of Sto Process
Automation of Sto Process
Basic Scenarios
STO can be categorized into four types depending on different scenarios.
Scenarios SD/LE MM
In two steps Delivery item category: NLN > UB Stock transport ord., with "U" item category
Billing relevance: Not relevant > NB Standard PO, with "blank" item category
In two steps Delivery item category: NLN > UB Stock transport ord., with "U" item category
Billing relevance: Not relevant > NB Standard PO, with "blank" item category
in one step Delivery item category: NLC > NB Standard PO, with "blank" item category
in two steps Delivery item category: NLC > NB Standard PO, with "blank" item category
o If there is still open quantity to be delivered, "deliv. creation date" (EKPV-LEDAT) filled has value. When all the quantity has been delivered, the date will be
cleared.
o If STO is ready to be delivered, system will update delivery due index table
VETVG.
1. Supplying Plant
(IMG -> MM -> Purchasing -> Purchasing Order -Set up Stock Transfer Order -> Define Shipping Data for Plants)
4. Delivery Type
(IMG -> MM -> Purchasing -> Purchasing Order -Set up Stock Transfer Order -> Assign Delivery Type and Checking Rule)
1. Sales Area: from supplying plant (T001W) (See SAP notes 169586, 170029, 170075, 170082, 303957)
2. Shipping Condition: default order type (‘DL’) for delivery type (TVLK-DAART), otherwise customer master data (KNVV-VSBED)Delivery priority:
6. Delivery Type: Purchase order category/document type/supplying plant (T161V, different delivery types)
8. Loading Group and Transportation Group: material master data (MARA, MARC)
9. Language of Material Description: customer master data (KNA1-SPRAS) (to read material master data from MAKT)
12. Indicator for Partial Deliveries: material/customer/distribution chain (KNMT), otherwise customer master data (KNVV-KZTLF)
o Index VETVG is needed for selection in VL10*/VL04. If a STO cannot be listed in VL10* / VL04, please check whether the index are updated correctly.
o Report ZKORVETV of note 61148 can be used to reorganize the delivery due index VETVG.
o Precondition of VETVG:
o Tcodes:
1. VL10* (VL10B, VL10D, VL10F...) In user role, "with purchase orders" indicator is flagged.
Goods Movement
o Goods issue with 641 creates a special stock type, called “stock-in-transit” in the receiving plant (MB5T)
o If replenishment delivery contains HU, after goods issue with 641 movement, the HU will have status "in transit". (VEKP-STATUS = 40).
o Goods issue with 643 (cross-company) doesn’t create such a stock and contains only one line in the GI material document
o Goods issue with 643 (cross-company) is nearly the same as goods issue with 601 to an external customer; you can only sum up the stock transport orders that
are open for goods receipt to determine what is “in transit” (stock type: “stock-in-transit-CC”)
o Goods receipt (with 101) is done via MB0A/MIGO with respect to the replenishment delivery.
o You can also use inbound delivery to post goods receipt. (Similar as normal purchasing order)
> When replenishment delivery is created, it will update PO history with delivery number, item number and delivery quantity.
> When posting GI, the material document will also be updated to PO history.
o PO Delivery Schedule (table EKET)
> When replenishment delivery is created, the delivery quantity will be cumulated to corresponding delivery schedule. (EKET-GLMNG field).
> When posting GI, the quantity will be cumulated to corresponding delivery schedule. (EKET-
WAMNG).
o Delivery schedule (EKET) must be consistent with PO history (EKBE), otherwise, short dump (message_type_x ME803) might occur.
order)
o set TVEP-BWA1S = 645/647 for SD schedule type NC/NN that belongs to item category NLC/NLN in TVEPZ (tcode
VOV6)
As of Release ECC 6.00, you can also use the automatic inbound delivery creation during two-step stock transfers. The inbound delivery is created using the output determination in the
outbound delivery. After the goods issue has been posted successfully,
the system uses a special function (output type SPED) to create the inbound delivery.
Short text
LOG_MM_SIT: Inbound Delivery with Stock in Transit (New)
Use
As of SAP enhancement package 5 for SAP ERP 6.0 (SAP_APPL_605), Business Function MM, Stock in Transit, and Actual Costing, you can use condition type SPED (Stock
Transfer Generates Inbound Delivery to specify that inbound deliveries with reference to an outbound delivery are automatically created for stock transfer processes with
receiving valuated stock in transit. The following functions are available for inbound deliveries with stock in transit:
At goods receipt you can post an inbound delivery either in the standard way (movement type 101), or via the receiving stock in transit to the receiving plant
(movement type 109).
If the quantity changes during the proof-of-delivery, the system updates the inbound delivery. In transaction VLPOD (Proof of Delivery), the system displays the
difference (POD Overview tab, Variance from Actual Delivered Quantity in Sales Unit).
The new transaction MB5SIT (Display Stock in Transit) allows you to
o Display receiving stock in transit for the intra-company and cross-company process, by entering the inbound delivery number
o Display issuing valuated and receiving valuated stock in transit
If you have created an inbound delivery using condition type SPED, you can post the material from issuing valuated stock in transit to receiving valuated stock in
transit in transaction VLPOD. To post into the receiving plant, you must use movement type 109 in transaction VL32N or MIGO.
Note:
If you have to enter a handling unit for the storage location in the receiving plant, post first into the valuated stock in transit of the receiving plant. From the valuated stock in
transit of the receiving plant, you can then post the goods receipt with reference to the inbound delivery into the storage location with mandatory handling unit.
Effects on Existing Data
Effects on Data Transfer
Effects on System Administration
Effects on Customizing
To set up inbound deliveries with stock in transit, you need to make the following settings in Customizing:
1. Check confirmation control key:
In Customizing, choose Materials Management -> Purchasing -> Confirmations -> Set Up Confirmation Control
For the confirmation control key 0004 (Inbound Delivery), the following must be flagged under Confirmation Sequence:
Select schema V10000 (Header Output) and choose Control Data. Check that an entry exists with condition type SPED (Stock Transfer Generates Inbund
Delivery) and Requirement 408 (Stock Transfer Attachment ID).
Check that for confirmation category LA (Inbound Delivery), the new fieldDelivery Type Inbound Stock in Transit (SiT) contains a delivery type for the process with
stock in transit (for example Inbound Delivery of Receiving Valuated Stock in Transit (ELST). This delivery type must use an item category (for example ELST) that
uses movement type 109 or another movement type with posting string reference 109. Check the following:
o In Customizing for Logistics Execution, under Shipping -> Deliveries -> Define Item Category Determination in Deliveries, check the item category that is
assigned to this delivery type.
o In Customizing, under Logistics Execution -> Shipping -> Deliveries ->Define Item Categories for Deliveries, check that movement type 109 or a
movement type with posting string reference 109 is assigned to this item category.
1. Set up condition record
You create inbound deliveries with this item category when processing output type SPED during the goods issue of an outbound delivery.
In transaction VV22 (Change Output - Condition Records: Shipping), ensure that the correct condition records for the outbound delivery type used (NCCR, NCC3,
NLIR, or NLI3) have been created for output type SPED for output determination.
Output type SPED with role WE (Goods Receiver), medium 8 (Special Function) and time 4 (Send Immediately (When Saving Application).
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Addresses (Business Address Services)
This documentation is copyright by SAP AG.
1. SPRO > MM > Purchasing > PO > Set up STO > Activate Automatic Delivery Creation and CRM Billing
Make sure that you use the proper document type ("F"), supplying plant, and creation indicator ("Y" in /SPE/V_T161V-AUTO_DELV)
Activate Automatic Delivery Creation and CRM Billing
Use
Requirements
Define Document Type. You may copy the document type Stock transport
order ('UB'), but you must set the Vendor indicator, to ensure that
the intra-company stock transport order copies the values from the
Activities
creation of the stock transport order, set the Auto Delv. indicator.
This does not apply for purchase orders that are not yet released and on
hold.
Further notes
o If you use this function the system does not perform an availability
processing.
active.
2. SPRO > MM > Purchasing > PO > Set up STO > Activate Automatic Delivery Creation for PO type and Shipping Point
3. Go to the transaction VL10CUC, choose the delivery creation profile 'STOA' and uncheck the indicator 'Georoute'.
Auto picking
1) Shipping points(V_TVST) details screen enter the below details under "Print picking List"
Output Type EK00
Message Language EN
Number of Messages 1
Send Time 4
Transmission Medium 1
2) via transaction VP01SHP under
Automatic PGI
you can create the PGI Atomatically by BATCH JOB using the program nder the VL23 transaction code.
Goto the Transaction code SM36 to create a job for the program SAPMSSY0 which is the program for the AUTO PGI
create a variant for the Delivery document types and sales organisation combinatioans and add this variant to the bath job created in SM36.
Set the time of the Job to run after every 5 minutes, so once the job exected it will pcik all the Deliveries which are pending for the PGI.
Automatic Billing
After the PGI done you can run SDBILLDL program to create the Billing for all the document which were cleared and due for Billing.VF04
1. RM06BB30(ZME59N)
2. SDV03V02(ZSTOV_V2)
3. RVV50R10C(ZVL10B/ZVL10D)
4. WS_MONITOR_OUTB_DEL_GDSI(ZVL23)
5. SDBILLDL/ RV60SBAT(ZVF06)/ BAPI_BILLINGDOC_CREATEMULTIPLE(ZBAPI_BILLINGDOC_CREATEMULTIPL)
6. J1I3/J_1I_BATCH_UTILIZATION_MODVAT(ZJ1I3)/ Z_J1I3- ZJ1I3
7. J1IP/J_1IPRNE(ZJ1IP)
8. WS_MONITOR_INB_DEL_GDRC(VL06IG)
00 06 589
FM - RV_INVOICE_CREATE