Ansicht
Dokumentation

RPY_ENTITY_UPDATE - Insert Entity Type

RPY_ENTITY_UPDATE - Insert Entity Type

Vendor Master (General Section)   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The update requires that the new entity definition is transferred completely. The old entity definition is entirely overwritten by the new one.

The entity is desribed via ENTITY_INF, ALIAS_TAB, ATTRIBUTE_TAB, RELATIONTAB, SPECIALIZATION_TAB, SPECTYPE_TAB, VARIANT_TAB and VIEW_TABLE_TAB.

In ENTITY_INF basic information for the entitiy is stored in the following form:

ENTITY_ID Identification of the entity
LANGUAGE Language key
REFAREA_ID Area name (not in use at present)
TIME_DEP Flag for time-dependency
'X'-> entity is time-dependent
' '-> is not time-dependent
TIME_UNIT Unit of time
The units of time allowed are defined in the
domain UDZEITE.
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change
SHORTTEXT Descriptive short text
GRAFICTEXT Graphics description (not in use at present)

In ALIAS_TAB all alias names for the entity are stored as follows:

LANGUAGE Language key
ENTITY_ID Identification of the entity
POSITION Position of the alias name
sequential number of the alias name (1-99)
ALIAS Alias name
MOD_USER Name of the user making the change
MOD_DATE Date of change

In the ATTRIBUTE_TAB the explicit attributes of an entity are stored (attributes can also be implied via view specified in VIEW_TABLE_TAB). The records of ATTRIBUTE_TAB have the following structure :

ENTITY_ID Identification of the entity
ATTRIB_ID Attribute ID
no more than 10 characters longer than the name
of the attribute
ATTRIB_TYP Attribute type (not in use at present)
FLDCLASS Classification of the entity
FLDCLASS2 Classification of the entity
FLDCLASS/FLDCLASS2 contain up to two
classifications for the attribute. The allowed
classifications can be found in the fixed values
for the domain UDFLDCLASS.
DTELNAME Name of the data element assigned to the
attribute
POSITION Attribute position
sequential number of the attribute (1-99)
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change

In the table RELATION_TAB, ingoing and outgoing relationships for the entity are stored. Each record of RELATION_TAB has the following structure:

ENTID_TO Target entity type
ENTID_FROM Source entity type
ROLE Relationship role
If there is more than one relationship between
two entity types, each relationship must be
identified by a single figure nubmer (its
role).
CAT_VAR Temporary reference
Only appropriate if the relationship category
is 'referential'. (see data element UDRELREST)
CATEGORY Relationship category
This describes the relationship from the point
of view of the target entity. The relationship
category can be one of the following:
H hierarchic
A aggregate
R referential
X external
(see also the documentation for the data
element UDRELTYP)
CARDINAL1 Cardinality of a relationship
CARDINAL2 Cardinality of a relationship
CARDINAL1/CARDINAL2 contains the cardinality of
the relationship between the source and target
entity (see also documentation for the data
element UDCDLEFT or UDCDRIGHT)
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change
SHTXT_FROM Short documentation for source entity
SHTXT_TO Short documentation for target entity
RELTXT1 Relationship description
Text on the link to a relationhip in the
graphic
RELTXT2 Relationship description (not used at present)

The specializations for the entity are stored in the table SPEZIALIZATION_TAB in the following form:

ENTID_TO Target entity type
SPEZ_ID Specialization category
four character number for identifying the
specialization category
ENTID_FROM Source entity type
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change
SHTXT_FROM Short documentation for source entity
SHTXT_TO Short documentation for target entity

The specialization categories for the entity are stored in the table SPECTYPE_TAB in the following form:

ENTITY_ID Identification of the entity
SPEZ_ID Specialization category
four character number for identifying the
specialization category
LANGUAGE Lanugage key
COMPLETE Flag for completeness of the specialization:
'X'-> specialization is complete
(see also the documentation for UDCOMPLETE)
DISJUNCT Flag for disjunct specialization
'X'-> specialization is disjunct
(see also the documentation for UDDISJUNCT)
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change
SHORTTEXT Short documentation for specialization
category

The view assigned to the entity is given in the table VIEW_TABLE_TAB in the following form:

ENTITY_ID Identification of the entity
VIEWNAME Name of an SAP table view assigned to the
entity
TABLNAME Table assigned to the entity
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change

All variants for the entity are given in the table VARIANT_TAB in the following form:

ENTITY_ID Identification of the entiy
VARIANT Number of the variants of an entity
MOD_USER Name of the user making the change
MOD_DATE Date of change
MOD_TIME Time of last change

Example


CALL FUNCTION 'RPY_ENTITY_UPDATE'
EXPORTING
ACTIVATION_TYPE = 'A'
ENTITY_INF = ENTITYINF
ENTITY_NAME = ENTITYNAME
LANGUAGE = SY-LANGU
TRANSPORT_NUMBER = 'B20K001114'
WITH_DOCU = 'X'
DOCUTYPE = 'T'
TABLES
ALIAS_TAB = ALIASTAB
ATTRIBUTE_TAB = ATTRIBUTETAB
RELATION_TAB = RELATIONTAB
SPECIALIZATION_TAB = SPECIALIZATIONTAB
SPECTYPE_TAB = SPECTYPETAB
VIEW_TABLE_TAB = VIEWTABLETAB
VARIANT_TAB = VARIANTTAB
DOCU_TABLE_TECH = DOCUTABLETECH
EXCEPTIONS
NOT_EXIST = 01
CANCELLED = 02
PERMISSION_ERROR = 03.

Notes

Further information

Data element documentation for the structures RPY_ENTITY, RPY_ALIAS, RPY_ATTRIB, RPY_RELAT, RPY_SPECI, RPY_SPTYP, RPY_VIEWAL, RPY_VARINT. Online documentation on data modeling.





Parameters

ALIASES
ASSIGNED_TABLE_OR_VIEW
ATTRIBUTES
CICO_DEV_CLASS
CICO_REQUEST_NO
ENTITY_ID
ENTITY_INFO
ERRORS
FORMATTED_DOCUMENTATION
INGOING_RELATIONSHIPS
INGOING_SPECIALIZATIONS
LANGUAGE
OUTGOING_SPEC_CATEGORIES
SAPSCRIPT_DOCUMENTATION
WITH_ALIASES
WITH_ASSIGNED_TABLE_OR_VIEW
WITH_ATTRIBUTES
WITH_FORMATTED_DOCUMENTATION
WITH_INGOING_RELATIONSHIPS
WITH_INGOING_SPECIALIZATIONS
WITH_OUTGOING_SPEC_CATEGORIES
WITH_SAPSCRIPT_DOCUMENTATION

Exceptions

Function Group

SIDM

Vendor Master (General Section)   General Material Data  
This documentation is copyright by SAP AG.

Length: 9888 Date: 20240523 Time: 133214     sap01-206 ( 67 ms )