
WWI reports enables to output data from the specification database and other SAP components, and graphic symbols on reports. You can use phrase management to store multilingual text, graphics on the report as language-independent. SAP EH&S use a modified version of Microsoft Word (Windows Word processor Integration (WWI)) to create the layout of the reports.
Transaction: CG42 – Edit Report Template
One can search the required template by name or wild card (*) search to get the required template.
Template can be in different statuses based on the if the template has been correctly edited or not. The possible status are:
ER – Errors When report template has error in WWI console – one would first need to check the errors in the console and correct them to move to In-Work Status.
IW - In work When the template is checked and ready to be released.
RE – Released When the Report template changes are complete and checked and ready to be used in a generation.
IP - In process on WS When a user is editing the template at the front-end.
Unknown When Error occurs in the system, MS word crashes or any server error occurs while saving the file, the status of the report template is in Error.
Some of the Possible Messages:
Use Cancel Release button
Main Screen of the report editor
WWI allows to create language-independent document templates using symbols. Various tools make it easier for the user to create templates with the correct syntax:
Symbol tree can been seen on the left hand corner of the screen. The parallel display of the symbol tree, the document template in Microsoft Word, and the tab pages for editing the various symbol and control object types on one screen with different windows gives the user a better overview when working.
The symbol tree lists all available specification, parameter, and descriptor symbols. The specification symbols are based on the property tree, which the user can change during editing.
Sections of the WWI report template editor:
Report Symbols:
A placeholder in a document template by means of which data can be printed on reports.
The data originates from the following SAP components:
Mandatory Symbols
You can specify which Symbols (properties/Characteristics ) must exist on a report for it to be considered complete from a business point of view. You have the following options for setting up such mandatory report symbols:
Symbols contain key information that the SAP system uses to access the specification database or other SAP tables automatically and to output the corresponding values on the report.
The various aspects of the WWI Editor as follows:
1.Report Template Symbol Tree – Shows the property tree structure with different properties that can be added in the report template and the Symbols corresponding to the property.
The below screenshot shows the different Symbols which are part of the Property ‘OECD and company information Syngenta’ and can be used to be added in the report template:
The Symbol Tab shows the details of how the symbol would be added in the report template.
2. Descriptor Symbols are used to add phrases to the report template such as any disclaimers, header/footer phrases.
One would have to select the appropriate Descriptor Symbol to display the phrase text, code, key, Graphic, etc. The editor would also need to select the appropriate- Phrase Library, Phrase group and the phrase text that he wants to display in the report.
Repeating groups show the value assignment type of a property under which all the related symbols can be entered. The repeating group can be a of different categories as in the screenshot below.
All the Symbols for the particular property tree need to be looped in the same repeating Group. Similarly, components, User defined Text, Sources and Assessments are used as slave repeating group in the master repeating group.
Data Output Restriction
One can use the following identification codes to define a data output restriction if not all of the symbol’s data records:
Identification Code in Symbol | Meaning |
N | The system selects the data record with the number n. |
* | This wildcard selects all data records it finds. |
n-m | The system selects the data records from number n to number m. |
n-* | The system selects all data records starting from number n. |
Blank Compression –
Used for suppressing a particular symbol or section based on its availability or no. User can change all symbols displayed as a condition in the Blank Compression dialog box in the control symbols area by positioning the cursor on the symbol required and choosing Modify or Delete.
In the blank compression dialog box in the operator area, specify whether the conditions entered are to be linked with
AND ( * ) or OR ( + ).
Word enters blank compression in your template according to the conditions defined. All entries between the beginning and end of the control section are not output. WWI reacts as follows:
"+" = OR: If no value is found for at least one control symbol, blank compression is activated. No text is output.
"-" = AND: If no value is found for all control symbols, blank compression is activated. No text is output.
“With Alternative” Blank Compression - In the dialog box for blank compression, you can specify that an alternative statement is output in your report template. The alternative statement is inserted as an additional control symbol (for example, <13CNG000> ) by the Windows Wordprocessor Integration (WWI) program.
Conditional Output - Is used in order to display or not display certain sections, symbols based on certain condition checks.
The conditional output around the section that is to be output if the condition is fulfilled. The section can contain any type of object, such as Microsoft Word texts, graphics, symbols, and phrases. User can define a number of conditions that must be fulfilled before a section is output.
User can define an alternative for the output, that is an alternative section that is output if the condition is not fulfilled. The condition consists of the following parts:
User can also enter a symbol as a comparison value. The system then compares the content of this symbol with the content of the symbol that must fulfil the condition.
To define a conditional output in a document template, proceed as follows:
Message – display all the error or warning messages generated by the WWI report generator.
There can be warning and Error Messages which would be displayed in this tab. Warnings are mostly syntax based and could be ignored.
To check the document template created, the system creates a structure file in ASCII format that contains all control objects in the template:
The syntax checks on the structure file are as follows:
On the Messages tab page, choose the function with the quick info text Go To to localize the error in the document template and correct the syntax.Use the check boxes as indicators for already corrected warnings or errors. Read the detailed error description using the Long Text function. Choose to delete the message.
WWI Editor main screen - This is a report template screen where one can call includes or add the report symbols. It has a MS Word interface with certain functionalities disabled.
Use of Includes
Includes allow the WWI report editor to call another template in the main template. One can specify the Include the template name, version and the report template type in the include statement:
<20INCLUDE("SDS_2014_2_BASIC_02",01,SBV)
This allows the user to subdivide complex templates into individual templates and thus make them easier to handle. In addition, for parts that are identical in several templates , one can create them in a separate template and include this in all relevant templates. This makes editing and managing document templates easier.
Do NOT use included templates within repeating groups because this has a negative impact on performance. During report generation, the system expands the included template and fills its symbols with data.
The following prerequisites must be fulfilled before you can include a document template:
The control symbol for including a template has report symbol type 20. The string <20INCLUDE introduces the syntax. Following this, parentheses enclose the template, version, and document type, each separated by commas. The template is enclosed in double quotation marks. The “greater than” (>) sign closes the syntax.
Example - <20INCLUDE("Test",01,SBV)> means that the template Test with version 01 is included. The template has the document type report template ( SBV ).
Note:
To include a document template in another document template, proceed as follows:
Example of Compositions used in Section 3
Used in a table format in the WWI Template to display the hazardous ingredients, etc. The table header is created in a separate table in the layout. In the generated document, the two tables merge because only hidden paragraph marks appear in the layout between the header table and the data table. Handling the header separately has the following advantages:
The actual table then contains the output of the data from all value assignments and items.
The generated report can then be printed incorrectly only if the first value assignment of the value assignment type (in this example SAP_EHS_1012_004) is a value assignment without components.
<11BRG069(M,SAP_EHS_1012_004;1)><11BRG012(S:POS;1)>¶
<13BNG000(+:01GESTRSUBID)>¶
<03EHS_L_TEXT(CED-H02.00000040)>¶
<03EHS_L_TEX T(CUST-H02.00100050)> | <03EHS_L_TEXT(CUST-H02.00100020)> | <03EHS_L_TEXT(CUST-N15.00208930)> | 03EHS_L_TEXT(CUST-N15.00310270)> | <03EHS_L_TEXT(CUST-E11.00900120)> [%] |
<13ENG000> ¶
<11ERG012><11ERG069>¶
<11BRG070(M,SAP_EHS_1012_004;)><11BRG013(S:POS;*)>¶
<13BNG001(+:01GESTRSUBID)>¶
<01GESTRIDENT(I:NAM,TRIV,)> | <01GESTRIDENT(I:NUM,CAS,)> | <Data> | <Data> | <Data> |
<13ENG001>¶
<11ERG013><11ERG070>¶
Hazardous ingredients
Chemical name | CAS no. | Symbol(s): | R phrases: | Concentration [%] |
Xylene, mixed isomers | 1330-20-7 | Xn; Xi | R10; R20/21; R38 | >= 50 - <= 100 (Ø 52.5) |
Butyl acetate | 123-86-4 | R10; R66; R67 | >= 12,5 - < 20 (Ø 12.5) | |
2-methylpropan-1-ol | 78-83-1 | Xi | R10; R37/38, R41; R67 | >= 10 - < 12.5 (Ø 10) |
Creation of Custom Symbol for Table fields (For Technical Team Only)
If some new custom Parameter Symbols (related to tables in the database structure or function module) need to be created, the steps are as follows:
EHS-> Basic Data and Tools->Report Definition->Report Symbols->Specify Report Symbol Group.
The SERC content would always have two files associated with each report template (.dat and .doc file) – both should be uploaded in SAP EHS for every template to work
The generation variant makes it possible for only permitted specification data to be output on a report because it links the report template with a leading validity area and one or more value assignment ratings.
Using transaction CG2B you can maintain generation variants for every template. Or you go to Logistics -> Environment, Health and Safety -> Basic Data and Tools -> Report Definition -> Edit Generation Variants
How to create WWI report symbols
Run transaction CGCZ "Match up master data" with flag "Generate Symbols" only. This will generate the necessary new WWI symbols for the new characteristics.
Additional information:
In a standard R/3 System automatically created symbols using the transaction CGCZ are generated with descriptions which are copies of the characteristics descriptions in the logon language.
The flag "Regenerate Symbol Descriptions" within transaction CGCZ can be used to generate the symbol descriptions in another language different from the logon language. English or German are possible symbol descriptions languages when property tree packages are installed where the characteristics descriptions are delivered in English and German.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.