SlideShare a Scribd company logo
1 of 24
SAP PI Sheet (Xstep) integration with
Weighing Machine/Scale
By,
Ankit Sharma
SAP PP Consultant
businessconsulting007@gmail.com
+91 – 8888896575 / 8888632763
Contents
Introduction ............................................................................................................................................3
Brief of Scale Integration with PI sheet ..................................................................................................3
Source and Target System Description………………………………………………………………………………………………5
Architect Design………………………………………………………………………………………………………………………………..5
Trigger Event…………………………………………………………………………………………………………………………….……….7
Steps required to integrate SAP and ERP Scale…………………………………………………………………………………..7
Setting up RFC destination for ERP-Scale…………………………………………………………………………………………..8
Define the SAP RFC connection settings in ERP-Scale……………………………………………………………………….10
Define the communication settings…………………………………………………………………………………………………12
Create the parsing settings and map the device input data to the data fields………………………………….12
If using an SAP ODA data subscription, check the dead-band settings……………………………………………..13
Create the OPC Data Access Item in SAP ODA………………………………………………………………………………….13
Create XStep Repository………………………………………………………………………………………………………………….18
Type of Weighing Machine/Scale in Pharmaceutical……………………………………………………………………….22
Reading of Weight on PI Sheet from Weighing Machine/Scale………………………………………………………..23
Error Monitoring & Resolution – Failure Points……………………………………………………………………………….25
Summary*
This document is related to SAP PI Sheet (XStep) integration with Weighing Machine/Scale.
Introduction
Accurate weights are vital in any manufacturing process. In Pharmaceutical industry it comes under
GMP. A slight wrong weight in medicine manufacturing can cause several death.
ERP-Scale interfaces weigh scales and other analytical devices with:
SAP OPC Data Access (SAP ODA)
 In PI-Sheets and XSteps to support weighing of components for goods-issues including target
weighing using a weighing bar and goods-receipts of finished or semi-finished products
 Using data access subscriptions to automatically trigger functions in SAP (e.g. order
confirmation) when the weight is received from the scale
 In manufacturing cockpits
The Interface between SAP PI sheet and the W&D scales needs to be setup in order to transmit
weight data from scales to SAP PI sheets. Another middleware third party software called ERP scale
will be used to facilitate communication between SAP and the scales.
This document covers SAP settings and overall architecture details and basic settings required in the
third party ERP Scale software on the scales.
Brief of Scale Integration
ERP-Scale includes an interface to SAP ODA. Ideal for use in PI-Sheets and XSteps, this allows access
to the weigh scale using the SAP ODA functionality for OPC data access. SAP’s ODA Connector is not
required as ERP-Scale provides full access to your weighing equipment in one easy-to-install and
implement package including reading and writing data access items.
Using SAP ODA Data subscriptions, you can use ERP-Scale to trigger a function in SAP when a new
weight is received without any operator intervention.
At Pocket Programs we are currently working on a new version of ERP-Scale V4.1 which supports the
SAP ODA interface (without requiring the SAP ODA Connector). The integration of SAP ODA and PI-
Sheets is simpler than using the HUPAST RFC.
Three easy steps to weigh scale integration with SAP:
 Download and install ERP-Scale
 Configure the SAP packing station profile and RFC destination
 Import the SAP configuration into ERP-Scale and define the weighing device communication
parameters
Source and Target Systems Description
 SAP: Back-end system is the ERP system, where all the master and transactional data are
located.
 ERP Scale: A third party software provided by a company called Pocket programs
(www.pocketprograms.com)
 Weighing Scales: Devices in warehouse/dispensing locations in the manufacturing area to
