SAP CY_KBED_COMMITMENT_GAP Function Module for NOTRANSL: Vorgänge hinter Lücke in Kapazitätsbelegung suchen









CY_KBED_COMMITMENT_GAP is a standard cy kbed commitment gap 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: Vorgänge hinter Lücke in Kapazitätsbelegung suchen 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 cy kbed commitment gap FM, simply by entering the name CY_KBED_COMMITMENT_GAP into the relevant SAP transaction such as SE37 or SE38.

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



Function CY_KBED_COMMITMENT_GAP 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 'CY_KBED_COMMITMENT_GAP'"NOTRANSL: Vorgänge hinter Lücke in Kapazitätsbelegung suchen
EXPORTING
* I_DATE = 00000000 "Date as of which search starts
* I_FLG_FORWARD = ' ' "Forwards
I_KAPID = "Committed capacity
* I_TIME = 0 "Time as of which search starts
* I_FLG_ONLY_NEXT = ' ' "
* I_TAB_KEY = ' ' "

TABLES
COMMITMENT_TAB = "

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for CY_KBED_COMMITMENT_GAP

I_DATE - Date as of which search starts

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

I_FLG_FORWARD - Forwards

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

I_KAPID - Committed capacity

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

I_TIME - Time as of which search starts

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

I_FLG_ONLY_NEXT -

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

I_TAB_KEY -

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

TABLES Parameters details for CY_KBED_COMMITMENT_GAP

COMMITMENT_TAB -

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

EXCEPTIONS details

NOT_FOUND -

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

Copy and paste ABAP code example for CY_KBED_COMMITMENT_GAP 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_i_date  TYPE SY-DATUM, "   00000000
lv_not_found  TYPE SY, "   
lt_commitment_tab  TYPE STANDARD TABLE OF CYKAPABEL, "   
lv_i_flg_forward  TYPE CYKAPABEL, "   SPACE
lv_i_kapid  TYPE KAKO-KAPID, "   
lv_i_time  TYPE KAPA-BEGZT, "   0
lv_i_flg_only_next  TYPE KAPA, "   SPACE
lv_i_tab_key  TYPE C. "   SPACE

  CALL FUNCTION 'CY_KBED_COMMITMENT_GAP'  "NOTRANSL: Vorgänge hinter Lücke in Kapazitätsbelegung suchen
    EXPORTING
         I_DATE = lv_i_date
         I_FLG_FORWARD = lv_i_flg_forward
         I_KAPID = lv_i_kapid
         I_TIME = lv_i_time
         I_FLG_ONLY_NEXT = lv_i_flg_only_next
         I_TAB_KEY = lv_i_tab_key
    TABLES
         COMMITMENT_TAB = lt_commitment_tab
    EXCEPTIONS
        NOT_FOUND = 1
. " CY_KBED_COMMITMENT_GAP




ABAP code using 7.40 inline data declarations to call FM CY_KBED_COMMITMENT_GAP

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 DATUM FROM SY INTO @DATA(ld_i_date).
DATA(ld_i_date) = 00000000.
 
 
 
DATA(ld_i_flg_forward) = ' '.
 
"SELECT single KAPID FROM KAKO INTO @DATA(ld_i_kapid).
 
"SELECT single BEGZT FROM KAPA INTO @DATA(ld_i_time).
 
DATA(ld_i_flg_only_next) = ' '.
 
DATA(ld_i_tab_key) = ' '.
 


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!