cancel
Showing results for 
Search instead for 
Did you mean: 

Understand the functionality of WWI Code

Former Member
0 Kudos
1,343

Hi Experts,

To start with I am totally new to SAP EHS module and unable to understand the below code and its functionality.

Hoping to get help from the experts to understand the same.

I could only figure out GESTVPARKF is 'Data Record Inactive' in table ESTVA (Value Assignments) which is an indicator.

1.  <13BNG016(+:01GESTVPARKF)>

2.  <11BRG027(M,customized value assignment ;*)>

3.  [<03EHS_L_TEXT(CUST-X16.18003230)> ]

4.  <11ERG027>

5.  <13BNG016>

Anybody who can explain me in little deeper way would be highly apperciated. Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Rubenna

This code is written by using Blank Compression (13BN) and Master repeating Group ((11BRG)

Blank Compression Use: With this procedure you suppress the output of data if a particular value is missing

Repeating Group Use: Repeating groups iterate over data objects stored in the specification database. If a symbol refers to several data records, you can use the repeating group to control which data records are to be output.

Example of Blank Compression

https://help.sap.com/erp2005_ehp_06/helpdata/en/a7/2875b50a6c11d28a220000e829fbbd/content.htm?frames...

Example of repeating group

https://help.sap.com/erp2005_ehp_06/helpdata/en/a7/28758e0a6c11d28a220000e829fbbd/content.htm?frames...

from your code I can understand, system will print text (CUST-X16.18003230)  if system find report symbol (01GESTVPARKF) in specification data base.

Also note below table, you can find all specification data stored

Dependent tables:

○  Specification « Value assignment type assignment (ESTVH)

○  Value assignment (ESTVA)

○  Value assignment source (ESTDS)

○  Source (TCG46)

○  Value assignment assessment (ESTDR)

○  Assessment key (TCG71)

○  Assessment text (TCG72)

           

Thanks

Sunil Jawalkar

former_member209335
Contributor
0 Kudos

Hi Rubenna,

First you understand the WWI concept.WWI allows you to create language-independent document templates using symbols.it is very easy to create templates with the correct syntax.

WWI Basic Symbol type:

Symbol type “Descriptor”

Symbol type Specification"

Symbol type “Parameter"

Symbol type

Name

Use

01

Specification

Placeholder for data from the EH&S specification management

02

Parameter

Placeholder for data outside EH&S specification management (e.g. from IHS tables such as work area data, from other SAP components, e.g. MM, SD)

03

Descriptor

Placeholder for data from the EH&S phrase management

Symbol structure:

This is basic symbols and control data structure

Symbol type

Symbol key

Expansion parameter

Description

<01

G1011001PC

(P;1)

[D:Physical/Chemical Hazards]>

<02

ZESTDHEADT


[D:Telephone Contact]>

<03

EHS_L_TEXT

(CUST-GH00000003836)

[D:Product Use]>

Example for Descriptor:

Symbol type

Symbol key

Expansion parameter

  Description

<03

EHS_L_TEXT

(CUST-GH00000003836)

[D:Product Use]>

Report Template:

<01G1011001PC(P;1)[D:Physical/Chemical Hazards]>

Report Out put

Product Use

Specification Symbol:

Symbol type

Symbol key

Expansion parameter

Description

<01

G1011001PC

(P;1)

[D:Physical/Chemical Hazards]>

Report template:

<01G1011001PC(P;1)[D:Physical/Chemical Hazards]>

Report out put 

Physical chem. Hazard for Health

Symbol: ‘Parameter

Symbol type

Symbol key

Expansion parameter

Description

<02

ZESTDHEADT


[D:Telephone Contact]>

Report template:

<02ZESTDHEADT[D:Telephone Contact]>

Report Output:

919909929857

Control objects

Control objects used for control data selection and output. The system supports the following

control objects:

Repeating Groups Read EHS –SAF Book [Page 243]

– Blank Compression Read EHS –SAF Book [Page 247]

– Conditioned text Read EHS –SAF Book [Page 248]

– Character Sizing Read EHS –SAF Book [Page 249]

Control Objects Structure

Symbol type

Name

Use

11

Repeating Groups

Iteration over data objects stored in specification data base for data selection

No symbol type

Conditioned Text

Repeated texts in table columns are not output.

13

Blank Compression

Sections are not output
if data are missing.

100

Character Sizing

Adapt font size to available space within Word frame.

Repeating Groups

Repeating group there is 2 different type of repeating group available

1) Slave Groups

2) Master Group

Type (Code)

Type (Description)

Function

(M)

Master Group

Selection of characteristic value assignments (= data records or instances)
of a value assignment type (= property)