weigh out for consumptions.
Architect Design:
Below diagram shows Interface Architecture:
Trigger Event:
Trigger
Event
Description
Real Time
or Batch
Manual click
on read
scale button
Once the User clicks on the read scale button the
weight along with the UOM from the scale is
populated on the PI sheet fields.
Real Time
Steps required to integrate SAP and ERP Scale.
SAP ODA and ERP-Scale can be used to provide automatic input of weight data to SAP for use in PI-
Sheets, X-Steps and Electronic work instructions (EWI).
To use ERP-Scale with SAP ODA we need to complete below steps:
1. Create the RFC destination for ERP-Scale
2. Define the SAP RFC connection settings in ERP-Scale
3. Define the communication settings
4. Create the parsing settings and map the device input data to the datafields
5. If using an SAP ODA data subscription, check the dead-band settings
6. Create the OPC Data Access Item in SAP ODA
A. Setting up RFC Destination for ERP Scale:
Step 1: Define RFC Destination for SAP ODA
The Sap-Scale server communicates directly with SAP using various SAP Customer Released RFCs.
Each Sap-Scale server can accept RFC requests from multiple SAP systems simultaneously. This
simplifies testing as it can communicate with the development and production SAP systems at the
same time.
Active Tick this box if the Sap-Scale server should register
with the RFC destination specified
Gateway Host Enter the network address of the SAP host. Routing
information can be entered in front of the hostname
e.g. /H/sapserv3.test.com/S/3296/H/cpff551.test.com
Host Type Select ERP if communicating with an ECC system (e.g.
SAPODA, HUPAST, and QM-IDI) or EWM if the host is
an SCM system. Select ERP&ECM if the host is an ECC
system with the EWM extension installed
Gateway Service The gateway service. See section
Sap Program ID The RFC registered program name.
Count The number of servers to register for the RFC
destination. If the Sap-Server has a single weighing-
device attached, use 1 server. If the Sap-Scale server
provides the interface for multiple weighing devices,
enter a larger number
Step 2: Check Connection Test
B. Define the SAP RFC connection settings in ERP-Scale.
The Sap-Scale server communicates directly with SAP using various SAP Customer Released RFCs.
Each Sap-Scale server can accept RFC requests from multiple SAP systems simultaneously. This
simplifies testing as it can communicate with the development and production SAP systems at the
same time.
**This setting need to be done by ERP Scale team.
Active Tick this box if the Sap-Scale server should register
with the RFC destination specified
Gateway Host Enter the network address of the SAP host. Routing
information can be entered in front of the hostname
e.g. /H/sapserv3.test.com/S/3296/H/cpff551.test.com
Host Type Select ERP if communicating with an ECC system (e.g.
SAPODA, HUPAST, and QM-IDI) or EWM if the host is
an SCM system. Select ERP&ECM if the host is an ECC
system with the EWM extension installed
Gateway Service The gateway service.
Sap Program ID The RFC registered program name
Count The number of servers to register for the RFC
destination. If the Sap-Server has a single weighing-
device attached, use 1 server. If the Sap-Scale server
provides the interface for multiple weighing devices,
enter a larger number
Mapping ERP Scale data based on RFC Destination Data.
C. Define the communication settings, see section
Configuring Devices
The ERP-Scale configuration utility supports the definition of Sap Scale Server settings on a remote
computer. However, for physical devices connected directly to a PC (serial or USB), we advise
running the configuration utility directly on the PC.
**This setting need to be done from ERP Scale team.
D. Create the parsing settings and map the device input data to the
data fields.
Data parsing defines how the Sap-Scale server takes the input message received from the device and
extracts the weight, unit of measure and other values to be returned to SAP. It also has settings to
detect if the scale has motion on it.
Click on Filter from the main console to access the parse settings
**This setting need to be done from ERP Scale team.
E. If using an SAP ODA data subscription, check the dead-band
settings
The settings for the Data Access Item in SAP ODA include a deadband value %. When the value
change from the device exceeds the deadband value, the value is sent to SAP. The value range
defines the maximum expected value for numeric data from the device. E.g. if the value from the
device changes by 15 and the value range is set at 1000, then that indicates a 1.5% change.
In some cases the data returned to SAP will include additional values (e.g. material or PLU code). In
this case a separate field can be used to determine the deadband value.
Example:
F. Create the OPC Data Access Item in SAP ODA.
When using ERP-Scale with SAP ODA, you use the settings for SAP ODA to define the following:
1. The OPC Server for each ERP-Scale installation
2. The OPC Data Access Items you wish to access in ERP-Scale.
You can access the OPC Settings using SAP transaction COOPC1.
Create SAP ODA OPC Server for ERP-Scale
It is advised not to use a value below 500ms for the Update Rate and Time between Two access
Attempts.
Once the settings have been entered and saved, you can test the connection (Ensure you have
saved the entries or the connection test may fail):
Check the Connection
Server Running – Green Light
Create SAP ODA OPC Data Access Items
Access Type ERP-Scale will read data directly from the device if
Device Data Access is selected. ERP-Scale will
return a previously read value if Cache Data Access
is selected and the value is not older than the
buffer time. If the value is older than the buffer
time, then the status
‘Obsolete’ will be returned.
Buffer Time Determines how long cached data is valid
Deadband% Sets the minimum value change in % for a data
subscription to report an updated value.
Once the value has been saved, test the connection by clicking Read Synchronously:
Value (Weight on Scale 6) – 16.9
Read weight on Scale 9:
After creating an SAP ODA OPC Data Access Item, it can be accessed from a PI-Sheet or
electronic work instruction (EWI).
Create Xstep Repository:
Define Parameter:
Select Scope of Generation:
Select Destination:
Create Process Instruction:
Cretae Manufacturing Data Access:
Create Parameter Value for Weight:
Create Parameter Value for UOM:
Type of Weighing Machine/Scale in Pharmaceutical:
Reading of Weight on PI Sheet from Weighing Machine/Scale:
Weight – 0.02
UOM - KG
Reduce some weight from Weighing Machine…
Weight – 0.01
UOM - KG
We can change Look and Feel of PI sheet based on Customer Requirement:
Error Monitoring & Resolution – Failure Points
• Error due to RFC Destination connection – Work with BASIS team to resolve issue
• Error due to OPC SERVERS & OPC DATA ACESS - someone may have changed the OPC server
id and OPC item id. Contact with SAP PP team and ERP Scale team.
• Error due to connectivity of laptops– someone may have turned off the laptops – Work with
business to check the connectivity of laptops at manufacturing area
• Error due to update in XSteps repository – Considering many new requirements for PI sheet
that requires updates to XSteps repository in production system
• Error due to C_COOPC1 authorization to read weight from scale –proper authorization is not
maintained for PI sheet roles – work with Security team
• Error due to scale connectivity of reporting data – ERP scale licenses may be expired which
needs to be renewed annually – Reach out to business

