SAP EHPRC_CP_BB20R_SUBUPD_MATJOIN Function Module for CP: BOMBOS - Creates the REACH specific material assignments
EHPRC_CP_BB20R_SUBUPD_MATJOIN is a standard ehprc cp bb20r subupd matjoin SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CP: BOMBOS - Creates the REACH specific material 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 ehprc cp bb20r subupd matjoin FM, simply by entering the name EHPRC_CP_BB20R_SUBUPD_MATJOIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHPRC_CP_BB20R
Program Name: SAPLEHPRC_CP_BB20R
Main Program: SAPLEHPRC_CP_BB20R
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHPRC_CP_BB20R_SUBUPD_MATJOIN 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_CP_BB20R_SUBUPD_MATJOIN'"CP: BOMBOS - Creates the REACH specific material assignments.
EXPORTING
IS_ADDINF = "
I_SCENARIO = "
* IS_MAT_EXT = "CP: Material number - extended structure
IMPORTING
E_FLG_ERROR = "
E_FLG_CANCEL = "
CHANGING
XS_SUBHEAD = "
X_SRSID = "
X_OWNID = "
TABLES
* XT_REFSUB = "
* XT_IDENT = "
* XT_MATJOIN = "
* XT_PROP = "
* ET_MESSAGE = "
IMPORTING Parameters details for EHPRC_CP_BB20R_SUBUPD_MATJOIN
IS_ADDINF -
Data type: RCGADDINFOptional: No
Call by Reference: Yes
I_SCENARIO -
Data type: EHPRC_UPD_SCENARIOOptional: No
Call by Reference: Yes
IS_MAT_EXT - CP: Material number - extended structure
Data type: EHPRCS_MATERIAL_EXTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EHPRC_CP_BB20R_SUBUPD_MATJOIN
E_FLG_ERROR -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
E_FLG_CANCEL -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
CHANGING Parameters details for EHPRC_CP_BB20R_SUBUPD_MATJOIN
XS_SUBHEAD -
Data type: ESPRH_APIRH_WA_TYPEOptional: No
Call by Reference: Yes
X_SRSID -
Data type: ESESRSIDOptional: No
Call by Reference: Yes
X_OWNID -
Data type: ESEOWNIDOptional: No
Call by Reference: Yes
TABLES Parameters details for EHPRC_CP_BB20R_SUBUPD_MATJOIN
XT_REFSUB -
Data type: ESPRH_APIRR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
XT_IDENT -
Data type: ESPRH_API_IDENT_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
XT_MATJOIN -
Data type: ESPRH_APIMJ_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
XT_PROP -
Data type: ESPRH_API_PROP_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_MESSAGE -
Data type: BALMIOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHPRC_CP_BB20R_SUBUPD_MATJOIN 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_is_addinf | TYPE RCGADDINF, " | |||
| lt_xt_refsub | TYPE STANDARD TABLE OF ESPRH_APIRR_TAB_TYPE, " | |||
| lv_xs_subhead | TYPE ESPRH_APIRH_WA_TYPE, " | |||
| lv_e_flg_error | TYPE ESP1_BOOLEAN, " | |||
| lv_x_srsid | TYPE ESESRSID, " | |||
| lt_xt_ident | TYPE STANDARD TABLE OF ESPRH_API_IDENT_TAB_TYPE, " | |||
| lv_i_scenario | TYPE EHPRC_UPD_SCENARIO, " | |||
| lv_e_flg_cancel | TYPE ESP1_BOOLEAN, " | |||
| lv_x_ownid | TYPE ESEOWNID, " | |||
| lv_is_mat_ext | TYPE EHPRCS_MATERIAL_EXT, " | |||
| lt_xt_matjoin | TYPE STANDARD TABLE OF ESPRH_APIMJ_TAB_TYPE, " | |||
| lt_xt_prop | TYPE STANDARD TABLE OF ESPRH_API_PROP_TAB_TYPE, " | |||
| lt_et_message | TYPE STANDARD TABLE OF BALMI. " |
|   CALL FUNCTION 'EHPRC_CP_BB20R_SUBUPD_MATJOIN' "CP: BOMBOS - Creates the REACH specific material assignments |
| EXPORTING | ||
| IS_ADDINF | = lv_is_addinf | |
| I_SCENARIO | = lv_i_scenario | |
| IS_MAT_EXT | = lv_is_mat_ext | |
| IMPORTING | ||
| E_FLG_ERROR | = lv_e_flg_error | |
| E_FLG_CANCEL | = lv_e_flg_cancel | |
| CHANGING | ||
| XS_SUBHEAD | = lv_xs_subhead | |
| X_SRSID | = lv_x_srsid | |
| X_OWNID | = lv_x_ownid | |
| TABLES | ||
| XT_REFSUB | = lt_xt_refsub | |
| XT_IDENT | = lt_xt_ident | |
| XT_MATJOIN | = lt_xt_matjoin | |
| XT_PROP | = lt_xt_prop | |
| ET_MESSAGE | = lt_et_message | |
| . " EHPRC_CP_BB20R_SUBUPD_MATJOIN | ||
ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_BB20R_SUBUPD_MATJOIN
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.Search for further information about these or an SAP related objects