Functionality The function module RPY_ENTITY_READ reads information for ONE entitytype of the Data Modeler and supplies them in the form of structuresand tables. The transport object (entity type) and further infromation in theenvironment of the transport object 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 aboutone entity type, in this case materials.Precisely the transport object is selected. * Declaration of variables data: c_entity_id like rpydmen-entity_id, s_entity_info like rpydmen, s_assigned_table_or_view like rpydmtv. data: t_errors like rpygser occurs 10 with header line. data: t_aliases like rpydmal occurs 5, t_formatted_documentation like rpydmfd occurs 250, t_sapscript_documentation like rpydmsd occurs 250, t_attributes like rpydmat occurs 250, t_ingoing_specializations like rpydmsp occurs 10, t_outgoing_specializations like rpydmsp occurs 10, t_ingoing_relationships like rpydmrl occurs 50, t_outgoing_relationships like rpydmrl occurs 50, t_outgoing_spec_categories like rpydmsc occurs 10, t_where_used_list like rpydmhi occurs 100. * Determine entity type to be read c_entity_id = '11027'. " Material * Call Repository-API call function 'RPY_ENTITY_READ' exporting cico_mode = 'R' cico_request_no = ' ' entity_id = c_entity_id 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_table_or_view = 'X' with_where_used_list = ' ' importing entity_info = s_entity_info assigned_table_or_view = s_assigned_table_or_view tables errors = t_errors 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 where_used_list = t_where_used_list. * Error handling loop at t_errors. if ... ... endif. endloop. Further information Further information on the structures and tables involved in callingRPY_ENTITY_READ is available in: 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_MULTI_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). |