SAP SRC_CONTRACT_KEY_SELECTION Function Module for NOTRANSL: Ermitteln von Kontraktpositions-Schlüsseln zu gegebener Range-Ta









SRC_CONTRACT_KEY_SELECTION is a standard src contract key selection 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: Ermitteln von Kontraktpositions-Schlüsseln zu gegebener Range-Ta 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 src contract key selection FM, simply by entering the name SRC_CONTRACT_KEY_SELECTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: CSRS
Program Name: SAPLCSRS
Main Program: SAPLCSRS
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SRC_CONTRACT_KEY_SELECTION 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 'SRC_CONTRACT_KEY_SELECTION'"NOTRANSL: Ermitteln von Kontraktpositions-Schlüsseln zu gegebener Range-Ta
EXPORTING
IN_WPLNT_CHBOX = "
* IN_MATSEL_CHBOX = ' ' "

TABLES
IN_VEN_RANGE = "
IN_WERKS_RANGE = "
OUT_CONTRACT_LIST = "
* OUT_CONTRACT_ALL = "
* IN_MATWRK_KEY = "Help Structure for Mass Access to Material
* IN_MAT_MA_RANGE = "Range for Material Number (MATNR)
* IN_WERKS_MA_RANGE = "Range for Plant Number (WERKS)
* IN_MTART_RANGE = "
* IN_MMSTA_RANGE = "
* IN_DISPO_RANGE = "
* IN_DISMM_RANGE = "
IN_VEN_D_RANGE = "
* IN_ABCKZ_RANGE = "
IN_MAT_RANGE = "
IN_MAT_D_RANGE = "
IN_RESWK_RANGE = "
IN_RESWK_D_RANGE = "
IN_EBELN_RANGE = "
IN_BSART_RANGE = "
IN_PSTYP_RANGE = "

EXCEPTIONS
NO_SELECTIONS = 1
.




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_SAPLCSRS_001 Customer Exit for Selecting Customer-Specific Contract Data
EXIT_SAPLCSRS_002 Customer Exit for Selecting Customer-Specific Scheduling Agreement Data
EXIT_SAPLCSRS_003 Customer Exit for Selecting Customer-Specific Info Record Data
EXIT_SAPLCSRS_004 Customer Exit: Customer-Specific Selection of Vendor/Plant Location

IMPORTING Parameters details for SRC_CONTRACT_KEY_SELECTION

IN_WPLNT_CHBOX -

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

IN_MATSEL_CHBOX -

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

TABLES Parameters details for SRC_CONTRACT_KEY_SELECTION

IN_VEN_RANGE -

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

IN_WERKS_RANGE -

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

OUT_CONTRACT_LIST -

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

OUT_CONTRACT_ALL -

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

IN_MATWRK_KEY - Help Structure for Mass Access to Material

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

IN_MAT_MA_RANGE - Range for Material Number (MATNR)

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

IN_WERKS_MA_RANGE - Range for Plant Number (WERKS)

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

IN_MTART_RANGE -

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

IN_MMSTA_RANGE -

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

IN_DISPO_RANGE -

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

IN_DISMM_RANGE -

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

IN_VEN_D_RANGE -

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

IN_ABCKZ_RANGE -

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

IN_MAT_RANGE -

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

IN_MAT_D_RANGE -

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

IN_RESWK_RANGE -

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

IN_RESWK_D_RANGE -

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

IN_EBELN_RANGE -

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

IN_BSART_RANGE -

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

IN_PSTYP_RANGE -

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

EXCEPTIONS details

NO_SELECTIONS -

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

