
The discussion in this FORUM of SAP EHS Management has shown that many consultants etc. do have some „problems“ in understanding WWI. The topic of “WWI” belongs to the roughly “top five” discussed.
This document should help so that may be the work can be done more easily. This document is intended to provide an overview and not the detail.
The term SAP EHS Management in the context of this document does not include the “Component Extension for SAP EHS Management”.
This document should provide some hints. Regarding WWI it can never be complete. This document takes care of aspects in SAP EHS BD and SAP EHS SAF which are related to generates document like SDS/MSDS but e.g. not of SAP EHS IH (Industrial Hygiene) (there you might have the need to generate a SOP) nor SAP EHS WA (Waste)
DON'T BE FRUSTRATED IF YOU STUCK IN WWI DEVELOPMENT. IN MOST CASES IT IS A MATTER OF "LEARNING BY DOING" (and learn from your faults).
Try to crawl, walk and then run.
In the meantime many other people started documents/lectures on WWI. Therefore you should check any blog or document as well.
One example which is not part of SDN is: http://sapehstrainer.blogspot.de/2009/10/wwi-template-creation.html
WWI is an abbreviation for: Windows Wordprocessor Integration.
It is a tool used in context of SAP EHS Management to generate documents. The documents are in most cases then stored in SAP (e.g. DMS). It is an add on to Microsoft Office solution „Word“. The tool is used as well in the context of distribution of documents (like Safety Data Sheets) or the generation of labels.
To handle WWI you need an understanding in:
cover sheet
Using WWI at the end you generate (in most cases) a document having an assigned main language and an assigned generation variant. These documents can be viewed etc. in transaction CG54 (Report Information System) or CG50 (Report Management). You can use CG02 or CG02BD to create the reports or to get a „draft“ view of content of the documents (using functionality “Report from template”).
In most cases the document generated is stored in SAP DMS. Especially in the area of GLM other options can be used to handle the document which is generated.
Out of scope of this document
If you do not understand the data model of EHS Management and how it is related to WWI you might have a problem. Nearly any data as stored in SAP ERP can be collected using WWI „procedures“ to be printed on a document. But you need to know, how to maintain the data so that WWI can be used to collect the data.
The data model shown here is related to SAP EHS Basic Data and Tools and SAP EHS Product Safety only. Anything else is out of scope. Remember: in mosgt cases to prepare suitable WWI reports you need additional data e.g. from SAP MM, SAP SD etc. This is done using parameter symbols.
In context of WWI you can collect e.g. data from specification header. E.g. you could print the content of the „Note“ or the „Substance nature“ which are maintained both on specification header level. To do so after proper installation of SAP EHS Management you will find some standard „report symbols“ which can be used in WWI context.
Most important in the context of specification header are:
The data maintained on level of identifier or material is needed very often in context of WWI document generation.
An identifier is characterized by a:
Identification category (e.g. NUM, NAM etc.) and
An identifier can have assigned to it a:
and one can maintain more than one identifier of the same type (e.g. more than one NAM, SYN).
It is important to understand in context of WWI the use of „Usage“ on that level. Because of compatibility an identifier can be selected with WWI without having an usage but if there is an usage maintained on identifier level (important is that as well the “active indicator” is set) then this usage must have an overlap with the „usage“ as defined in generation variant or the identifier will not be shown in WWI.
It is very common to use in context of SAP EHS Management a “identification list” to select an identifier to be printed. This option is available within WWI as well and it used often to select a suitable identifier. How to deal with this option is out of scope of this document (even taking into account the fact that this option can be easily used in the context of WWI).
A specification (in most cases the specification is of type REAL_SUB) can have no, one or many assigned materials. Materials are part of SAP MM. Therefore the collection of data is done at a different point in time (expansion time) but you can collect nearly any data needed (e.g. material name etc.).
The most important part of data to be collected is maintained in the property tree as data records in several value assignment types (sometimes simply called “properties”).
Here it is important to understand the „basic“ options in SAP EHS Management. You can have a value assignment type of type: (e.g. refer to: http://help.sap.com/erp2005_ehp_06/helpdata/en/a7/286d510a6c11d28a220000e829fbbd/content.htm; chapter: Example: Value Assignment Types)
and some special value assignment types used in the context of dangerous goods management.
But you can mix that. Therefore you can mix Type A with B or C; but you can not mix B or C.
Based on the type of the property different WWI procedures are needed to retrieve the data.
But as with the identifier the most crucial topic is to understand the use of the „Usage“ per data record.
To use a WWI layout you need first to in most cases create a generation variant.
You have two options:
you create a generation variant with reference to a WWI layout
The second option is related to so called “inbound” reports and is out of scope of this document.
The “critical” part of definition of generation variant are these sub objects:
If needed you could maintain as well so called “discrete validity areas” which will not be explained here. The “discrete validity areas” and their use is out of scope of this document. They are used in most cases only in the context of label generation and the main is use to print data in more than one language in the same document.
Regarding the display options there is recent thread in this FORUM. The content might be of interest for community to adapt the "date" etc. format of WWI layout. Please check: Addition of new date format in Generation Variant (CG2B)
This assignment of a report category is critical as the report category is the “central” object to make links to other processes like safety data distribution. You should not change the assignment of the report category if at least one report is in the status “Released”.
The use of the “leading validity area” can only be explained together with the use of the “Generation Variant Indicators” (refer below).
This type of data is not as critical as the other ones but you should never change this data after you have used the generation variant to create a report (status “Released”). These options are needed to make sure that e.g. data of type “Date” or which is “numeric” is printed/shown according to local regulations.
Based on WWI layout context this part is populated nearly automatic (with inbound reports you must assign the objects by your self). But sometimes it does not work properly. This part is once again “critical” in the whole context (e.g. use of CG50, CG54 etc.).
If we talk about a safety data sheet (material safety data sheet) normally you will find here “SUBMASTER” and “MATMASTER”. In CG50/CG54 this is used to decide if you can switch between the “Specification view” and the “Material view” of the report tree.
Per sub module of SAP EHS you can find other terms used / needed in the “application object”.
You can enhance SAP EHS Management by defining own application objects. This options is out of scope of this document.
This is one crucial topic which you need really to understand. The use of a “rating” makes use with “classic” WWI reports. Regarding Inbound reports it is just an “add on”.
Some recommendations:
In context of e.g. safety data sheet generation at least one rating should be used (e.g. PUBLIC)
Ignoring for a second the topic of “validity area” this is the fact if in WWI layout a report symbol have been used to retrieve data any data record from e.g. “Color” (any data record should be printed):
Let assume only “PUBLIC” is used as rating in the generation variant
Number of data record in data base | Value | Usage of data record | Printed |
1 | Green | PUBLIC / REG_WORLD | Yes |
2 | Red | INTERNAL / REG_WORLD | No |
3 | Yellow | STANDARD / REG_WORLD | No |
Now let's assume the generation variant contains two ratings with different priority e.g PUBLIC with priority 1 and STANDARD with priority 2:
Number of data record in data base | Value | Usage of data record | Printed |
1 | Green | PUBLIC / REG_WORLD | Yes |
2 | Red | INTERNAL / REG_WORLD | No |
3 | Yellow | STANDARD / REG_WORLD | No |
Now let's assume the generation variant contains two rating with the same priority e.g PUBLIC with priority 1 and STANDARD with priority 1:
Number of data record in data base | Value | Usage of data record | Printed |
1 | Green | PUBLIC / REG_WORLD | Yes |
2 | Red | INTERNAL / REG_WORLD | No |
3 | Yellow | STANDARD / REG_WORLD | Yes |
As you can see: the priority of the rating can have some effect on data which is retrieved.
The use of the “indicators” is critical to understand the result in the WWI report. You should not change the value after you have generated at least one released report.
You must specify a release status. It is recommended to not use “Released” as the initial status (e.g. use “Ready”).
Using this indicator data which has been changed relevant in data base is “marked” in the report. Used mainly in the context of safety data sheet generation. Pay attention: in higher release of SAP EHS Management additional features are delivered (e.g. relevance key on “Reference” and “Inheritance” level). It is not easy to understand this “flag” for beginners. Further on with some SAP release the “existance” or not of a change flag depends on “seconds” and not on day level any more. Pay attention: the “Change” mark is “triggered” mainly by user activity. The system does not have any algorithm to mark automatic a data record in the WWI report as “changed”.
Out of scope of this documents is the type of “marking” in WWI layouts (normally a “dash” is used on the left side).
You should use always the “Yes” option or you must go through (by using CG50) the status net of the report.
Set historical automatically indicator
If a former released report of same combination of generation variant and language exist the former report is set to historic automatic if the new report is released. In most cases it makes sense to use “Yes” as the option.
Version requirement indicator
You should (it is recommended) set this flag if you would like to generate versions of report as e.g. 1.1, 2.0 etc. Pay attention: it is not easy to understand the “effect” if you decide not to ”flag” this indicator. But some reports do not need this flag (e.g. in area of GLM).
This option is used rarely and therefore not explained further.
Leading validity Area
Topic is explained on a good level e.g. here:
Please take your time to understand the graphic shown. This is critical to understand the mechanims used to retrieve the data from data based base on the "usage" of the data record of interest.
Don't mix the "leading validity area" with the "discrete validity area". The last one is "special" and used in most case in GLM context.
As WWI is based on Microsoft Word solution you can use any formatting aspects which are available in Word. Pay attention! The topic of “font” selection is not “trivial” and the printing of data using eastern languages (e.g. hebrew or arabic) is a different story (refer to chapter “Determining Fonts”).
By using standard SAP transaction CG42 you can start to edit a WWI template and selecting report symbols to be part of the WWI layout.
You can create, if needed, your own report symbols (refer to the corresponding customizing activity in transaction SPRO). In most cases the SAP standard symbols can be used to take care regarding a large amount of different demands.
In this document only some references to the online SAP Help should be given. The SAP online help is a good starting point for beginners to understand the different WWI techniques.
Please check this nice blog: http://scn.sap.com/community/ehs-management/blog/2013/08/22/wwiwindows-word-processor-integration-te...
It is strongly recommended to check these links:
On http://help.sap.com/erp2005_ehp_06/helpdata/en/db/9c07c414fb11d494b9080009b98822/content.htm?framese...
a very nice overview about the steps:
how to create a WWI layout as well as a raw report
is shown.
In combination with:
http://help.sap.com/erp2005_ehp_06/helpdata/en/a7/2872780a6c11d28a220000e829fbbd/content.htm?framese... (Chapter Report Creation Process Flow)
a very short but good overview about the important steps using WWI layouts is shown (here in context of shipment of the final reports as well).
On http://help.sap.com/erp2005_ehp_06/helpdata/en/a7/2872100a6c11d28a220000e829fbbd/content.htm?framese...
the most important document types as used in context of WWI are explained. It is important to understand these basic concepts of document types. Out of scope of this document is the handling of the documents in e.g. SAP DMS etc.
As Microsoft Word uses “Fonts” so that text can be printed/shown it very important to understand the concept as used in WWI.INI to make sure that the text is printed/shown in the right font. A lot of OSS notes are referring to issues in this context. It is important to understand the use of Unicode in context of WWI and about the right set up here.
Take a look on:
http://help.sap.com/erp2005_ehp_06/helpdata/en/d1/27d457f17b11d287d0080009b98822/content.htm?framese... (Chapter Determining Fonts) to get an idea about that.
It is important to understand the concept of the “Expansion time“ as this is related as well to the topic which data is part of the raw report and which data is part of the final report. Check:
http://help.sap.com/erp2005_ehp_06/helpdata/en/a7/28726b0a6c11d28a220000e829fbbd/content.htm?framese... (Chapter Expansion Time).
Take your time to understand the examples which SAP have collected in the SAP online help. These examples are a good starting point.
As with ABAP language try to prepare a WWI layout to show the well known “Hello World” statement. This can be done like this:
Generate a identifier on specification with text “Hello World” and usage e.g. PUBLIC / REG_WORLD. Try to insert the corresponding WWI symbol. You could enlarge this example by using more than one identifier of the same type. E.G. like:
1 | Hello World |
2 | WWI is a great tool |
3 | Murphy was here |
Play around with this “simple” layout. Next step of complexity could be that you use an “identification listing” in the WWI layout.
You can print „Hello World“ as well e.g. by simply maintaing the „Note“ on specification level with the text „Hello World“ and then using the corresponding report symbol to print it in the WWI report.
Further options to print „Hello World“ are:
a.) maintain one data record in e.g. VAT „Color“ and maintain a user defined text (e.g. RM) and use the „Hello World“ as a text. Play with this scenario by adding more than one User Defined Text may be using texts liek“Hello World1“, „Hello World2“ etc.
Try to prepare a WWI layout with which you can print e.g.
Prepare a WWI layout with a main repaeting group and try to select any user defined text of a specific type. (e.g. RM).
Start the WWI layout with the a simple example (e.g. color; refer above). Try to print any data record, only the first one etc.
Increase complexity by adding a “phrase header” (like Color) and then use blank compression methods.
Go on with test of properties like “Chemical characteristic” and print identifiers of component together with values etc.
Try to print e.g. “graphics” as part of the phrase etc.
What you should not try as a beginner in WWI
Appendix
Link | Chapter | Explanation |
http://help.sap.com/erp2005_ehp_05/helpdata/en/a7/2872780a6c11d28a220000e829fbbd/content.htm?frameset=/en/a7/28725e0a6c11d28a22000... | Report Creation Process Flow | |
http://help.sap.com/erp2005_ehp_05/helpdata/en/a7/28726b0a6c11d28a220000e829fbbd/content.htm?framese... | Expansion Time | |
http://help.sap.com/erp2005_ehp_05/helpdata/en/a7/2872850a6c11d28a220000e829fbbd/content.htm?frameset=/en/a7/28725e0a6c11d28a220000e829fbbd/frameset.htm | Document Template Objects | |
http://help.sap.com/erp2005_ehp_05/helpdata/en/a7/2872920a6c11d28a220000e829fbbd/content.htm?framese...0000e829fbbd/frameset.htm | Symbol | |
WWI / MSDS etc. | Overview about discussions regarding WWI (and other topics) in SCN |
#sdfootnote1anc#sdfootnote1anc#sdfootnote1anc1 Check e.g. http://help.sap.com/erp2005_ehp_06/helpdata/en/a7/2872030a6c11d28a220000e829fbbd/content.htm?framese... Chapter: Generation Variant Editing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.