SAP GLM Integration with EWM in S4 Embedded System (Technical)
This blog post explains the process of printing the labels/Safety Data Sheets from the EWM system using the SAP Global Label Management (GLM) tool. This article explains related to the technical solutions only.
Our client was a chemical products manufacturing company and had to print lots of the labels and safety data sheets to adhere to the safety standards. The client was using a third party software to print these labels and the safety data sheets in the existing SAP system.
During the S/4 implementations, our client decided to make use of the SAP GLM functionality to meet their business requirements.
The client was implementing the embedded SAP EWM as well. The standard GLM process works based on the ERP process but the client requirement was to print the labels/SDS using the EWM system. The client was expecting to the implementation partner to automate this printing process in EWM than ERP.
These labels/SDS can be easily printed from a standard transaction code for manual print or using the special function for the automatic printing.
There were hardly any information related to this was readily available online forums/SAP marketplace. We even approached SAP ‘MaxAttention’ team for the support.
GLM Related Information –
The SAP Global Label Management (GLM) is a very powerful tool for printing the labels within the SAP environment. This tool prints the legally compliant Safety Data Sheet (SDS) and the labels used in the chemical industry.
All the documents and the labels are created using the Microsoft Word. The the label templates and generate the labels are created using the Windows Wordprocessor Integration (WWI) in SAP EHS. SAP. The label templates contains the report symbols or placeholders for variables that are filled with data from the ERP system when the final labels are generated. SAP EHS has document management system (DMS) for creating the template, generating, releasing, and exporting the documents.
The standard SAP has provided a transaction CBGL_MP01 (EHS Manual Print Dialog) to print the labels/SDS sheets based on the scenario from SAP ERP side. The standard SAP has provided the following labeling scenarios.
- Goods Receipt
- Process Order for Sales Order (Make to Order)
- Process Order ( Make to Stock)
- Sample –
- Handling Unit
- Generic – Custom/User enhancement ( can be named based on the requirement)
All the above labeling scenarios are based on the enhancement spot CBGL_BADI_EHS_GLM implemented by SAP. This enhancement is already activated. The filter dependent BADI CBGL_BADI_EHS_GLM_011 (EHS : Scenario-Dependent Print Request Generator). This BADI is filter dependent with the multiple implementation option. The filter value equals to the value of the label scenario.
Note – If you have a generic scenario, then the custom implementation is required to trigger the labels.
The EHS consultant can help more on the WWI template creations, material specifications, variables, WWI printer set up, Mode of Transport, WWI report symbols, phrases, generation variants, material data management, customer specific labels, scenario creations etc.
We decided to implement PPF action to print these labels/SDS using the EWM system.
- CBGL_TG01_TRIGGER_NAST – Call this function module within the custom PPF by passing the required information. This will work only for the output controls maintained in NACE transaction code. Our requirement was based on Warehouse Task/Warehouse Order. There is no output control for these documents in ERP side. This Function module is not released by SAP. This approach was not suitable for our requirement.
Note – In ERP side, the output type can be configured using the special function (8) with the driver program.
Downside of this approach is that the system prints all the labels/SDS assigned to the material (Gen Variant). This approach didn’t meet our requirement.
- Calling the class CL_EHSGBC_PRINT_REQUEST_API (EHS: Print Request API) – This class has all the required methods to generate the label print requests.
- Label Determination – Use the class ‘CL_PRQAPI_INTERFACE’ and the method ‘LABEL_DETERMINE’ by passing the required information such as scenario, material, plant and others.
- Data Mapping – Refer the BADI CBGL_BADI_EHS_GLM_012 – One of implementations to get an overview on the data generation and mapping.
- Print Body/Request Generation –The method PRINTREQUEST_CREATE is used to trigger the print request in the backend. The RFC function module ‘CBGL_PRAPI_PRTREQ_CREATE’ gets triggered based on the RFC destination passed. The system generates the two print requests, one for the print request body and other for the printing.
- Post Processing Log – The method returns the post processing log based on the status. The same log will be updated in the PPF processing. If the processing is successful, then the PPF action will be set as green else Red (failed).
- Run the transaction code CBGLWB (Function Workbench) to preview or reprint the labels.
With the above technical approach, the labels/SDS can be printed from any of the SAP subsystems in a embedded system or decentralized or from the external system. The process avoids the interface with any other third party tools and makes use of the SAP’s powerful tool. The standard SAP will provide the processing log and also a provision for reprocessing.
Global Label Management (EHS-SAF-GLM)
This is my second blog post and your suggestions/feedbacks are highly appreciated. There are few more articles on the way. Please follow my profile for the new blog posts related to latest features provided by SAP.
Do you have any further comments related to this topic? Do share them in the comments sections below without any hesitation. You can also ask questions in the SAP EHS Community Q & A Section
a very good and helpful explanation. We also use GLM in connection with messages to the Handling Unit and also the BadI.
In connection with S4, however, it should be noted that GLM is not on the roadmap for the future and will be replaced by a partner solution.
Thanks for your views and updates on the future roadmap of GLM. I was able to find your answer in one of the questions in the forum.
in your blog you focused on the "GLM" part (label part) but listed as well the "SDS" part. The above shown approach should not be used for "SDS" printing.
SDS solutions must be designed different.
Further on: we have two main approaches to look at: embedded eWM and decentralized eWM. For the last one: a success factor is, that the master data is in "sync" (master data in SAP ERP and SAP eWM must be in "sync").
Generally: you need a good "material" concept and you need EHS set up to a high extent as GLM uses many basic features in EHS (EHS-BD).
Label printing has at least two main aspects: the selection of the "right" label to print and e.g. defining the printer to be used for printing (and many other stuff)
In most cases the "problem" is with the identificaiton of the "right" label to print. in correlation with ewM: in most cases this is more than one Label.
EHS GLM is not currently not discussed often (please do not use the term "SAP Gobal Label Management tool".. SAP uses this term to describe the software:
Global Label Management (EHS-SAF-GLM))
Most commong os to use the term "GLM Solution" or shortly "GLM"
GLM can therefore only be used as part of "EHS" and is not a stand alone solution.
Therefore: thanks for your blog..
May be take a look as well here:
This blog is outdated.
Coming back to the comment of Holger Hartung:
With S/4 HANA SAP has changed the approach. Currently they are on the track to deploy a follow up EHS solution follow up solution called "Product Compliance" and yes... some of the old GLM capabilities will not be part of this SAP product any more.
If you are interested for "Product Compliance" topic... check these blogs..
The "Blogs" assigned to this Tag are very helpful to have a picture of the status of the new "Product Compliance" solution.
General assumption would be: at least we will get something comparable (hopefully) to the GLM capactities currently existing.