customer - help.sap.com

25
CUSTOMER SAP Implementation Guide: Icons SAP Engineering Control Center 5.2

Upload: others

Post on 03-Dec-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CUSTOMER - help.sap.com

CUSTOMER

SAP Implementation Guide: Icons SAP Engineering Control Center 5.2

Page 2: CUSTOMER - help.sap.com

2

DOCUMENT HISTORY

Note

Before you start the implementation, make sure you have the latest version of this document.

This guide is valid as of SAP Engineering Control Center 5.2.5.0

The latest version is available on SAP Service Marketplace at

https://help.sap.com/viewer/p/SAP_ENGINEERING_CONTROL_CENTER

Version Date Change

1.0 2019-05-29 Initial creation

2.0 2019-11-21 "Icons for Folders" section optimized

3.0 2020-07-02 “Icons for Equipment” section optimized

“Icons for Function Location” optimized

4.0 2021-07-08 "Document Icons and Their Statuses" section optimized

Page 3: CUSTOMER - help.sap.com

3

TABLE OF CONTENTS

1 SAP ECTR ICONS .................................................................................................................................. 4

1.1 DOCUMENT ICONS AND THEIR STATUSES ....................................................................................... 4 1.1.1 SPECIAL CASES .................................................................................................................................... 6

1.2 MATERIAL ICONS AND THEIR STATUSES ......................................................................................... 6

1.3 FOLDER ICONS AND THEIR STATUSES ............................................................................................. 7

1.4 CHANGE NUMBER ICONS AND THEIR STATUSES ........................................................................... 7

1.5 APPLICATION STRUCTURE ................................................................................................................. 8

2 CONFIGURATION OF ICONS ................................................................................................................ 9

2.1 ICONS FOR DOCUMENTS .................................................................................................................... 9

2.2 ICONS FOR MATERIALS ..................................................................................................................... 14

2.3 ICONS FOR CHANGE NUMBERS ....................................................................................................... 15

2.4 ICONS FOR BILLS OF MATERIALS .................................................................................................... 16

2.5 ICONS FOR EQUIPMENT .................................................................................................................... 16

2.6 ICONS FOR FUNCTION LOCATIONS ................................................................................................. 17

2.7 ICONS FOR FOLDERS ........................................................................................................................ 18

2.8 ICON COLOR CHANGE FOR STATUS CHANGE ............................................................................... 20 2.8.1 COLOR DEFINITIONS FOR DOCUMENTS ......................................................................................... 20 2.8.2 COLOR DEFINITIONS FOR MATERIALS ............................................................................................ 20 2.8.3 COLOR DEFINITIONS FOR EQUIPMENT ........................................................................................... 21

2.9 ICON MAPPING USING A TEXT FILE ................................................................................................. 21

Page 4: CUSTOMER - help.sap.com

4

1 SAP ECTR ICONS

PNG or GIF graphics in the formats 16x16, 24x24 or 32x32 pixels are used for icons. You receive a large set of icons that can be combined. Customer-specific icons can be created with any graphics program.

1.1 Document Icons and Their Statuses

Each document has one or more icons that provide users with information about the status of the document, for example, whether the document is available for editing or whether a material has been assigned.

In the standard system, each document has seven icons.

These icons are described in more detail below:

Examples of icon positions (for NX)

1 2 3 4 5 6 7

Icon Position 1: Document Icons

Icon Description Icon Description

Part

Part with "dirty flag"

Assembly

Assembly with "dirty flag"

Assembly with inconsistent classification

Part with inconsistent classification

Dirty Flag

SAP ECTR allows you to create documents without starting an authoring system and creating an original document there. Documents that are created without the direct use of an authoring system are denoted by a

dirty flag. The dirty flag is a yellow overlay triangle in the document icon.

This indicates that the integration with the authoring system still has to update the document. The update involves the attributes and/or internal references to the original document. Authoring system integration automatically updates the document when opening it and subsequently when saving it.

Icon Position 2: Status and External References

Icon Description Icon Description

The document does not have more recent versions or external references.

The document has more recent (unreleased) versions but does not have external references.

The document has more recent (released) versions but does not have external references.

The document has external references.

Page 5: CUSTOMER - help.sap.com

5

Icon Position 3: Status of Master Original

Icon Description Icon Description

The document is available for editing.

The document is in editing status. The user of the document is not the login user.

The document is open for editing.

The document is checked out by another processor.

The document is in release status.

The document is in lock status.

Markup display for documents in the Originals container

Icon Position 4: Status of Additional Originals

Icon Description

An additional original exists.

Icon Position 5: Material Assignment

Icon Description Icon Description

A material has been assigned to the document.

Multiple materials have been assigned to the document. None are denoted as exclusive.

Multiple materials are assigned to the document.

Link to non-existing materials in document.

Symbol for configurable materials.