Copy and paste ABAP code example for SRC_CONTRACT_KEY_SELECTION 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_in_ven_range  TYPE STANDARD TABLE OF LIF_RANGE, "   
lv_no_selections  TYPE LIF_RANGE, "   
lv_in_wplnt_chbox  TYPE LIF_RANGE, "   
lt_in_werks_range  TYPE STANDARD TABLE OF WRK_RANGE, "   
lt_out_contract_list  TYPE STANDARD TABLE OF BEST_KEY, "   
lt_out_contract_all  TYPE STANDARD TABLE OF CIFSRCOA, "   
lt_in_matwrk_key  TYPE STANDARD TABLE OF PRE01, "   
lt_in_mat_ma_range  TYPE STANDARD TABLE OF MAT_RANGE, "   
lt_in_werks_ma_range  TYPE STANDARD TABLE OF WRK_RANGE, "   
lt_in_mtart_range  TYPE STANDARD TABLE OF MART_RANGE, "   
lt_in_mmsta_range  TYPE STANDARD TABLE OF MSTA_RANGE, "   
lt_in_dispo_range  TYPE STANDARD TABLE OF DISP_RANGE, "   
lt_in_dismm_range  TYPE STANDARD TABLE OF DISM_RANGE, "   
lt_in_ven_d_range  TYPE STANDARD TABLE OF LIF_RANGE, "   
lv_in_matsel_chbox  TYPE SEL_FIELDS-READ_FLAG, "   ' '
lt_in_abckz_range  TYPE STANDARD TABLE OF ABC_RANGE, "   
lt_in_mat_range  TYPE STANDARD TABLE OF MAT_RANGE, "   
lt_in_mat_d_range  TYPE STANDARD TABLE OF MAT_RANGE, "   
lt_in_reswk_range  TYPE STANDARD TABLE OF WRK_RANGE, "   
lt_in_reswk_d_range  TYPE STANDARD TABLE OF WRK_RANGE, "   
lt_in_ebeln_range  TYPE STANDARD TABLE OF EBEL_RANGE, "   
lt_in_bsart_range  TYPE STANDARD TABLE OF BSAR_RANGE, "   
lt_in_pstyp_range  TYPE STANDARD TABLE OF PSTY_RANGE. "   

  CALL FUNCTION 'SRC_CONTRACT_KEY_SELECTION'  "NOTRANSL: Ermitteln von Kontraktpositions-Schlüsseln zu gegebener Range-Ta
    EXPORTING
         IN_WPLNT_CHBOX = lv_in_wplnt_chbox
         IN_MATSEL_CHBOX = lv_in_matsel_chbox
    TABLES
         IN_VEN_RANGE = lt_in_ven_range
         IN_WERKS_RANGE = lt_in_werks_range
         OUT_CONTRACT_LIST = lt_out_contract_list
         OUT_CONTRACT_ALL = lt_out_contract_all
         IN_MATWRK_KEY = lt_in_matwrk_key
         IN_MAT_MA_RANGE = lt_in_mat_ma_range
         IN_WERKS_MA_RANGE = lt_in_werks_ma_range
         IN_MTART_RANGE = lt_in_mtart_range
         IN_MMSTA_RANGE = lt_in_mmsta_range
         IN_DISPO_RANGE = lt_in_dispo_range
         IN_DISMM_RANGE = lt_in_dismm_range
         IN_VEN_D_RANGE = lt_in_ven_d_range
         IN_ABCKZ_RANGE = lt_in_abckz_range
         IN_MAT_RANGE = lt_in_mat_range
         IN_MAT_D_RANGE = lt_in_mat_d_range
         IN_RESWK_RANGE = lt_in_reswk_range
         IN_RESWK_D_RANGE = lt_in_reswk_d_range
         IN_EBELN_RANGE = lt_in_ebeln_range
         IN_BSART_RANGE = lt_in_bsart_range
         IN_PSTYP_RANGE = lt_in_pstyp_range
    EXCEPTIONS
        NO_SELECTIONS = 1
. " SRC_CONTRACT_KEY_SELECTION




ABAP code using 7.40 inline data declarations to call FM SRC_CONTRACT_KEY_SELECTION

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 READ_FLAG FROM SEL_FIELDS INTO @DATA(ld_in_matsel_chbox).
DATA(ld_in_matsel_chbox) = ' '.
 
 
 
 
 
 
 
 
 


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!