More Related Content

Similar to SAP PI Sheet (Xstep) integration with Weighing Machine/Scale

SAP & MapR Solution Brief 2015
SAP & MapR Solution Brief 2015SAP & MapR Solution Brief 2015
SAP & MapR Solution Brief 2015
Vishwas Tengse
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
Phani Kumar
 
Enterprise Reporting for ERP Systems
Enterprise Reporting for ERP SystemsEnterprise Reporting for ERP Systems
Enterprise Reporting for ERP Systems
Ambareesh Kulkarni
 
Sap implementation
Sap implementationSap implementation
Sap implementation
sydraza786
 

Similar to SAP PI Sheet (Xstep) integration with Weighing Machine/Scale (20)

Notes1
Notes1Notes1
Notes1
 
Integrating SAP and Low-Code Plaforms
Integrating SAP and Low-Code PlaformsIntegrating SAP and Low-Code Plaforms
Integrating SAP and Low-Code Plaforms
 
Sap plant connectivity (p co)
Sap plant connectivity (p co)Sap plant connectivity (p co)
Sap plant connectivity (p co)
 
Mule sap connector
Mule sap connectorMule sap connector
Mule sap connector
 
Usgage of ABAP in BI
Usgage of ABAP in BIUsgage of ABAP in BI
Usgage of ABAP in BI
 