Icon Position 6: Assigned Dependent Documents

Icon Description Icon Description

Dependent documents are assigned to the document.

Obsolete dependent documents are assigned to the document.

Icon Position 7: Notes

Icon Description

Notes are assigned to the document

Page 6: CUSTOMER - help.sap.com

6

1.1.1 Special Cases

Assemblies Window

In the Assemblies window, the document icons can indicate further statuses.

Icon Position 1: Document Icons

Icon Description

This position is marked in such a way that it can be suppressed when the material BOM is derived.

Missing Authorization

If there are no authorizations to view a document, the documents are marked with triangle icons.

Icon Description

If there is no authorization on a document, this is indicated by triangle icons in the respective icon positions.

1.2 Material Icons and Their Statuses

Each material has one or more icons that provide users with information about the material, for example, whether the material has a material BOM or object links.

In the standard system, each material has four icons.

These icons are described in more detail below:

Examples of Icon Positions

1 2 3 4

Icon Position 1: Material Icon (Depending on the Material Type)

Icon Description

Default material icon if no specific icon is defined for the material type

Page 7: CUSTOMER - help.sap.com

7

Icon Position 2: Object Links to Documents

Icon Description

The material has at least one link to documents.

Icon Position 3: Bills of Material

Icon Description

The material has a material BOM.

Icon Position 4: Material Display (Only in the Linked Objects Container)

Icon Description Icon Description

The material is not displayed but is the default material for operations.

The material is displayed.

Icon -Position 6: Notes

Icon Description

Notes are assigned to the material.

1.3 Folder Icons and Their Statuses

All folders in SAP ECTR can be denoted as active. Active folders have different icons to standard folders.

Folder Icons

Icon Description Icon Description

Folder

Active Folder

1.4 Change Number Icons and Their Statuses

All change numbers in SAP ECTR can be denoted as activated or deactivated.

Change Number Icons

Icon Description Icon Description

Change number (deactivated)

Change number (activated)

Page 8: CUSTOMER - help.sap.com

8

1.5 Application Structure

Menu Bar

Icon Description Icon Description

Possibilities to manage the tree structure

Restores the view in the Application Structure Window

Document exists

Document doesn't exist

Original is locally (CAD or Session) modified.

Original is out-of-date. Newer Save-Counter in SAP-System

Pending conflict: original is locally modified and another user has checked it out.

Conflict: Original is out-of-date, original is locally modified

