SAP RPY_ENTITY_INSERT Function Module for Insert Entity Type









RPY_ENTITY_INSERT is a standard rpy entity insert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert Entity Type processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rpy entity insert FM, simply by entering the name RPY_ENTITY_INSERT into the relevant SAP transaction such as SE37 or SE38.

Function Group: SIDM
Program Name: SAPLSIDM
Main Program: SAPLSIDM
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RPY_ENTITY_INSERT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RPY_ENTITY_INSERT'"Insert Entity Type
EXPORTING
* CICO_REQUEST_NO = ' ' "
* WITH_ATTRIBUTES = 'X' "
* WITH_INGOING_SPECIALIZATIONS = 'X' "
* WITH_INGOING_RELATIONSHIPS = 'X' "
* WITH_OUTGOING_SPEC_CATEGORIES = 'X' "
* WITH_ASSIGNED_TABLE_OR_VIEW = 'X' "
* CICO_DEV_CLASS = '$TMP' "Package
ENTITY_ID = "
ENTITY_INFO = "
* ASSIGNED_TABLE_OR_VIEW = ' ' "
* LANGUAGE = SY-LANGU "
* WITH_ALIASES = 'X' "
* WITH_FORMATTED_DOCUMENTATION = ' ' "
* WITH_SAPSCRIPT_DOCUMENTATION = 'X' "

TABLES
ERRORS = "Error Information
* ALIASES = "Aliases
* FORMATTED_DOCUMENTATION = "
* SAPSCRIPT_DOCUMENTATION = "
* ATTRIBUTES = "Attributes
* INGOING_SPECIALIZATIONS = "
* INGOING_RELATIONSHIPS = "Incoming links
* OUTGOING_SPEC_CATEGORIES = "Specialization Categories
.



IMPORTING Parameters details for RPY_ENTITY_INSERT

CICO_REQUEST_NO -

Data type: RPYDMGF-CICOREQUNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_ATTRIBUTES -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_INGOING_SPECIALIZATIONS -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_INGOING_RELATIONSHIPS -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_OUTGOING_SPEC_CATEGORIES -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_ASSIGNED_TABLE_OR_VIEW -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CICO_DEV_CLASS - Package

Data type: RPYDMGF-CICODEVCL
Default: '$TMP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENTITY_ID -

Data type: RPYDMEN-ENTITY_ID
Optional: No
Call by Reference: No ( called with pass by value option)

ENTITY_INFO -

Data type: RPYDMEN
Optional: No
Call by Reference: No ( called with pass by value option)

ASSIGNED_TABLE_OR_VIEW -

Data type: RPYDMTV
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGUAGE -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_ALIASES -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_FORMATTED_DOCUMENTATION -

Data type: RPYDMGF-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_SAPSCRIPT_DOCUMENTATION -

Data type: RPYDMGF-FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RPY_ENTITY_INSERT

ERRORS - Error Information

Data type: RPYGSER
Optional: No
Call by Reference: No ( called with pass by value option)

ALIASES - Aliases

Data type: RPYDMAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORMATTED_DOCUMENTATION -

Data type: RPYDMFD
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAPSCRIPT_DOCUMENTATION -

Data type: RPYDMSD
Optional: Yes
Call by Reference: No ( called with pass by value option)

ATTRIBUTES - Attributes

Data type: RPYDMAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

INGOING_SPECIALIZATIONS -

Data type: RPYDMSP
Optional: Yes
Call by Reference: No ( called with pass by value option)

INGOING_RELATIONSHIPS - Incoming links

Data type: RPYDMRL
Optional: Yes
Call by Reference: No ( called with pass by value option)

OUTGOING_SPEC_CATEGORIES - Specialization Categories

