SAP CBP_DNL_ROUGHCUT_PROFILE_READ Function Module for Read rough-cut planning profile to the given range tables









CBP_DNL_ROUGHCUT_PROFILE_READ is a standard cbp dnl roughcut profile 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 Read rough-cut planning profile to the given range tables 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 cbp dnl roughcut profile read FM, simply by entering the name CBP_DNL_ROUGHCUT_PROFILE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function CBP_DNL_ROUGHCUT_PROFILE_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 'CBP_DNL_ROUGHCUT_PROFILE_READ'"Read rough-cut planning profile to the given range tables
EXPORTING
DATE_FR = "
DATE_TO = "
* LOT_FR = "
* LOT_TO = "
* MESTYP = "
* LOGSYS = "

TABLES
* MATNR_RC = "
* WERKS_RC = "
ROUGHCUT_DATA = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCBP_DNL_001 User exit for creation of IDoc CBPRCP01

IMPORTING Parameters details for CBP_DNL_ROUGHCUT_PROFILE_READ

DATE_FR -

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

DATE_TO -

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

LOT_FR -

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

LOT_TO -

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

MESTYP -

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

LOGSYS -

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

TABLES Parameters details for CBP_DNL_ROUGHCUT_PROFILE_READ

MATNR_RC -

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

WERKS_RC -

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

ROUGHCUT_DATA -

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

Copy and paste ABAP code example for CBP_DNL_ROUGHCUT_PROFILE_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_date_fr  TYPE PLKO-DATUV, "   
lt_matnr_rc  TYPE STANDARD TABLE OF CLOIMATNR, "   
lv_date_to  TYPE PLKO-DATUV, "   
lt_werks_rc  TYPE STANDARD TABLE OF CLOIWERKS, "   
lv_lot_fr  TYPE PLKO-LOSVN, "   
lt_roughcut_data  TYPE STANDARD TABLE OF CBP_PLOB_TAB, "   
lv_lot_to  TYPE PLKO-LOSBS, "   
lv_mestyp  TYPE TBDME-MESTYP, "   
lv_logsys  TYPE TBDLST-LOGSYS. "   

  CALL FUNCTION 'CBP_DNL_ROUGHCUT_PROFILE_READ'  "Read rough-cut planning profile to the given range tables
    EXPORTING
         DATE_FR = lv_date_fr
         DATE_TO = lv_date_to
         LOT_FR = lv_lot_fr
         LOT_TO = lv_lot_to
         MESTYP = lv_mestyp
         LOGSYS = lv_logsys
    TABLES
         MATNR_RC = lt_matnr_rc
         WERKS_RC = lt_werks_rc
         ROUGHCUT_DATA = lt_roughcut_data
. " CBP_DNL_ROUGHCUT_PROFILE_READ




ABAP code using 7.40 inline data declarations to call FM CBP_DNL_ROUGHCUT_PROFILE_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 DATUV FROM PLKO INTO @DATA(ld_date_fr).
 
 
"SELECT single DATUV FROM PLKO INTO @DATA(ld_date_to).
 
 
"SELECT single LOSVN FROM PLKO INTO @DATA(ld_lot_fr).
 
 
"SELECT single LOSBS FROM PLKO INTO @DATA(ld_lot_to).
 
"SELECT single MESTYP FROM TBDME INTO @DATA(ld_mestyp).
 
"SELECT single LOGSYS FROM TBDLST INTO @DATA(ld_logsys).
 


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!