SAP Function RPY_ENTITY_MULTI_READ - Read entity types + further information

Parameter Reference Type Length Default Optional Text
CICO_MODE RPYDMGF-CICOMODE C 1 'R' X Checkin / checkout mode
CICO_REQUEST_NO RPYDMGF-CICOREQUNO C 20 SPACE X Checkin / check out administration number
LANGUAGE SYST-LANGU C 1 SY-LANGU X Language for reading the descriptions
WITH_ALIASES RPYDMGF-FLAG C 1 'X' X Read with alias names?
WITH_ASSIGNED_TABLES_OR_VIEWS RPYDMGF-FLAG C 1 'X' X Read with table / view assignment?
WITH_ATTRIBUTES RPYDMGF-FLAG C 1 'X' X Read with attributes?
WITH_FORMATTED_DOCUMENTATION RPYDMGF-FLAG C 1 SPACE X Read with formatted documentation?
WITH_INGOING_RELATIONSHIPS RPYDMGF-FLAG C 1 'X' X Read with ingoing relationships?
WITH_INGOING_SPECIALIZATIONS RPYDMGF-FLAG C 1 'X' X Read with ingoing specializations?
WITH_OUTGOING_RELATIONSHIPS RPYDMGF-FLAG C 1 SPACE X Read with outgoing relationships?
WITH_OUTGOING_SPECIALIZATIONS RPYDMGF-FLAG C 1 SPACE X Read with outgoing specializations?
WITH_OUTGOING_SPEC_CATEGORIES RPYDMGF-FLAG C 1 'X' X Read with outgoing specializations?
WITH_SAPSCRIPT_DOCUMENTATION RPYDMGF-FLAG C 1 'X' X Read with SAPscript documentation?
WITH_WHERE_USED_LIST RPYDMGF-FLAG C 1 SPACE X Read with where-used-list?

Parameter Reference Length Optional Text
ALIASES RPYDMAL 141 X Aliases
ASSIGNED_TABLES_OR_VIEWS RPYDMTV 138 X Table / view assignments
ATTRIBUTES RPYDMAT 208 X Attributes
ENTITY_IDS RPYDMEI 26 IDs of entity types to be read
ENTITY_INFOS RPYDMEN 143 X Basic information on the entity types
ERRORS RPYGSER 268 Error information
FORMATTED_DOCUMENTATION RPYDMFD 73 X Documentation in formatted form
INGOING_RELATIONSHIPS RPYDMRL 292 X Ingoing relationships
INGOING_SPECIALIZATIONS RPYDMSP 229 X Ingoing specializations
OUTGOING_RELATIONSHIPS RPYDMRL 292 X Outgoing relationships
OUTGOING_SPECIALIZATIONS RPYDMSP 229 X Outgoing specializations
OUTGOING_SPEC_CATEGORIES RPYDMSC 145 X Specialization Types
SAPSCRIPT_DOCUMENTATION RPYDMSD 134 X Documentation in SAPscript form
WHERE_USED_LIST RPYDMHI 119 X Where-used List

Functionality
The function module RPY_ENTITY_MULTI_READ reads information for ONE orSEVERAL entity types of the Data Modeler and supplies them in the formof tables.
The transport objects (entity types) and further infromation in theenvironment of the transport objects are read.
INCLUDE RPY_UENO_TRANSPORT_OBJECT OBJECT DOKU ID TX
INCLUDE RPY_UENO_WITH OBJECT DOKU ID TX
INCLUDE RPY_DM_ERRORS OBJECT DOKU ID TX

Example
With the following example you select all relevant information aboutthree entity types, in this case in the materials area.Precisely the transport objects are selected.
* Declaration of variables
data: t_entity_ids like rpydmei occurs 10 with header line,
t_errors like rpygser occurs 10 with header line,t_entity_infos like rpydmen occurs 10,
t_aliases like rpydmal occurs 50,
t_formatted_documentation like rpydmfd occurs 2500,
t_sapscript_documentation like rpydmsd occurs 2500,
t_attributes like rpydmat occurs 2500,
t_ingoing_specializations like rpydmsp occurs 100,
t_outgoing_specializations like rpydmsp occurs 100,
t_ingoing_relationships like rpydmrl occurs 500,
t_outgoing_relationships like rpydmrl occurs 500,
t_outgoing_spec_categories like rpydmsc occurs 100,
t_assigned_tables_or_views like rpydmtv occurs 10,
t_where_used_list like rpydmhi occurs 1000.
* Determine entity types to be read
t_entity_ids = '11027'. append t_entity_ids. " Material
t_entity_ids = '11006'. append t_entity_ids. " Plant material
t_entity_ids = '16066'. append t_entity_ids. " Sales material
* Call Repository-API
call function 'RPY_ENTITY_MULTI_READ'
exporting
cico_mode = 'R'
cico_request_no = ' '
language = sy-langu
with_aliases = 'X'
with_formatted_documentation = ' '
with_sapscript_documentation = 'X'
with_attributes = 'X'
with_ingoing_specializations = 'X'
with_outgoing_specializations = ' '
with_ingoing_relationships = 'X'
with_outgoing_relationships = ' '
with_outgoing_spec_categories = 'X'
with_assigned_tables_or_views = 'X'
with_where_used_list = ' '
tables
errors = t_errors
entity_ids = t_entity_ids
entity_infos = t_entity_infos
aliases = t_aliases
formatted_documentation = t_formatted_documentation
sapscript_documentation = t_sapscript_documentation
attributes = t_attributes
ingoing_specializations = t_ingoing_specializations
outgoing_specializations = t_outgoing_specializations
ingoing_relationships = t_ingoing_relationships
outgoing_relationships = t_outgoing_relationships
outgoing_spec_categories = t_outgoing_spec_categories
assigned_tables_or_views = t_assigned_tables_or_views
where_used_list = t_where_used_list.
* Error handling
loop at t_errors.
if ...
...
endif.
endloop.

Further sources of information
Further information on the structures and tables involved in callingRPY_ENTITY_MULTI_READ is available in:
Entity type IDs
Entity type
Alias
Attribute
Specialization category
Specialization
Relationship
Assigned table or view
Formatted documentation
SAPscript documentation
General fields
Error table
The following function modules also belong to the Repository API of theData Modeler and may be of interest to you:
RPY_ENTITY_READ
RPY_ENTITY_SELECT
RPY_ENTITY_UPDATE
RPY_ENTITY_INSERT
RPY_ENTITY_DELETE
RPY_DATA_MODEL_READ
RPY_DATA_MODEL_MULTI_READ
RPY_DATA_MODEL_SELECT
RPY_DATA_MODEL_UPDATE
RPY_DATA_MODEL_INSERT
RPY_DATA_MODEL_DELETE
You will find more general information about the Data Modeler and datamodelling
in the online documentation for the Data Modeler
in the book 'Data Modeler' from the series about the AbaP/4 DevelopmentWorkbench
in method guide 'SAP Information Model' (product number 50007795).