(S:……)

Slave Groups

See the below infroamtion

Slave Groups (within a Master Group)

Type (Code)

Type
(Description)

Function

(S:POS)

Components of a value assignment

Iterates over all components of a value assignment type of the category Composition or Listing

(S:POSD)

Components of a value assignment

Iterates over all components of a value assignment type of the category Composition or Listing up to any level

(S:FREI)

User-defined text of a value assignment

Selects user-defined texts of a particular user-defined text type

(S:VERW)

Usage of a value assignment

Selects usages

(S:CLASS)

Transport classification data

Iterates over all UN-listed substances of a value assignment type of the category Transport classification

Repeating Groups –types II

Type (Code)

Type
(Description)

Function

(G)

Validity area and language

Access validity area / language combinations as defined in RGV

(D)

Discrete expansion of multiple values

Suppresses separators between multiple value assignments

(Q)

Sources

Output of literature sources

(P)

Parameter hierarchy

Represents the hierarchical dependency of any parameter objects

(Exit)

User-Exit

Program own repeating groups

Repeating Groups – Structure

Symbol Type

Beginning

Serial Number

Type

Value assignment type

Restriction

<11

BRG

047

(M,

SAP_EHS_1023_001

;*)>

Symbol Type

End

Serial
Number

<11

ERG

047>

Example  for Repeating Groups


<11BRG047(M,SAP_EHS_1023_001;*)>

<01G1023001RP(P;*)[D:R phrases]>

<11ERG047>

Data output restrictions

A data output restriction used for output data. If is not used all  data to be read in a loop.

Identification Code in Symbol

Meaning

*

Selection of all found data records

n

Selection of data record  “number n”

n - m

Selection of data record “number n” to “number m”

n - *

Selection of all data records starting from “number n”

Blank Compression

  • Sections between the beginning and end of the blank compression shall not be output if data for symbols are missing.
  • Logic Operators:

Logic Operator

Presentation in template

Description

AND

*

If no value is found for all control symbols, the section is not output.

OR

+

If no value is found for at least one control symbol, the section is not output.

With Alternative

<13CNG001>

If blank compression is activated, an alternative symbol is output.

Blank Compression – General structure

Symbol Type

Beginning

Serial Number

Logic operator

Control Symbols

<13

BNG

046

(*:

01G1023001RP)>

Symbol Type

End

Serial
Number

<11

ENG

046>

Example

<13BNG046(*:01G1023001RP(P;*))>

<01G1023001RP(P;*)[D:R phrases]>

<13ENG046>

Character Sizing General structure

  • Only used on labels within text boxes in a label layout
  • Adapt font size to available space within Word frame

Structure Character Sizing

Symbol Type

Symbol Key

Minimum Font Size

Maximum Font Size

<100

DYNTEXT

(8,

20)>

<100DYNTXT(8,20)>

<11BRG001(M,SAP_EHS_1023_001;*)>

<01G1023001RP(P;*)[D:R phrases] >

<11ERG001>

Report with one R phrase (Font size 20):

  1. Flammable. ( font Size 20)

Consultation.

This is the basic requirement. Once you familiarize yourself  this basic requirement. it is easy to create templates with the correct syntax.

For more information.

http://help.sap.com/erp2005_ehp_05/helpdata/en/a7/28725e0a6c11d28a220000e829fbbd/content.htm

http://help.sap.com/printdocu/core/print46c/en/data/pdf/EHSSAF/LOSEC.pdf

Regards

Edward

christoph_bergemann
Active Contributor
0 Kudos

Dear Rubenna

I execute a small inquiry and found this:

http://www.stechno.net/sap-notes.html?view=sapnote&id=758806

With this explanation:

Explanation: The EH&S-System internally uses attribute PARKFLG of database table ESTVA in order to flag value assignment instances as "only as default". Such default instances may exist only during the runtime in the main memory of the application server but not in the database. However, the database may already contain ESTVA-records for which PARKFLG has value 'X'. If you want to preven that the system will misinterpret them as default instances, the conversion program ensures that the attribute will be reset to ' ' for them.)

Furthermore I found: http://www.se80.co.uk/sapreports/r/rehs/rehsbcw_acr_park_flag.htm

Therefore I have some doubt about the "use" of the WWI code. I am not sure ab ut the benefit of the code.

In any case:

<13BNG016(+:01GESTVPARKF)>

starts a "blank compression" logic as explained here:

http://help.sap.com/erp2005_ehp_06/helpdata/en/a7/2875b50a6c11d28a220000e829fbbd/content.htm?framese...

Chapter.  Example: Blank Compression

Hope this helps:

C.B.