SAP CO_BC_RESB_PRE_READ Function Module for NOTRANSL: PRE_READ der Reservierungen mehrerer Aufträge









CO_BC_RESB_PRE_READ is a standard co bc resb pre 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: PRE_READ der Reservierungen mehrerer Aufträge 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 co bc resb pre read FM, simply by entering the name CO_BC_RESB_PRE_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: COBC
Program Name: SAPLCOBC
Main Program: SAPLCOBC
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CO_BC_RESB_PRE_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 'CO_BC_RESB_PRE_READ'"NOTRANSL: PRE_READ der Reservierungen mehrerer Aufträge
EXPORTING
* CLIENT = SY-MANDT "
TRTYP_IMP = "Transaction type 'A'=display, 'V'=change
* FLG_INSERT_ITAB = ' ' "
* FLG_APPL_PPSFC = ' ' "
* IMPORT_MESSAGE_ID = ' ' "
* NUMBER_OF_TASKS = 1 "
* FLG_NO_BANF = "
* FLG_NO_AUTO_REFILL_ITAB = ' ' "

TABLES
RSNUM_PRE_TAB = "
* AUTAB_TAB = "

EXCEPTIONS
RELEASE_NO_CHANGE = 1
.



IMPORTING Parameters details for CO_BC_RESB_PRE_READ

CLIENT -

Data type: SY-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRTYP_IMP - Transaction type 'A'=display, 'V'=change

Data type: TC10-TRTYP
Optional: No
Call by Reference: No ( called with pass by value option)

FLG_INSERT_ITAB -

Data type: SY-DATAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_APPL_PPSFC -

Data type: SY-DATAR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IMPORT_MESSAGE_ID -

Data type: INDX-SRTFD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NUMBER_OF_TASKS -

Data type: SY-DBCNT
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_NO_BANF -

Data type: RC27X-FLG_SEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_NO_AUTO_REFILL_ITAB -

Data type: RC27X-FLG_SEL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CO_BC_RESB_PRE_READ

RSNUM_PRE_TAB -

Data type: RSNUM_PRE
Optional: No
Call by Reference: No ( called with pass by value option)

AUTAB_TAB -

Data type: AUTAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

RELEASE_NO_CHANGE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CO_BC_RESB_PRE_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:
lv_client  TYPE SY-MANDT, "   SY-MANDT
lt_rsnum_pre_tab  TYPE STANDARD TABLE OF RSNUM_PRE, "   
lv_release_no_change  TYPE RSNUM_PRE, "   
lt_autab_tab  TYPE STANDARD TABLE OF AUTAB, "   
lv_trtyp_imp  TYPE TC10-TRTYP, "   
lv_flg_insert_itab  TYPE SY-DATAR, "   ' '
lv_flg_appl_ppsfc  TYPE SY-DATAR, "   ' '
lv_import_message_id  TYPE INDX-SRTFD, "   SPACE
lv_number_of_tasks  TYPE SY-DBCNT, "   1
lv_flg_no_banf  TYPE RC27X-FLG_SEL, "   
lv_flg_no_auto_refill_itab  TYPE RC27X-FLG_SEL. "   SPACE

  CALL FUNCTION 'CO_BC_RESB_PRE_READ'  "NOTRANSL: PRE_READ der Reservierungen mehrerer Aufträge
    EXPORTING
         CLIENT = lv_client
         TRTYP_IMP = lv_trtyp_imp
         FLG_INSERT_ITAB = lv_flg_insert_itab
         FLG_APPL_PPSFC = lv_flg_appl_ppsfc
         IMPORT_MESSAGE_ID = lv_import_message_id
         NUMBER_OF_TASKS = lv_number_of_tasks
         FLG_NO_BANF = lv_flg_no_banf
         FLG_NO_AUTO_REFILL_ITAB = lv_flg_no_auto_refill_itab
    TABLES
         RSNUM_PRE_TAB = lt_rsnum_pre_tab
         AUTAB_TAB = lt_autab_tab
    EXCEPTIONS
        RELEASE_NO_CHANGE = 1
. " CO_BC_RESB_PRE_READ




ABAP code using 7.40 inline data declarations to call FM CO_BC_RESB_PRE_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 MANDT FROM SY INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
 
 
"SELECT single TRTYP FROM TC10 INTO @DATA(ld_trtyp_imp).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_flg_insert_itab).
DATA(ld_flg_insert_itab) = ' '.
 
"SELECT single DATAR FROM SY INTO @DATA(ld_flg_appl_ppsfc).
DATA(ld_flg_appl_ppsfc) = ' '.
 
"SELECT single SRTFD FROM INDX INTO @DATA(ld_import_message_id).
DATA(ld_import_message_id) = ' '.
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_number_of_tasks).
DATA(ld_number_of_tasks) = 1.
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_banf).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_no_auto_refill_itab).
DATA(ld_flg_no_auto_refill_itab) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!