Neler Yeni
Hoş Geldiniz,

SAPOfis Türkiye üzerinde yer alan içeriklere erişim sağlayabilmek, projelerinizde karşılaştığınız sorunlara birlikte çözüm üretebilmek adına üye olunuz. Unutmayalım ki, bilgi paylaşıldıkça değer kazanır.

SAP BLOG Implementing Batch Split on PI Sheets – a hands on experience.

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
354
Beğeniler
4
Puanları
6
#1
Process Instruction Sheets provides a unified interface for accessing many functions of the production process.

It acts as a dashboard providing a homogeneous control over most of these processes. In process industries, it is quintessential to work with batches. Hence provision of options to work with batches and its handling mechanisms like determination, splitting is an obligation.

In this article, we will see the implementation details of determining batches from the PI sheet and accommodating split batches.

Master data details.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FBOM-1.jpg&hash=afaaa6794193d4e735dfd56ea518b6b1


SBS_HALB_2 is batch managed material for which we will configure batch determination.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FMaterial.jpg&hash=8ad803923d15c8efdb9b88b64dac2bf9


We will use the function module COPF_DETERMINE_BATCH to determine the batches. This module will be called on a button click from a PI sheet.

Simple XStep tree of the Process Order.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FPO.jpg&hash=de7760c2ff7746012e807412e80c5261


Parameters defined at the XStep node to assist the batch determination and the batch split process.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FXSteps_FM.jpg&hash=b96d196cf7767003a1387205ef14e86e


Notice the parameters LT_BAT, LT_QUA, LT_STO, and LT_UOM are defined as table parameters. These variables hold the determined split batches exported from the function module.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FXSteps_valuation.jpg&hash=21a9a802ad11747b4064a86b5fa386fc


For simplicity, I have hardcoded the reservation values. You can use parameters to determine reservations and pass them to batch determination process.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FFM_CALL.jpg&hash=b5a4fe243d56a580c452f3ab68a6dc7b


Complete set of Process Instructions for the function call to COPF_DETERMINE_BATCH. Notice the parameter IM_NUMBER_OF_SPLITS, it is different from the default value of ‘1’ in the function module.

This is how all the master data looks like and the setup is pretty straightforward. Before continuing I assume all the setup for Batch Management settings which are required for automatic batch determination, split batches are done in the standard. I will skip this since it is altogether a different topic.

Before we can determine the batches we need to make sure stock exists for the BOM component SBS_HALB_2.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FStock.jpg&hash=8bae3b074c42cc00a63444a9db3aafa7


Operating the PI sheet.

Now that the required data has been set up we will see the operation of the PI sheet.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FPI-Sheets-Before-DB.jpg&hash=40f4eb14559d2d4a9d51b092be403d90


proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FBD_Call-1.jpg&hash=fb1013e30a8964e0d8ea16587a9f5e11


This is how the PI Sheet looks like for the XSteps we configured some steps ago.

  • The material, requirement quantity, and plant are taken as input. The required quantity is the collective quantity for which batch determination needs to be executed.
  • The button “Determine Batch” will trigger the batch determination process.
  • The output of the determined batch splits will be populated in the Output Batches table.

The batch determination will now allow you to select split batches. Adjust the quantities and copy them. This is the standard batch split process triggered from the PI sheet.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FBatch-Splits.jpg&hash=331c8caed4ad2e7672add8249ea94655


The system will copy the selected split batches and populate them on the PI sheet output table.

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FOutput_1.jpg&hash=79e99787d7a71a4ae58c976d0595d096


proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F11%2FOutput_2.jpg&hash=1d1f80641a7fa742cab5d9b10c3e1bf0


These split batches are stored in the XSteps table parameters so they can be used either in the process messages or for further processing in the PI sheet business logic.

Concluding remarks.

To start with, we wanted to implement the batch split function from the PI sheets. I believe though the process looks lengthy it is pretty simple to implement.

The process involves two simple steps:

  1. Using the COPF_DETERMINE_FUNCTION to help determine the batched based on certain criteria. An important point to remember here is to override the variables’ IM_NUMBER_OF_SPLITS default value of 1.
  2. Secondly using table parameters to capture the split batches. These parameters can further be used as inputs to other business processes on the PI sheet.

Okumaya devam et...
 
Üst