SAP VB_CP_BUF_MCHP_READ Function Module for NOTRANSL: Chargenprotokoll: Lesen der Chargen-Schattentabelle MCHP
VB_CP_BUF_MCHP_READ is a standard vb cp buf mchp read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Chargenprotokoll: Lesen der Chargen-Schattentabelle MCHP 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 vb cp buf mchp read FM, simply by entering the name VB_CP_BUF_MCHP_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: VBP_EBR
Program Name: SAPLVBP_EBR
Main Program: SAPLVBP_EBR
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function VB_CP_BUF_MCHP_READ 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 'VB_CP_BUF_MCHP_READ'"NOTRANSL: Chargenprotokoll: Lesen der Chargen-Schattentabelle MCHP.
EXPORTING
* I_CHARG_LOW = "
* I_SELECTION_LIMIT = "Maximum number of batch records
* I_FLG_READ_NEW = "
* I_NO_STATUS_CHECK = "
* I_CHARG_HIGH = "
* I_MATNR_LOW = "
* I_MATNR_HIGH = "
* I_WERKS_LOW = "
* I_WERKS_HIGH = "
* I_FLG_APPROVAL = "
* I_SELID = "Selection profile (status)
* I_APLID_EBRA_FLG = "
IMPORTING
E_VERS = "
E_MCHP_STR = "
TABLES
* E_MCHP = "Batch Record: Buffer Table for Header
* E_WERKS = "Batch Records: Plants in Selection Range
* E_MATNR = "Batch Record: Plant-Specific Materials in Selection Range
* I_SEL_CHARG = "Transfer Batch Selection Criteria to Read MCHP
* I_SEL_MATNR = "Transfer Batch Selection Criteria to Read MCHP
* I_SEL_WERK = "Transfer Batch Selection Criteria to Read MCHP
EXCEPTIONS
NO_MCHP = 1 SCM_ADDON_ERROR = 2
IMPORTING Parameters details for VB_CP_BUF_MCHP_READ
I_CHARG_LOW -
Data type: MCHP-CHARGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SELECTION_LIMIT - Maximum number of batch records
Data type: VBCP_SEL-SELECT_LIMITOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_READ_NEW -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_STATUS_CHECK -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHARG_HIGH -
Data type: MCHP-CHARGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR_LOW -
Data type: MCHP-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR_HIGH -
Data type: MCHP-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS_LOW -
Data type: MCHP-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS_HIGH -
Data type: MCHP-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_APPROVAL -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SELID - Selection profile (status)
Data type: REBR3-SELID_EBROptional: Yes
Call by Reference: Yes
I_APLID_EBRA_FLG -
Data type: SY-DATAROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for VB_CP_BUF_MCHP_READ
E_VERS -
Data type: VBCP8Optional: No
Call by Reference: No ( called with pass by value option)
E_MCHP_STR -
Data type: VBCP0Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for VB_CP_BUF_MCHP_READ
E_MCHP - Batch Record: Buffer Table for Header
Data type: VBCP0Optional: Yes
Call by Reference: Yes
E_WERKS - Batch Records: Plants in Selection Range
Data type: VBCP14Optional: Yes
Call by Reference: Yes
E_MATNR - Batch Record: Plant-Specific Materials in Selection Range
Data type: VBCP15Optional: Yes
Call by Reference: Yes
I_SEL_CHARG - Transfer Batch Selection Criteria to Read MCHP
Data type: SEL_CHARGOptional: Yes
Call by Reference: Yes
I_SEL_MATNR - Transfer Batch Selection Criteria to Read MCHP
Data type: SEL_MATNROptional: Yes
Call by Reference: Yes
I_SEL_WERK - Transfer Batch Selection Criteria to Read MCHP
Data type: SEL_WERKSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_MCHP -
Data type:Optional: No
Call by Reference: Yes
SCM_ADDON_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for VB_CP_BUF_MCHP_READ 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_e_mchp | TYPE STANDARD TABLE OF VBCP0, " | |||
| lv_e_vers | TYPE VBCP8, " | |||
| lv_no_mchp | TYPE VBCP8, " | |||
| lv_i_charg_low | TYPE MCHP-CHARG, " | |||
| lv_i_selection_limit | TYPE VBCP_SEL-SELECT_LIMIT, " | |||
| lv_i_flg_read_new | TYPE BOOLE-BOOLE, " | |||
| lv_i_no_status_check | TYPE BOOLE-BOOLE, " | |||
| lt_e_werks | TYPE STANDARD TABLE OF VBCP14, " | |||
| lv_e_mchp_str | TYPE VBCP0, " | |||
| lv_i_charg_high | TYPE MCHP-CHARG, " | |||
| lv_scm_addon_error | TYPE MCHP, " | |||
| lt_e_matnr | TYPE STANDARD TABLE OF VBCP15, " | |||
| lv_i_matnr_low | TYPE MCHP-MATNR, " | |||
| lt_i_sel_charg | TYPE STANDARD TABLE OF SEL_CHARG, " | |||
| lv_i_matnr_high | TYPE MCHP-MATNR, " | |||
| lt_i_sel_matnr | TYPE STANDARD TABLE OF SEL_MATNR, " | |||
| lv_i_werks_low | TYPE MCHP-WERKS, " | |||
| lt_i_sel_werk | TYPE STANDARD TABLE OF SEL_WERKS, " | |||
| lv_i_werks_high | TYPE MCHP-WERKS, " | |||
| lv_i_flg_approval | TYPE BOOLE-BOOLE, " | |||
| lv_i_selid | TYPE REBR3-SELID_EBR, " | |||
| lv_i_aplid_ebra_flg | TYPE SY-DATAR. " |
|   CALL FUNCTION 'VB_CP_BUF_MCHP_READ' "NOTRANSL: Chargenprotokoll: Lesen der Chargen-Schattentabelle MCHP |
| EXPORTING | ||
| I_CHARG_LOW | = lv_i_charg_low | |
| I_SELECTION_LIMIT | = lv_i_selection_limit | |
| I_FLG_READ_NEW | = lv_i_flg_read_new | |
| I_NO_STATUS_CHECK | = lv_i_no_status_check | |
| I_CHARG_HIGH | = lv_i_charg_high | |
| I_MATNR_LOW | = lv_i_matnr_low | |
| I_MATNR_HIGH | = lv_i_matnr_high | |
| I_WERKS_LOW | = lv_i_werks_low | |
| I_WERKS_HIGH | = lv_i_werks_high | |
| I_FLG_APPROVAL | = lv_i_flg_approval | |
| I_SELID | = lv_i_selid | |
| I_APLID_EBRA_FLG | = lv_i_aplid_ebra_flg | |
| IMPORTING | ||
| E_VERS | = lv_e_vers | |
| E_MCHP_STR | = lv_e_mchp_str | |
| TABLES | ||
| E_MCHP | = lt_e_mchp | |
| E_WERKS | = lt_e_werks | |
| E_MATNR | = lt_e_matnr | |
| I_SEL_CHARG | = lt_i_sel_charg | |
| I_SEL_MATNR | = lt_i_sel_matnr | |
| I_SEL_WERK | = lt_i_sel_werk | |
| EXCEPTIONS | ||
| NO_MCHP = 1 | ||
| SCM_ADDON_ERROR = 2 | ||
| . " VB_CP_BUF_MCHP_READ | ||
ABAP code using 7.40 inline data declarations to call FM VB_CP_BUF_MCHP_READ
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 CHARG FROM MCHP INTO @DATA(ld_i_charg_low). | ||||
| "SELECT single SELECT_LIMIT FROM VBCP_SEL INTO @DATA(ld_i_selection_limit). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flg_read_new). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_status_check). | ||||
| "SELECT single CHARG FROM MCHP INTO @DATA(ld_i_charg_high). | ||||
| "SELECT single MATNR FROM MCHP INTO @DATA(ld_i_matnr_low). | ||||
| "SELECT single MATNR FROM MCHP INTO @DATA(ld_i_matnr_high). | ||||
| "SELECT single WERKS FROM MCHP INTO @DATA(ld_i_werks_low). | ||||
| "SELECT single WERKS FROM MCHP INTO @DATA(ld_i_werks_high). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flg_approval). | ||||
| "SELECT single SELID_EBR FROM REBR3 INTO @DATA(ld_i_selid). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_i_aplid_ebra_flg). | ||||
Search for further information about these or an SAP related objects