Data type: RPYDMSC
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RPY_ENTITY_INSERT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_errors  TYPE STANDARD TABLE OF RPYGSER, "   
lv_cico_request_no  TYPE RPYDMGF-CICOREQUNO, "   SPACE
lv_with_attributes  TYPE RPYDMGF-FLAG, "   'X'
lv_with_ingoing_specializations  TYPE RPYDMGF-FLAG, "   'X'
lv_with_ingoing_relationships  TYPE RPYDMGF-FLAG, "   'X'
lv_with_outgoing_spec_categories  TYPE RPYDMGF-FLAG, "   'X'
lv_with_assigned_table_or_view  TYPE RPYDMGF-FLAG, "   'X'
lt_aliases  TYPE STANDARD TABLE OF RPYDMAL, "   
lv_cico_dev_class  TYPE RPYDMGF-CICODEVCL, "   '$TMP'
lv_entity_id  TYPE RPYDMEN-ENTITY_ID, "   
lt_formatted_documentation  TYPE STANDARD TABLE OF RPYDMFD, "   
lv_entity_info  TYPE RPYDMEN, "   
lt_sapscript_documentation  TYPE STANDARD TABLE OF RPYDMSD, "   
lt_attributes  TYPE STANDARD TABLE OF RPYDMAT, "   
lv_assigned_table_or_view  TYPE RPYDMTV, "   SPACE
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_ingoing_specializations  TYPE STANDARD TABLE OF RPYDMSP, "   
lv_with_aliases  TYPE RPYDMGF-FLAG, "   'X'
lt_ingoing_relationships  TYPE STANDARD TABLE OF RPYDMRL, "   
lt_outgoing_spec_categories  TYPE STANDARD TABLE OF RPYDMSC, "   
lv_with_formatted_documentation  TYPE RPYDMGF-FLAG, "   SPACE
lv_with_sapscript_documentation  TYPE RPYDMGF-FLAG. "   'X'

  CALL FUNCTION 'RPY_ENTITY_INSERT'  "Insert Entity Type
    EXPORTING
         CICO_REQUEST_NO = lv_cico_request_no
         WITH_ATTRIBUTES = lv_with_attributes
         WITH_INGOING_SPECIALIZATIONS = lv_with_ingoing_specializations
         WITH_INGOING_RELATIONSHIPS = lv_with_ingoing_relationships
         WITH_OUTGOING_SPEC_CATEGORIES = lv_with_outgoing_spec_categories
         WITH_ASSIGNED_TABLE_OR_VIEW = lv_with_assigned_table_or_view
         CICO_DEV_CLASS = lv_cico_dev_class
         ENTITY_ID = lv_entity_id
         ENTITY_INFO = lv_entity_info
         ASSIGNED_TABLE_OR_VIEW = lv_assigned_table_or_view
         LANGUAGE = lv_language
         WITH_ALIASES = lv_with_aliases
         WITH_FORMATTED_DOCUMENTATION = lv_with_formatted_documentation
         WITH_SAPSCRIPT_DOCUMENTATION = lv_with_sapscript_documentation
    TABLES
         ERRORS = lt_errors
         ALIASES = lt_aliases
         FORMATTED_DOCUMENTATION = lt_formatted_documentation
         SAPSCRIPT_DOCUMENTATION = lt_sapscript_documentation
         ATTRIBUTES = lt_attributes
         INGOING_SPECIALIZATIONS = lt_ingoing_specializations
         INGOING_RELATIONSHIPS = lt_ingoing_relationships
         OUTGOING_SPEC_CATEGORIES = lt_outgoing_spec_categories
. " RPY_ENTITY_INSERT




ABAP code using 7.40 inline data declarations to call FM RPY_ENTITY_INSERT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single CICOREQUNO FROM RPYDMGF INTO @DATA(ld_cico_request_no).
DATA(ld_cico_request_no) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_attributes).
DATA(ld_with_attributes) = 'X'.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_ingoing_specializations).
DATA(ld_with_ingoing_specializations) = 'X'.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_ingoing_relationships).
DATA(ld_with_ingoing_relationships) = 'X'.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_outgoing_spec_categories).
DATA(ld_with_outgoing_spec_categories) = 'X'.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_assigned_table_or_view).
DATA(ld_with_assigned_table_or_view) = 'X'.
 
 
"SELECT single CICODEVCL FROM RPYDMGF INTO @DATA(ld_cico_dev_class).
DATA(ld_cico_dev_class) = '$TMP'.
 
"SELECT single ENTITY_ID FROM RPYDMEN INTO @DATA(ld_entity_id).
 
 
 
 
 
DATA(ld_assigned_table_or_view) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_aliases).
DATA(ld_with_aliases) = 'X'.
 
 
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_formatted_documentation).
DATA(ld_with_formatted_documentation) = ' '.
 
"SELECT single FLAG FROM RPYDMGF INTO @DATA(ld_with_sapscript_documentation).
DATA(ld_with_sapscript_documentation) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!