FRIC - The Power Of Four. VCPowerPack14.
FRIC - The Power Of Four. VCPowerPack14.FRIC - The Power Of Four. VCPowerPack14.
FRIC - The Power Of Four. VCPowerPack14.
 
Programming Interface & SAP BDC
Programming Interface & SAP BDCProgramming Interface & SAP BDC
Programming Interface & SAP BDC
 
Features of Mule SAP Connector
Features of Mule SAP ConnectorFeatures of Mule SAP Connector
Features of Mule SAP Connector
 
Integration with SAP using Mule ESB
Integration with SAP using Mule ESBIntegration with SAP using Mule ESB
Integration with SAP using Mule ESB
 
SAP & MapR Solution Brief 2015
SAP & MapR Solution Brief 2015SAP & MapR Solution Brief 2015
SAP & MapR Solution Brief 2015
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
 
PeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance TunningPeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance Tunning
 
Sap bc performance test
Sap bc performance testSap bc performance test
Sap bc performance test
 
Enterprise Reporting for ERP Systems
Enterprise Reporting for ERP SystemsEnterprise Reporting for ERP Systems
Enterprise Reporting for ERP Systems
 
New microsoft office word document (4)
New microsoft office word document (4)New microsoft office word document (4)
New microsoft office word document (4)
 
Sap implementation
Sap implementationSap implementation
Sap implementation
 
Pi pcs interface
Pi pcs interfacePi pcs interface
Pi pcs interface
 
Introduction to Structured Streaming
Introduction to Structured StreamingIntroduction to Structured Streaming
Introduction to Structured Streaming
 
sap
sap sap
sap
 
Lsmw
LsmwLsmw
Lsmw
 

More from Ankit Sharma

More from Ankit Sharma (19)

Dynamic Function Call in PI Sheet (XStep)
Dynamic Function Call in PI Sheet (XStep)Dynamic Function Call in PI Sheet (XStep)
Dynamic Function Call in PI Sheet (XStep)
 
The 8 waste in Lean Manufacturing - Lean Six Sigma Training
The 8 waste in Lean Manufacturing - Lean Six Sigma TrainingThe 8 waste in Lean Manufacturing - Lean Six Sigma Training
The 8 waste in Lean Manufacturing - Lean Six Sigma Training
 
SAP PI Sheet integration with DMS(Document Management System)
SAP PI Sheet integration with DMS(Document Management System)SAP PI Sheet integration with DMS(Document Management System)
SAP PI Sheet integration with DMS(Document Management System)
 
Multiple Work Center/Resource Selection and Classification in Master Recipe f...
Multiple Work Center/Resource Selection and Classification in Master Recipe f...Multiple Work Center/Resource Selection and Classification in Master Recipe f...
Multiple Work Center/Resource Selection and Classification in Master Recipe f...
 
Learn Process order confirmation via XStep and PI sheet
Learn Process order confirmation via XStep and PI sheetLearn Process order confirmation via XStep and PI sheet
Learn Process order confirmation via XStep and PI sheet
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
 
SAP Sales and Operational Planning -SOP
SAP Sales and Operational Planning -SOPSAP Sales and Operational Planning -SOP
SAP Sales and Operational Planning -SOP
 
One Page Resume
One Page ResumeOne Page Resume
One Page Resume
 
SAP Long Term PLANNING
SAP Long Term PLANNINGSAP Long Term PLANNING
SAP Long Term PLANNING
 
Sales and Operation Planning in SAP
Sales and Operation Planning in SAPSales and Operation Planning in SAP
Sales and Operation Planning in SAP
 
Recurring inspection in QM
Recurring inspection in QMRecurring inspection in QM
Recurring inspection in QM
 