Linked material for DIR doesn`t exists.

Shows all originals with a green traffic light

Shows all originals with an orange traffic light

Shows all originals with a red traffic light

Shows originals with need for action: orange traffic light, red traffic light, locally modified, doesn't exist, out-of-date, pending conflict, conflict

Restores all active filters

Document Icons

An additional icon indicating the loading status of the assembly or components is displayed in the application structure.

Icon Description Icon Description

The document is fully loaded in the application.

The document is partially loaded in the application.

The document is not loaded in the application.

Page 9: CUSTOMER - help.sap.com

9

2 CONFIGURATION OF ICONS

2.1 Icons for Documents

All icons for the document are determined and defined using the same mechanism. They are defined in the

DType in the corresponding definition file using the <icon> and <icondef> elements:

%PLM_INSTDIR%/customize/config/dtype.xml

%PLM_INSTDIR%/<appl>/customize/config/dtype.xml

Example

<icon>

<icondef icon_position="1"

icon_group="default"

icon_identifier="tree/ugs/$(TYPE)$(SUBTYPE)$(FAMILY)"/>

<icondef icon_position="2"

icon_group="default"

icon_identifier="flag/flag_version_$(HER)$(HNV)$(HRV)"/>

<icondef icon_position="3"

icon_group="default"

icon_identifier="flag/flag_primaryfiles_moe$(MOE)

_moc$(MOC)_iu$(IN_USE_BY_OTHER)"/>

<icondef icon_position="4"

icon_group="default"

icon_identifier="flag/flag_addfiles_aoe$(AOE)_aoc$(AOC)

_iu$(IN_USE_BY_OTHER)"/>

<icondef icon_position="5"

icon_group="default"

icon_identifier="flag/flag_material_$(MATX)$(MSTA)"/>

</icon>

The icon ID read from the DType must be fully qualified. The ID must contain the path and the icon name. The icons are stored in the images.jar Java archive in the following directory:

%PLM_INSTDIR%/basis/classes

%PLM_INSTDIR%/<appl>/basis/classes

The directory is located in the CLASSPATH. For customer-specific icons, a corresponding Java archive is provided in the following directory:

%PLM_INSTDIR%/customize/classes

%PLM_INSTDIR%/<appl>/customize/classes

Within the icon name, you can use placeholders, which the program replaces dynamically.

Valid placeholders are:

Placeholder Description Values after conversion

$(TYPE) Document / dependent document m, n

$(SUBTYPE) Assembly / Part / Drawing a, p, d

$(FAMILY) Part family template g = generic/template,

i = instance/member,

Page 10: CUSTOMER - help.sap.com

10

Placeholder Description Values after conversion

' ' (empty string) = no family part

$(DOCTYPE) Document type The value corresponds to the document type of the document.

$(APPLTYPE) Type of document, information in the RES4 field before the colon

The value corresponds to the primary application type (RES4).

$(APPLROLE) Returns the object type, information in the RES4 field after the colon

Valid values can be taken from the description of the RES4 field in this guide.

$(STATUS) Document status The value corresponds to the status of the document.

$(OWNER) The owner (user) of the document corresponds to the SAP user

1 (yes), 0 (no)

$(AUTHGR) Authorization group on the document

If no authorization group has been assigned, the value corresponds to the name of the authorization group or an empty string.

$(HAUTHGR) Document has an authorization group

1 (yes), 0 (no)

$(HECN) Document has a change number 1 (yes), 0 (no)

$(MOE) Master Original Exits 1 (yes), 0 (no)

$(MOC_BY_OTHER) Master original is open for editing and the owner (user) of the document does not correspond to the SAP user

1 (yes), 0 (no)

$(MOC) Master original is open for editing 1 (yes), 0 (no)

$(AOE) Additional original exists 1 (yes), 0 (no)

$(AOC) Additional original is open for editing 1 (yes), 0 (no)

$(IN_USE_BY_OTHER) Document is in an O-Flag status (open for editing) and the owner (user) of the document does not correspond to the SAP user

1 (yes), 0 (no)

$(MAT) Document has an object link to a material

mat, sign_off, nomat (object

link to non-existing material)

$(MATX) Document has a material assignment

0 = no material,

1 = open material,

2 = correct material

$(MAT_AMB) Document has multiple/non-unique material assignments.

' ' (empty string) = no material

assignment or one material assignment

s = several material assignments,

one is marked

Page 11: CUSTOMER - help.sap.com

11

Placeholder Description Values after conversion

a = several material assignments

without a marked material

$(MSTA) Material status The value corresponds to the status of the material or an empty string

$(VALID) Validity of the document. Validity statements can be made for released documents.

' ' (empty string) = document is

not released, no statement can be made in relation to the validity.

v (valid) = valid today, the

current date is between "Valid from" and "Valid to"

f (future) = not valid yet, the

current date is before "Valid from."

p (past) = no longer valid, the

current date is after "Valid to."

$(DRAW) Document has dependent document links

draw, sign_off

$(HER) Document has external references 1 (yes), 0 (no)

$(HNV) Document has more recent versions 1 (yes), 0 (no)

$(HRV) Document has released versions 1 (yes), 0 (no)

$(NM_OLD) For dependent documents: The current document is no longer up-to-date. For documents: One of the assigned dependent documents is no longer up-to-date. If the corresponding document was edited after the dependent document, the dependent document is no longer up-to-date. The sort field of the document structure takes into account relations between the master and dependent document of

relationship type ':DC'.

0 = dependent document is up-to-

date

1 = dependent document is

obsolete; the corresponding master document was edited after the dependent document.

$(CONVSTA) Status of the last conversion (only in connection with the conversion server from the framework)

free = wait

run = in process

done = done

skip = ignored

error = with errors

$(CUSTOM[<customer_property>]) Makes it possible to use a customer property to define icons. The value of the customer property specified in

<customer_property> is used

directly for the icon definition. You can use any information from the SAP system to define icons.

Value of the customer property

$(RES1) RES1 field (DRAW table) Value of the RES1 field for the document

Page 12: CUSTOMER - help.sap.com

12

Placeholder Description Values after conversion

$(RES2) RES2 field (DRAW table) Value of the RES2 field for the document

$(RES3) RES3 field (DRAW table) Value of the RES3 field for the document

$(NORMPART) RES4 field (Table DRAW). Check for the letter "N" in the APPLICATIONROLE (all by colon).

1 (Yes), 0 (No)

Examples

The placeholders result in a large number of combinations as possible icon names.

Icon Icon ID Resulting icon name

1st icon: Document icon

tree/ugs/$(TYPE)$(SUBTYPE)$ (FAMILY)

tree/ugs/mp tree/ugs/ma tree/ugs/np ...

2nd icon: Status and external references

flag/flag_version_$(HER)$(HNV)$ (HRV)

flag/flag_version_000 flag/flag_version_010 flag/flag_version_011 flag/flag_version_100 flag/flag_version_110 flag/flag_version_111

3rd icon: Status of the original

flag/flag_primaryfiles_moe$(MOE)_ moc$(MOC)_iu$(IN_USE_BY_ OTHER)

flag_primaryfiles_moe1_moc0_iu0 flag_primaryfiles_moe1_moc1_iu0 flag_primaryfiles_moe1_moc0_iu1 flag_primaryfiles_moe1_moc1_iu1 flag_primaryfiles_moe0_moc0_iu0 flag_primaryfiles_moe0_moc0_iu1

4th icon: Status of additional originals

flag/flag_addfiles_aoe$(AOE)_aoc$ (AOC)_iu$(IN_USE_BY_OTHER)

flag_addfiles_aoe1_aoc0_iu0 flag_addfiles_aoe1_aoc1_iu0 flag_addfiles_aoe1_aoc0_iu1 flag_addfiles_aoe1_aoc1_iu1 flag_addfiles_aoe0_aoc0_iu0 flag_addfiles_aoe0_aoc0_iu1

5th icon: Material assignment

flag/flag_material_$(MATX)$(MSTA) flag/flag_material_0 flag/flag_material_1 flag/flag_material_201 flag/flag_material_202

6th icon: Assigned drawing

flag/flag_$(DRAW) flag/flag_draw flag/flag_sign_off

Once the placeholders have been replaced, the resulting icon names are available in lower case letters. The

system searches for these icon names within the CLASSPATH. If customer-specific images are integrated

using the cust classpath, for example, a customer-specific icon called mp.gif must be available in the

following path:

%PLM_INSTDIR%/customize/classes

Page 13: CUSTOMER - help.sap.com

13

If the definition of the first icon is missing in the DType or the icon cannot be found, the default_<doctype>

is used for this document icon. The file is located in the "tree" directory. If an application type is stored in the

document, it is stored in directory tree/<appl.type>.

Icon Group

The icon group makes it possible to use icons status-specifically.

The group is defined status-specifically in the default settings file default.txt via the following preference

variable:

plm.icon.group.doc.<status>

Example

plm.icon.group.doc.FR = released

plm.icon.group.doc.ER = engrel

In the DType definition, the assignment of the icons is then specified dependent on the status as in

the following example:

<icondef icon_position="3"

icon_group="default"

icon_identifier="flag/flag_lock_$(AOE)$(AOC)$(IN_USE_BY_OTHER)"/>

<icondef icon_position="3"

icon_group="released"

icon_identifier="flag/flag_released"/>

<icondef icon_position="3"

icon_group="engrel"

icon_identifier="flag/flag_engrel"/>

In the above example, it was defined that the third icon shows a different icon depending on the icon group.

If the document is in status FR, icon group released is determined. From the DType, the following definition

is used instead of the default definition:

<icondef icon_position="3" icon_group="released" icon_identifier="flag/flag_released"/>

The default definition can be redefined using variable plm.icon.group.default.

Note

The icon groups are of a general nature and only depend on the status. If an icon group is defined in

the preference variables, the icon group must be defined in every DType.

Icons for Files in the Originals Container

SAP ECTR generically determines the icon name for the files in the Originals container according to the

following pattern:

tree/file/obr_tree_file_<Workstationapplication der Datei>

Example of an icon name for a PDF file as an additional original with workstation application "PDF":

tree/file/obr_tree_file_pdf

The Java archive images.jar contains the icons for some workstation applications. If additional icons are required for customer-specific workstation applications, you can add the icons using an icon mapping entry in the customer mapping table.

Page 14: CUSTOMER - help.sap.com

14

2.2 Icons for Materials

A material can have up to five icons that are defined using preference variables.

They are defined in the following preference file:

%PLM_INSTDIR%/customize/config/default.txt

The following preference variables are used:

plm.mat.icon.1 = flag/flag_mat_$(MTYPE)_$(LVORM)

plm.mat.icon.2 = flag/flag_obj_links_$(HOL)

plm.mat.icon.3 = flag/flag_bom_$(ANY_BOM)$(VAR_BOM)

plm.mat.icon.4 = flag/flag_variant_$(CL200)$(CL300)

plm.mat.icon.5 = flag/flag_preferred_$(PREF)

plm.mat.icon.6 = gos_note_flag_$(HGN)

The fifth material icon is reserved for the display of the preferred material in the linked objects container

and is only displayed in the container.

The icon ID read from the preference variable must be fully qualified. The icons are stored in the images.jar

Java archive in the following directory:

%PLM_INSTDIR%/basis/classes

The directory is located in the CLASSPATH. For customer-specific icons, a corresponding Java archive is provided in the following directory:

%PLM_INSTDIR%/customize/classes

Within the icon name, you can use placeholders, which the program replaces dynamically.

Valid placeholders are:

Placeholder Description Values after conversion

$(MTYPE) Material type Material type as a string, for

example "FERT"

$(CONF) Configurable material 1 (Yes), 0 (No)

$(HOL) Has object link to document 1 (Yes), 0 (No)

$(HSM) Has a follow-up material in a plant.

Material data field MARA-KZNFM is

checked for this purpose.

1 (There is a follow-up material, i.e.

MARA-KZNFM = "X")

$(ANY_BOM) Has any Bill of Material 1 (Yes), 0 (No)

$(VAR_BOM) Has a variant Bill of Material 1 (Yes), 0 (No)

$(CL200) Is classified with class type 200 1 (Yes), 0 (No)

$(CL300) Is classified with class type 300 1 (Yes), 0 (No)

$(PREF) Is the preferred material (this icon is only displayed in the object link container)

0 (no)

1 (yes, icon: green checkmark)

2 (first returned material from

function module, icon: "1")

$(LVORM) Has deletion flag 1 (yes), 0 (no or field MARA-LVORM

in /DSCSAG/SEL_FIELDS has not

Page 15: CUSTOMER - help.sap.com

15

Placeholder Description Values after conversion

been configured for the material data)

$(CUSTOM[<customer_property>])

Makes it possible to use a customer property to define icons. The value of the customer property specified in

<customer_property> is used

directly for the icon definition. You can use any information from the SAP system to define icons.

Value of the customer property

2.3 Icons for Change Numbers

A change number can have several icons that are defined using preference variables.

The definition is set in the following default settings file:

%PLM_INSTDIR%/customize/config/default.txt

The following preference variables are used:

plm.ecm.icon.<1...n> = <Iconname>

Here, <1...n> is the sequence number of the icons, which are arranged from the left to the right. The first

icon is always the main icon that represents the object type change number. Additional icons from the second icon position onwards are used to display the additional properties of the change number.

Example

plm.ecm.icon.1 = obr_ecm

plm.ecm.icon.2 = statusicon_$(STATUS)

plm.ecm.icon.3 = relkeyicon_$(RELKEY)

If no icon mapping is used, the icon ID read from the preference variable must be fully qualified. The icons

are stored in the images.jar Java archive in the following directory:

%PLM_INSTDIR%/basis/classes

The directory is located in the CLASSPATH. For customer-specific icons, a corresponding Java archive is provided in the following directory:

%PLM_INSTDIR%/customize/classes

Within the icon name, you can use placeholders, which the program replaces dynamically.

Valid placeholders are:

Placeholder Description Values after conversion

$(STATUS) Status of the change number The value corresponds to the status of the change number

$(RELKEY) Release key The value corresponds to the release key of the change number

$(CUSTOM[<customer_property>]) Makes it possible to use a customer property to define icons. The value of the customer property specified in

<customer_property> is used

Value of the customer property

Page 16: CUSTOMER - help.sap.com

16

Placeholder Description Values after conversion

directly for the icon definition. You can use any information from the SAP system to define icons.

You can use the icon mapping tables to convert the icon names from the preference variables into icon

names from Java archive images.jar.

If the main icon is redefined, you must make a corresponding entry in the icon mapping table. Otherwise the default icon will always be used.

2.4 Icons for Bills of Materials

The icon for the Bill of Material (BOM) can be defined using a preference variable.

The definition is set in the following default settings file:

%PLM_INSTDIR%/customize/config/default.txt

The following preference variable is used:

plm.bom.icon.1 = <Iconname>

The icon represents the Bill of Material object type. Theoretically, additional icons are possible from the second icon item position. However, the icons do not provide any additional information because no placeholders have been defined for the Bill of Material yet.

Example

plm.bom.icon.1 = tree/bom

The icon ID read from the preference variable must be fully qualified. The icons are stored in the images.jar

Java archive in the following directory:

%PLM_INSTDIR%/basis/classes

The directory is located in the CLASSPATH. For customer-specific icons, a corresponding Java archive is provided in the following directory:

%PLM_INSTDIR%/customize/classes

You can use the mapping tables to convert the icon names from the preference variables into icon names from Java archive images.jar.

2.5 Icons for Equipment

The definition is set in the following default settings file:

%PLM_INSTDIR%/addons/plantMaintenance/customize/config/default.txt

The following preference variable is used:

plm.equi.icon.<1...n> = <Iconname>

Here, <1...n> is the sequence number of the icons, which are arranged from the left to the right. The first

icon here is always the main icon that represents the object type equipment. Additional icons from the second icon position onwards are used to display the additional properties of the equipment. If no icon definition is available, SAP ECTR uses a default icon for the equipment.

Example

plm.equi.icon.1 = flag/flag_equi_$(EQTYPE)_$(SYSSTATUS[INAK])

plm.equi.icon.2 = flag/flag_userstatus_$(USRSTATUS[0003])

If no icon mapping is used, the icon ID read from the preference variable must be fully qualified. The icons are stored in the images.jar Java archive in the following directory:

Page 17: CUSTOMER - help.sap.com

17

%PLM_INSTDIR%/basis/classes

The directory is located in the CLASSPATH. For customer-specific icons, a corresponding Java archive is

provided in the following directory:

%PLM_INSTDIR%/customize/classes

You can use placeholders, which the program converts dynamically.

Valid placeholders are:

Placeholder Description Values after conversion

$(EQTYPE) Equipment type ID of the equipment category

$(SYSSTATUS[<status>]) Check whether the system status

<status> is set.

1 (Yes), 0 (No)

$(USRSTATUS[<status>]) Check whether the user status

<status> is set.

1 (Yes), 0 (No)

You can use the icon mapping table to convert the icon names from the preference variables into icon names

from Java archive images.jar.

2.6 Icons for Function Locations

Icons are defined in the following preconfiguration file:

%PLM_INSTDIR%/addons/plantMaintenance/customize/config/default.txt

The following preference variable is used:

plm.floc.icon.<1...n> = <Iconname>

<1...n> is the sequence number of the icon. The numbers are counted from left to right. The first icon is

always the main icon that represents the Functional Location object type. The other icons display other

properties of the functional location. If an icon is not defined, SAP ECTR uses a standard icon for the functional location.

Example

plm.floc.icon.1 = flag/flag_floc_$(FLOCTYPE)

If icon mapping is not used, the icon ID read from the preference variable must be fully qualified. The icons are stored in the Java archive images.jar in the following directory:

%PLM_INSTDIR%/basis/classes

The directory is in the CLASSPATH. Customer-specific icons can be stored in a corresponding Java archive

under:

%PLM_INSTDIR%/customize/classes

You can use placeholders that the program converts dynamically.

Valid placeholders are:

Placeholder Description Values after conversion

$(FLOCTYPE) Type of functional location ID of the functional location type

$(CUSTOM[<customer_property>]) Enables a customer property to be used to define the icon.

Value of the customer property

Page 18: CUSTOMER - help.sap.com

18

Placeholder Description Values after conversion

The value in

<customer_property> is used to

define the icon. To define a customer-specific icon, any information from the SAP system can be used.

The icon mapping table is used to convert the icon names from the preference variables to icon names from

the Java archive images.jar.

2.7 Icons for Folders

Icons are defined in the following preconfiguration file:

%PLM_INSTDIR%/customize/config/default.txt

The following preference variable is used:

plm.fld.icon.<1...n> = <Iconname>

<1...n> is the sequence number of the icon. The numbers are counted from left to right. The first icon is

always the main icon that represents the Folder object type. The other icons display other properties of the

folder. If an icon is not defined, SAP ECTR uses a standard icon for the folder.

Example

plm.fld.icon.1 = tree.folder_ACT$(ACTIVE)_OWN$(OWNER)_LOCK$(IS_LOCKED)

If icon mapping is not used, the icon ID read from the preference variable must be fully qualified. The icons are stored in the Java archive images.jar in the following directory:

%PLM_INSTDIR%/basis/classes

The directory is in the CLASSPATH. Customer-specific icons can be stored in a corresponding Java archive under:

%PLM_INSTDIR%/customize/classes

You can use placeholders that the program converts dynamically.

Valid placeholders are:

Placeholder Description Values after conversion

$(FLDTYPE) Folder type Value corresponds to the document type of the folder DIS

$(STATUS) Folder status Value corresponds to the status of the folder DIS

$(OWNER) Own folder in SAP ECTR, the owner

(OWNER) of the document is the SAP

user

1 (Yes), 0 (No)

$(ACTIVE) Active folder 1 (Yes), 0 (No)

$(HGN) Folder has GOS notes 1 (Yes), 0 (No)

$(IS_LOCKED) Folder is locked 1 (Yes), 0 (No)

Page 19: CUSTOMER - help.sap.com

19

Placeholder Description Values after conversion

$(CUSTOM[<customer_property>]) Enables a customer property to be used to define the icon. The value specified in

<customer_property> is used

directly to define the icon. By implementing the BAdI for customer properties, you can use any information from the SAP system to define icons for specific customers.

Value of the customer property

The icon mapping table can be used to convert the icon names from the preference variables to icon names

from the Java archive images.jar.

Configuration Examples

Definition in the file default.txt:

# Definition of the folder icons. If at least plm.fld.icon.1 is defined this icon

# definition replaces the implicit setting of the folder icon.

# This definition applies only to standard ECTR folders and doesn't affect task folders

# or classification folders.

# The following placeholders can be used to define icon names for the different

# folder states:

# $(FLDTYPE) Folder type (possible value: document type of the folder DIR)

# $(STATUS) Folder status (possible value: status of the folder DIR)

# $(OWNER) Own folder in ECTR -> folder owner = current SAP user (possible values:

0/1)

# $(ACTIVE) Active folder (possible values: 0/1)

# $(HGN) Folder has GOS notes (possible values: 0/1)

# $(IS_LOCKED) Folder has lock status (possible values: 0/1)

# $(CUSTOM[<customer_property>])

# Any customer property can be used as placeholder for icon definition

# (possible value: value of the customer property)

plm.fld.icon.1 = tree.folder_ACT$(ACTIVE)_OWN$(OWNER)_LOCK$(IS_LOCKED)

plm.fld.icon.2 = gos_note_flag_$(HGN)

Icon mappings for folders in the file standard_icons.txt:

tree.folder_ACT0_OWN0_LOCK0 = {0}/folder

tree.folder_ACT1_OWN0_LOCK0 = {0}/folder_green

tree.folder_ACT1_OWN1_LOCK0 = {0}/folder_green

tree.folder_ACT0_OWN1_LOCK0 = {0}/folder_blue

tree.folder_ACT0_OWN0_LOCK1 = {0}/folder_locked

tree.folder_ACT1_OWN0_LOCK1 = {0}/folder_green<<{0}/o_locked_rb

tree.folder_ACT1_OWN1_LOCK1 = {0}/folder_green<<{0}/o_locked_rb

tree.folder_ACT0_OWN1_LOCK1 = {0}/folder_blue<<{0}/o_locked_rb

Page 20: CUSTOMER - help.sap.com

20

2.8 Icon Color Change for Status Change

For the following SAP objects in SAP ECTR, the color of the icon is set dependent on the status:

Document

Material

Equipment

Here, the pixels with the color value from the following table are dynamically replaced with the color that is specified in the preference variables.

RGB: 100 200 200

HEX: 64 C8 C8

Example

The color is specified as a hexadecimal using the RGB value, for example

FFFFFF = white

FF0000 = red

The color for each status is defined using the preference variable in the default settings file default.txt:

2.8.1 Color Definitions for Documents

The following preference variable defines the icon color based on the document status:

plm.icon.colorForStatus.<Status> = <color>

To evaluate the icon color, the status of the document is read and the preference variable is evaluated with the corresponding status. The variable value is then used as the icon color. If no preference variable has been defined with a suitable status, the following variable is evaluated and used:

plm.icon.colorForStatus.<Status>.default = <color>

Example

Status = FR → read preference variable: plm.icon.colorForStatus.FR = 00FF00

The value for the icon color is '00FF00'.

Note

For documents, the color change can be controlled using the document status or the material status.

This is specified using the DType definition of the icon for the document. In the <icondef> statement,

use the attribute referenced_object="document" or "material" to define the status to be used.

2.8.2 Color Definitions for Materials

The following preference variable defines the icon color based on the cross-plant material status:

plm.maticon.colorForStatus.<Status> = <color>

To evaluate the icon color, the status of the material is read and the preference variable is evaluated with the corresponding status. The variable value is then used as the icon color. If no preference variable has been defined with a suitable status, the following variable is evaluated and used:

plm.maticon.colorForStatus.default = <color>

Example

Status = BP → read preference variable: plm.maticon.colorForStatus.BP = FF0000

The value for the icon color is 'FF0000'.

Instead of the cross-plant material status, any other property can also be used to define the icon color. The property to be used is defined using the following preference variable:

plm.mat.set.maticon.color.by.property = <Materialproperty>

Page 21: CUSTOMER - help.sap.com

21

Specify the <Materialproperty> as it is returned from the function module in the SAP system. You can

also specify a customer property.

This allows you to make the icon color dependent on a cross-plant material status, for example:

plm.mat.set.maticon.color.by.property = MMSTA

Properties from other tables also explicitly require the table name: plm.mat.set.maticon.color.by.property = MARC-MMSTA

In the same way as for the cross-plant material status, you can define a color as described above for any status or any value that the property can accommodate. If no color definition exists, the color from the default definition is also used in this case.

2.8.3 Color Definitions for Equipment

The following preference variable defines the icon color based on the status type and equipment status:

plm.equi.icon.colorForStatus.<n>.<statustype>.<status> = <color>

Placeholder Description

<n> Number for the evaluation sequence

<statustyp> Indicates whether the evaluation is based on a system status (sys) or a

user status (usr)

<status> Status on which the evaluation is based

In the case of equipment, multiple system and user statuses can be set simultaneously. For this reason, you define an evaluation sequence in the preference variables for defining the icon color. You do this by

numbering the sequence (<n>).

To determine the icon color, the preference variables are evaluated in the sequence specified. The status in the preference variables is compared with the equipment status. If the status in the preference variables exists for the equipment, the variable value is used as the icon color and the evaluation is terminated. Otherwise, the evaluation continues with the next preference variables in the sequence. If no preference

variable with a suitable status is defined, plm.equi.icon.colorForStatus.default = <color> is

evaluated and used.

Example

Status = INAK → the preference variable read:

plm.equi.icon.colorForStatus.1.sys.INAK = FF0000

The value for the icon color is 'FF0000'.

Note

Because, as a result of color replacement, icons with different colors can have the same icon ID, the

icon color used is added to the icon ID internally. This allows the icons to be distinguished for filtering

in the active list, for example. If the color ID is added to the icon ID when color replacement is not

supported for the icon, the same icon is displayed multiple times in the filter list. This primarily affects

the icons in positions 2 to 6. To prevent this, you can deactivate the addition of the icon color to the

icon ID. To do this, set the use_status_color ="no" attribute in the <icondef> statement in the

DType definition. As a result, icons that look identical have the same icon ID and are displayed only

once in the filter list.

2.9 Icon Mapping using a Text File

You can use one mapping file to assign icons to different OBR functions and certain keys. If the definition is missing, the system searches for the default names. The mapping file allows a flexible assignment and

Page 22: CUSTOMER - help.sap.com

22

makes it possible to compile icons. The required changes are made in a text file (standard_icons.txt).

SAP ECTR evaluates the text file.

The default file standard_icons.txt is located in the folder:

%PLM_INSTDIR%\basis\aux-files

The customer-specific file customer_icons.txt is located in the folder:

%PLM_INSTDIR%\customize\aux-files

Example

{0}/pencil<<{0}/glasses

A combined icon where glasses are laid over a pencil and the right size and file extension are used

automatically.

Sequence of Mapping Files to Be Imported

The text files that assign the icons are processed in the following sequence:

Standard icons

%PLM_INSTDIR%\basis\aux-files\standard_icons.txt

Application icons

%PLM_INSTDIR%/applications/<app>/basis/aux-files/standard_icons.txt

Add-on icons

%PLM_INSTDIR%/addons/<addon>/basis/aux-files/standard_icons.txt

Customer-specific icons

%PLM_INSTDIR%/customize/aux-files/customer_icons.txt

Definition of Folder Icons via Icon Mapping

To define folder icons, the following entries are possible in the icon mapping table:

Icon key Description

tree.folder.default If no other more precise information is entered, the key defines the default icon for the folders in SAP ECTR.

Example tree.folder.default = {0}/folder

tree.folder.<FOLDER_TYPE>

Defines the icon for the specified folder type in SAP ECTR.

Example tree.folder.FOL = {0}/folder

tree.folder.<FOLDER_TYPE>.<STATUS>

Defines the icon for folders in SAP ECTR with a certain folder type and a certain status.

Example Folder with document type FOL and lock status (SP) tree.folder.FOL.SP = {0}/folder<<{0}/o_locked_rb

tree.myfolder.default

If no more precise information is entered, they key defines the default icon for your own folders in SAP ECTR.

Example

Page 23: CUSTOMER - help.sap.com

23

Icon key Description

tree.myfolder.default = {0}/folder_blue

tree.myfolder.<FOLDER_TYPE>

Defines the icon for your own folders for the specified folder type in SAP ECTR.

Example Own folder as a document with folder type (= document type) FOL tree.myfolder.FOL = {0}/folder_blue

tree.myfolder.<FOLDER_TYPE>.<STATUS>

Defines the icon for your own folders in SAP ECTR with a certain folder type and a certain status.

Example Folder with document type FOL and lock status (SP) tree.myfolder.FOL.SP =

{0}/folder_blue<<{0}/o_locked_rb

tree.folder.active

Defines the icon for the active folder in SAP ECTR.

Example tree.folder.active = {0}/folder_green

tree.folder.whereused

Defines the icon for the folders in the container for where-used

lists In Folders.

Example tree.folder.whereused=

{0}/folder<<small/arrow_up_black

tree.folder.<FOLDER_CLASS>

Defines the icon for the specified folder class for SAP PLM folders in SAP ECTR.

Example SAP PLM folder as a classification with folder type (= class type) Z01 tree.folder.Z01 = {0}/folder_zitrone

Definition of Overlay Icons for the Class Status via Icon Mapping

To define the overlay icons for the class status, the following entries are possible in the icon mapping table:

Icon key Description

flag/flag_classif_stat_<CLASS_STATUS> Defines the icon for the class status. The icon is displayed in case of an error in the classification.

Example

Define overlay icons for locked (CLASS_STATUS=2) and

incomplete (CLASS_STATUS=3) classifications. flag/flag_classif_stat_2 =

flag/obr_tree_attention

flag/flag_classif_stat_3 =

flag/obr_tree_attention

flag/flag_bom_ignored

Defines the icon for suppressed components in the assembly window.

Example

Page 24: CUSTOMER - help.sap.com

24

Icon key Description

flag/flag_bom_ignored = {0}/sap/o_delete

Page 25: CUSTOMER - help.sap.com

www.sap.com/contactsap

© 2020 SAP SE or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary. These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other

countries. All other product and service names mentioned are the trademarks of their respective companies. See www.sap.com/copyright for additional trademark information and

notices.