RCP321_EHS_OBJECTS_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RCP321_EHS_OBJECTS_READ into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RCP321
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RCP321_EHS_OBJECTS_READ' "
EXPORTING
i_data_scenario = " rcpe_datascen
it_key_obj = " rcp31_gt_key_obj
* it_aennr = " rcpty_api_aennr_rcp
* it_sel_aennr_rcp = " rcp31_gt_rcp_aennr
is_read_entity = " rcps_entity_flags
* it_rcp = " rcpty_api_rcp
* i_valdat = " pvs_adatum
IMPORTING
et_api_ident = " rcpty_api_ident
et_api_ascope = " rcpty_api_ascope
et_api_pp = " rcpty_api_pp
EXCEPTIONS
ERROR = 1 "
. " RCP321_EHS_OBJECTS_READ
The ABAP code below is a full code listing to execute function module RCP321_EHS_OBJECTS_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_et_api_ident | TYPE RCPTY_API_IDENT , |
| ld_et_api_ascope | TYPE RCPTY_API_ASCOPE , |
| ld_et_api_pp | TYPE RCPTY_API_PP . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_et_api_ident | TYPE RCPTY_API_IDENT , |
| ld_i_data_scenario | TYPE RCPE_DATASCEN , |
| ld_et_api_ascope | TYPE RCPTY_API_ASCOPE , |
| ld_it_key_obj | TYPE RCP31_GT_KEY_OBJ , |
| ld_et_api_pp | TYPE RCPTY_API_PP , |
| ld_it_aennr | TYPE RCPTY_API_AENNR_RCP , |
| ld_it_sel_aennr_rcp | TYPE RCP31_GT_RCP_AENNR , |
| ld_is_read_entity | TYPE RCPS_ENTITY_FLAGS , |
| ld_it_rcp | TYPE RCPTY_API_RCP , |
| ld_i_valdat | TYPE PVS_ADATUM . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RCP321_EHS_OBJECTS_READ or its description.