Good Receipt via XStep - Process Management
Good Receipt via XStep - Process ManagementGood Receipt via XStep - Process Management
Good Receipt via XStep - Process Management
 
Learn good issue via X-step
Learn good issue via X-step Learn good issue via X-step
Learn good issue via X-step
 
Create SAP Xstep - SAP PP-PI
Create SAP Xstep - SAP PP-PICreate SAP Xstep - SAP PP-PI
Create SAP Xstep - SAP PP-PI
 
SAP GUI and Navigation - Quick Guide
SAP GUI and Navigation - Quick Guide SAP GUI and Navigation - Quick Guide
SAP GUI and Navigation - Quick Guide
 
SAP Overview and Architecture
SAP Overview and ArchitectureSAP Overview and Architecture
SAP Overview and Architecture
 
Lean six sigma Yellow Belt Complete training
Lean six sigma Yellow Belt Complete trainingLean six sigma Yellow Belt Complete training
Lean six sigma Yellow Belt Complete training
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional Consultant
 
ASAP Methodology for Implementing SAP System
ASAP Methodology for Implementing SAP System ASAP Methodology for Implementing SAP System
ASAP Methodology for Implementing SAP System
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

SAP PI Sheet (Xstep) integration with Weighing Machine/Scale

  • 1. SAP PI Sheet (Xstep) integration with Weighing Machine/Scale By, Ankit Sharma SAP PP Consultant businessconsulting007@gmail.com +91 – 8888896575 / 8888632763
  • 2. Contents Introduction ............................................................................................................................................3 Brief of Scale Integration with PI sheet ..................................................................................................3 Source and Target System Description………………………………………………………………………………………………5 Architect Design………………………………………………………………………………………………………………………………..5 Trigger Event…………………………………………………………………………………………………………………………….……….7 Steps required to integrate SAP and ERP Scale…………………………………………………………………………………..7 Setting up RFC destination for ERP-Scale…………………………………………………………………………………………..8 Define the SAP RFC connection settings in ERP-Scale……………………………………………………………………….10 Define the communication settings…………………………………………………………………………………………………12 Create the parsing settings and map the device input data to the data fields………………………………….12 If using an SAP ODA data subscription, check the dead-band settings……………………………………………..13 Create the OPC Data Access Item in SAP ODA………………………………………………………………………………….13 Create XStep Repository………………………………………………………………………………………………………………….18 Type of Weighing Machine/Scale in Pharmaceutical……………………………………………………………………….22 Reading of Weight on PI Sheet from Weighing Machine/Scale………………………………………………………..23 Error Monitoring & Resolution – Failure Points……………………………………………………………………………….25
  • 3. Summary* This document is related to SAP PI Sheet (XStep) integration with Weighing Machine/Scale. Introduction Accurate weights are vital in any manufacturing process. In Pharmaceutical industry it comes under GMP. A slight wrong weight in medicine manufacturing can cause several death. ERP-Scale interfaces weigh scales and other analytical devices with: SAP OPC Data Access (SAP ODA)  In PI-Sheets and XSteps to support weighing of components for goods-issues including target weighing using a weighing bar and goods-receipts of finished or semi-finished products  Using data access subscriptions to automatically trigger functions in SAP (e.g. order confirmation) when the weight is received from the scale  In manufacturing cockpits The Interface between SAP PI sheet and the W&D scales needs to be setup in order to transmit weight data from scales to SAP PI sheets. Another middleware third party software called ERP scale will be used to facilitate communication between SAP and the scales. This document covers SAP settings and overall architecture details and basic settings required in the third party ERP Scale software on the scales. Brief of Scale Integration ERP-Scale includes an interface to SAP ODA. Ideal for use in PI-Sheets and XSteps, this allows access to the weigh scale using the SAP ODA functionality for OPC data access. SAP’s ODA Connector is not required as ERP-Scale provides full access to your weighing equipment in one easy-to-install and implement package including reading and writing data access items. Using SAP ODA Data subscriptions, you can use ERP-Scale to trigger a function in SAP when a new weight is received without any operator intervention. At Pocket Programs we are currently working on a new version of ERP-Scale V4.1 which supports the SAP ODA interface (without requiring the SAP ODA Connector). The integration of SAP ODA and PI- Sheets is simpler than using the HUPAST RFC.
  • 4. Three easy steps to weigh scale integration with SAP:  Download and install ERP-Scale  Configure the SAP packing station profile and RFC destination  Import the SAP configuration into ERP-Scale and define the weighing device communication parameters Source and Target Systems Description  SAP: Back-end system is the ERP system, where all the master and transactional data are located.  ERP Scale: A third party software provided by a company called Pocket programs (www.pocketprograms.com)  Weighing Scales: Devices in warehouse/dispensing locations in the manufacturing area to weigh out for consumptions. Architect Design: Below diagram shows Interface Architecture:
  • 5. Trigger Event: Trigger Event Description Real Time or Batch Manual click on read scale button Once the User clicks on the read scale button the weight along with the UOM from the scale is populated on the PI sheet fields. Real Time
  • 6. Steps required to integrate SAP and ERP Scale. SAP ODA and ERP-Scale can be used to provide automatic input of weight data to SAP for use in PI- Sheets, X-Steps and Electronic work instructions (EWI). To use ERP-Scale with SAP ODA we need to complete below steps: 1. Create the RFC destination for ERP-Scale 2. Define the SAP RFC connection settings in ERP-Scale 3. Define the communication settings 4. Create the parsing settings and map the device input data to the datafields 5. If using an SAP ODA data subscription, check the dead-band settings 6. Create the OPC Data Access Item in SAP ODA
  • 7. A. Setting up RFC Destination for ERP Scale: Step 1: Define RFC Destination for SAP ODA
  • 8. The Sap-Scale server communicates directly with SAP using various SAP Customer Released RFCs. Each Sap-Scale server can accept RFC requests from multiple SAP systems simultaneously. This simplifies testing as it can communicate with the development and production SAP systems at the same time. Active Tick this box if the Sap-Scale server should register with the RFC destination specified Gateway Host Enter the network address of the SAP host. Routing information can be entered in front of the hostname e.g. /H/sapserv3.test.com/S/3296/H/cpff551.test.com Host Type Select ERP if communicating with an ECC system (e.g. SAPODA, HUPAST, and QM-IDI) or EWM if the host is an SCM system. Select ERP&ECM if the host is an ECC system with the EWM extension installed Gateway Service The gateway service. See section Sap Program ID The RFC registered program name. Count The number of servers to register for the RFC destination. If the Sap-Server has a single weighing- device attached, use 1 server. If the Sap-Scale server provides the interface for multiple weighing devices, enter a larger number Step 2: Check Connection Test
  • 9. B. Define the SAP RFC connection settings in ERP-Scale. The Sap-Scale server communicates directly with SAP using various SAP Customer Released RFCs. Each Sap-Scale server can accept RFC requests from multiple SAP systems simultaneously. This simplifies testing as it can communicate with the development and production SAP systems at the same time. **This setting need to be done by ERP Scale team. Active Tick this box if the Sap-Scale server should register with the RFC destination specified Gateway Host Enter the network address of the SAP host. Routing information can be entered in front of the hostname e.g. /H/sapserv3.test.com/S/3296/H/cpff551.test.com Host Type Select ERP if communicating with an ECC system (e.g. SAPODA, HUPAST, and QM-IDI) or EWM if the host is an SCM system. Select ERP&ECM if the host is an ECC system with the EWM extension installed Gateway Service The gateway service. Sap Program ID The RFC registered program name Count The number of servers to register for the RFC destination. If the Sap-Server has a single weighing- device attached, use 1 server. If the Sap-Scale server provides the interface for multiple weighing devices, enter a larger number
  • 10. Mapping ERP Scale data based on RFC Destination Data.
  • 11. C. Define the communication settings, see section Configuring Devices The ERP-Scale configuration utility supports the definition of Sap Scale Server settings on a remote computer. However, for physical devices connected directly to a PC (serial or USB), we advise running the configuration utility directly on the PC. **This setting need to be done from ERP Scale team. D. Create the parsing settings and map the device input data to the data fields. Data parsing defines how the Sap-Scale server takes the input message received from the device and extracts the weight, unit of measure and other values to be returned to SAP. It also has settings to detect if the scale has motion on it. Click on Filter from the main console to access the parse settings **This setting need to be done from ERP Scale team.
  • 12. E. If using an SAP ODA data subscription, check the dead-band settings The settings for the Data Access Item in SAP ODA include a deadband value %. When the value change from the device exceeds the deadband value, the value is sent to SAP. The value range defines the maximum expected value for numeric data from the device. E.g. if the value from the device changes by 15 and the value range is set at 1000, then that indicates a 1.5% change. In some cases the data returned to SAP will include additional values (e.g. material or PLU code). In this case a separate field can be used to determine the deadband value. Example: F. Create the OPC Data Access Item in SAP ODA. When using ERP-Scale with SAP ODA, you use the settings for SAP ODA to define the following: 1. The OPC Server for each ERP-Scale installation 2. The OPC Data Access Items you wish to access in ERP-Scale. You can access the OPC Settings using SAP transaction COOPC1.
  • 13. Create SAP ODA OPC Server for ERP-Scale It is advised not to use a value below 500ms for the Update Rate and Time between Two access Attempts. Once the settings have been entered and saved, you can test the connection (Ensure you have saved the entries or the connection test may fail): Check the Connection Server Running – Green Light
  • 14. Create SAP ODA OPC Data Access Items
  • 15. Access Type ERP-Scale will read data directly from the device if Device Data Access is selected. ERP-Scale will return a previously read value if Cache Data Access is selected and the value is not older than the buffer time. If the value is older than the buffer time, then the status ‘Obsolete’ will be returned. Buffer Time Determines how long cached data is valid Deadband% Sets the minimum value change in % for a data subscription to report an updated value. Once the value has been saved, test the connection by clicking Read Synchronously: Value (Weight on Scale 6) – 16.9
  • 16. Read weight on Scale 9: After creating an SAP ODA OPC Data Access Item, it can be accessed from a PI-Sheet or electronic work instruction (EWI).
  • 18. Select Scope of Generation: Select Destination:
  • 19. Create Process Instruction: Cretae Manufacturing Data Access:
  • 20. Create Parameter Value for Weight: Create Parameter Value for UOM:
  • 21. Type of Weighing Machine/Scale in Pharmaceutical:
  • 22. Reading of Weight on PI Sheet from Weighing Machine/Scale: Weight – 0.02 UOM - KG Reduce some weight from Weighing Machine… Weight – 0.01 UOM - KG
  • 23. We can change Look and Feel of PI sheet based on Customer Requirement:
  • 24. Error Monitoring & Resolution – Failure Points • Error due to RFC Destination connection – Work with BASIS team to resolve issue • Error due to OPC SERVERS & OPC DATA ACESS - someone may have changed the OPC server id and OPC item id. Contact with SAP PP team and ERP Scale team. • Error due to connectivity of laptops– someone may have turned off the laptops – Work with business to check the connectivity of laptops at manufacturing area • Error due to update in XSteps repository – Considering many new requirements for PI sheet that requires updates to XSteps repository in production system • Error due to C_COOPC1 authorization to read weight from scale –proper authorization is not maintained for PI sheet roles – work with Security team • Error due to scale connectivity of reporting data – ERP scale licenses may be expired which needs to be renewed annually – Reach out to business