SAP EHPRC_RCS_PFR_EXP_ALL_SUBPROF Function Module for Export of substance profile
EHPRC_RCS_PFR_EXP_ALL_SUBPROF is a standard ehprc rcs pfr exp all subprof SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Export of substance profile 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 ehprc rcs pfr exp all subprof FM, simply by entering the name EHPRC_RCS_PFR_EXP_ALL_SUBPROF into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHPRC_RCS_PFR_EXP
Program Name: SAPLEHPRC_RCS_PFR_EXP
Main Program: SAPLEHPRC_RCS_PFR_EXP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHPRC_RCS_PFR_EXP_ALL_SUBPROF 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 'EHPRC_RCS_PFR_EXP_ALL_SUBPROF'"Export of substance profile.
EXPORTING
* IV_LAISO = "Language according to ISO 639
* IV_FLG_SUB_DATA = ESP1_TRUE "Flag: read substance identifiers
* IS_DATA_BGR = "Data for background mode (for JAVA RFC Server)
IMPORTING
EV_FLG_ERROR = "Flag: error occured
TABLES
IT_RECN = "Substance key
* IT_SUB = "Key structure for substance identifiers
ET_EXPORT_SUBPROF = "Export structure for substance profile
ET_EXPORT_KEY_SVHC = "Export structure for SVHC data
ET_ERROR = "EHS: General Error Structure
IMPORTING Parameters details for EHPRC_RCS_PFR_EXP_ALL_SUBPROF
IV_LAISO - Language according to ISO 639
Data type: LAISOOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_FLG_SUB_DATA - Flag: read substance identifiers
Data type: ESEBOOLEDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_DATA_BGR - Data for background mode (for JAVA RFC Server)
Data type: EHPRCS_PFR_BGROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHPRC_RCS_PFR_EXP_ALL_SUBPROF
EV_FLG_ERROR - Flag: error occured
Data type: ESEBOOLEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EHPRC_RCS_PFR_EXP_ALL_SUBPROF
IT_RECN - Substance key
Data type: EHPRCS_EXP_RECNOptional: No
Call by Reference: Yes
IT_SUB - Key structure for substance identifiers
Data type: EHPRCS_KEY_SUBOptional: Yes
Call by Reference: Yes
ET_EXPORT_SUBPROF - Export structure for substance profile
Data type: EHPRCS_EXP_ALL_SUBPROFOptional: No
Call by Reference: Yes
ET_EXPORT_KEY_SVHC - Export structure for SVHC data
Data type: EHPRCS_KEY_BASDAT_SVHCOptional: No
Call by Reference: Yes
ET_ERROR - EHS: General Error Structure
Data type: RCGEXTERROROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for EHPRC_RCS_PFR_EXP_ALL_SUBPROF 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_it_recn | TYPE STANDARD TABLE OF EHPRCS_EXP_RECN, " | |||
| lv_iv_laiso | TYPE LAISO, " | |||
| lv_ev_flg_error | TYPE ESEBOOLE, " | |||
| lt_it_sub | TYPE STANDARD TABLE OF EHPRCS_KEY_SUB, " | |||
| lv_iv_flg_sub_data | TYPE ESEBOOLE, " ESP1_TRUE | |||
| lv_is_data_bgr | TYPE EHPRCS_PFR_BGR, " | |||
| lt_et_export_subprof | TYPE STANDARD TABLE OF EHPRCS_EXP_ALL_SUBPROF, " | |||
| lt_et_export_key_svhc | TYPE STANDARD TABLE OF EHPRCS_KEY_BASDAT_SVHC, " | |||
| lt_et_error | TYPE STANDARD TABLE OF RCGEXTERROR. " |
|   CALL FUNCTION 'EHPRC_RCS_PFR_EXP_ALL_SUBPROF' "Export of substance profile |
| EXPORTING | ||
| IV_LAISO | = lv_iv_laiso | |
| IV_FLG_SUB_DATA | = lv_iv_flg_sub_data | |
| IS_DATA_BGR | = lv_is_data_bgr | |
| IMPORTING | ||
| EV_FLG_ERROR | = lv_ev_flg_error | |
| TABLES | ||
| IT_RECN | = lt_it_recn | |
| IT_SUB | = lt_it_sub | |
| ET_EXPORT_SUBPROF | = lt_et_export_subprof | |
| ET_EXPORT_KEY_SVHC | = lt_et_export_key_svhc | |
| ET_ERROR | = lt_et_error | |
| . " EHPRC_RCS_PFR_EXP_ALL_SUBPROF | ||
ABAP code using 7.40 inline data declarations to call FM EHPRC_RCS_PFR_EXP_ALL_SUBPROF
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.| DATA(ld_iv_flg_sub_data) | = ESP1_TRUE. | |||
Search for further information about these or an SAP related objects