SAP EHSB_OUT02_SUB_PROP Function Module for EHS: Read and Assign Value Assignments
EHSB_OUT02_SUB_PROP is a standard ehsb out02 sub prop SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Read and Assign Value Assignments 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 ehsb out02 sub prop FM, simply by entering the name EHSB_OUT02_SUB_PROP into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSB_OUT02
Program Name: SAPLEHSB_OUT02
Main Program: SAPLEHSB_OUT02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSB_OUT02_SUB_PROP 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 'EHSB_OUT02_SUB_PROP'"EHS: Read and Assign Value Assignments.
EXPORTING
I_RECN = "Sequence Number of the Data Record
* IT_API_PROP_SOURCE = "
* IT_API_PROP_FTEXT = "
* IT_API_PROP_FTEXT_LONGTEXT_TAB = "
I_ADDINF = "
* I_LANGU = SY-LANGU "SAP System, Current Language
IT_API_PROP_HEADER = "
* IT_API_PROP = "
* IT_API_PROP_DATA = "
* IT_API_PROP_COMPONENT = "
* IT_API_PROP_USAGE = "
* IT_API_PROP_RELIABILITY = "
IMPORTING
ET_OTPT_PROP = "Table Type Substance Characteristic Categories
IMPORTING Parameters details for EHSB_OUT02_SUB_PROP
I_RECN - Sequence Number of the Data Record
Data type: ESERECNOptional: No
Call by Reference: No ( called with pass by value option)
IT_API_PROP_SOURCE -
Data type: ESPRH_APIDS_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_API_PROP_FTEXT -
Data type: ESPRH_APIDF_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_API_PROP_FTEXT_LONGTEXT_TAB -
Data type: ESPRH_APIFL_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ADDINF -
Data type: RCGADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_LANGU - SAP System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: No
Call by Reference: No ( called with pass by value option)
IT_API_PROP_HEADER -
Data type: ESPRH_APIVH_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
IT_API_PROP -
Data type: ESPRH_APIVA_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_API_PROP_DATA -
Data type: ESPRH_APIPR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_API_PROP_COMPONENT -
Data type: ESPRH_APIVP_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_API_PROP_USAGE -
Data type: ESPRH_APIDU_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_API_PROP_RELIABILITY -
Data type: ESPRH_APIDR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHSB_OUT02_SUB_PROP
ET_OTPT_PROP - Table Type Substance Characteristic Categories
Data type: EHSBTY_OTPT_VHOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHSB_OUT02_SUB_PROP 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: | ||||
| lv_i_recn | TYPE ESERECN, " | |||
| lv_et_otpt_prop | TYPE EHSBTY_OTPT_VH, " | |||
| lv_it_api_prop_source | TYPE ESPRH_APIDS_TAB_TYPE, " | |||
| lv_it_api_prop_ftext | TYPE ESPRH_APIDF_TAB_TYPE, " | |||
| lv_it_api_prop_ftext_longtext_tab | TYPE ESPRH_APIFL_TAB_TYPE, " | |||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_it_api_prop_header | TYPE ESPRH_APIVH_TAB_TYPE, " | |||
| lv_it_api_prop | TYPE ESPRH_APIVA_TAB_TYPE, " | |||
| lv_it_api_prop_data | TYPE ESPRH_APIPR_TAB_TYPE, " | |||
| lv_it_api_prop_component | TYPE ESPRH_APIVP_TAB_TYPE, " | |||
| lv_it_api_prop_usage | TYPE ESPRH_APIDU_TAB_TYPE, " | |||
| lv_it_api_prop_reliability | TYPE ESPRH_APIDR_TAB_TYPE. " |
|   CALL FUNCTION 'EHSB_OUT02_SUB_PROP' "EHS: Read and Assign Value Assignments |
| EXPORTING | ||
| I_RECN | = lv_i_recn | |
| IT_API_PROP_SOURCE | = lv_it_api_prop_source | |
| IT_API_PROP_FTEXT | = lv_it_api_prop_ftext | |
| IT_API_PROP_FTEXT_LONGTEXT_TAB | = lv_it_api_prop_ftext_longtext_tab | |
| I_ADDINF | = lv_i_addinf | |
| I_LANGU | = lv_i_langu | |
| IT_API_PROP_HEADER | = lv_it_api_prop_header | |
| IT_API_PROP | = lv_it_api_prop | |
| IT_API_PROP_DATA | = lv_it_api_prop_data | |
| IT_API_PROP_COMPONENT | = lv_it_api_prop_component | |
| IT_API_PROP_USAGE | = lv_it_api_prop_usage | |
| IT_API_PROP_RELIABILITY | = lv_it_api_prop_reliability | |
| IMPORTING | ||
| ET_OTPT_PROP | = lv_et_otpt_prop | |
| . " EHSB_OUT02_SUB_PROP | ||
ABAP code using 7.40 inline data declarations to call FM EHSB_OUT02_SUB_PROP
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 LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
| DATA(ld_i_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects