SAP SPC_MATNR_TAB_FROM_SELSCR_FILL Function Module for NOTRANSL: Materialtabelle entsprechend dem Selektionsbild zur VKP-Kalk. au
SPC_MATNR_TAB_FROM_SELSCR_FILL is a standard spc matnr tab from selscr fill 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: Materialtabelle entsprechend dem Selektionsbild zur VKP-Kalk. au 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 spc matnr tab from selscr fill FM, simply by entering the name SPC_MATNR_TAB_FROM_SELSCR_FILL into the relevant SAP transaction such as SE37 or SE38.
Function Group: WVK1
Program Name: SAPLWVK1
Main Program: SAPLWVK1
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SPC_MATNR_TAB_FROM_SELSCR_FILL 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 'SPC_MATNR_TAB_FROM_SELSCR_FILL'"NOTRANSL: Materialtabelle entsprechend dem Selektionsbild zur VKP-Kalk. au.
EXPORTING
PI_I_SPC = "
* PI_NOART = ' ' "
* PI_NREAD = ' ' "
* PI_BOOL_ALL_VARIANTS = ' ' "
TABLES
* SO_MATNR = "Range table for the material number
* SO_MATKL = "Range Table for Material Groups
* PE_T_ARTI = "
* PE_T_PRE03 = "
EXCEPTIONS
NO_MATERIALS_SELECTED = 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_SAPLWVK1_001 Extend Communication Structure KOMK for Pricing
EXIT_SAPLWVK1_002 Extend Communication Structure KOMP for Pricing
EXIT_SAPLWVK1_003 Customer-Specific Check of a Pricing Item
IMPORTING Parameters details for SPC_MATNR_TAB_FROM_SELSCR_FILL
PI_I_SPC -
Data type: PISPCOptional: No
Call by Reference: No ( called with pass by value option)
PI_NOART -
Data type: SY-MARKYDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_NREAD -
Data type: SY-MARKYDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_BOOL_ALL_VARIANTS -
Data type: SY-MARKYDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SPC_MATNR_TAB_FROM_SELSCR_FILL
SO_MATNR - Range table for the material number
Data type: MATNR_RANOptional: Yes
Call by Reference: Yes
SO_MATKL - Range Table for Material Groups
Data type: MATKL_RANOptional: Yes
Call by Reference: Yes
PE_T_ARTI -
Data type: ARTIOptional: Yes
Call by Reference: No ( called with pass by value option)
PE_T_PRE03 -
Data type: PRE03Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MATERIALS_SELECTED - No materials could be selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SPC_MATNR_TAB_FROM_SELSCR_FILL 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_pi_i_spc | TYPE PISPC, " | |||
| lt_so_matnr | TYPE STANDARD TABLE OF MATNR_RAN, " | |||
| lv_no_materials_selected | TYPE MATNR_RAN, " | |||
| lv_pi_noart | TYPE SY-MARKY, " ' ' | |||
| lt_so_matkl | TYPE STANDARD TABLE OF MATKL_RAN, " | |||
| lv_pi_nread | TYPE SY-MARKY, " ' ' | |||
| lt_pe_t_arti | TYPE STANDARD TABLE OF ARTI, " | |||
| lt_pe_t_pre03 | TYPE STANDARD TABLE OF PRE03, " | |||
| lv_pi_bool_all_variants | TYPE SY-MARKY. " ' ' |
|   CALL FUNCTION 'SPC_MATNR_TAB_FROM_SELSCR_FILL' "NOTRANSL: Materialtabelle entsprechend dem Selektionsbild zur VKP-Kalk. au |
| EXPORTING | ||
| PI_I_SPC | = lv_pi_i_spc | |
| PI_NOART | = lv_pi_noart | |
| PI_NREAD | = lv_pi_nread | |
| PI_BOOL_ALL_VARIANTS | = lv_pi_bool_all_variants | |
| TABLES | ||
| SO_MATNR | = lt_so_matnr | |
| SO_MATKL | = lt_so_matkl | |
| PE_T_ARTI | = lt_pe_t_arti | |
| PE_T_PRE03 | = lt_pe_t_pre03 | |
| EXCEPTIONS | ||
| NO_MATERIALS_SELECTED = 1 | ||
| . " SPC_MATNR_TAB_FROM_SELSCR_FILL | ||
ABAP code using 7.40 inline data declarations to call FM SPC_MATNR_TAB_FROM_SELSCR_FILL
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 MARKY FROM SY INTO @DATA(ld_pi_noart). | ||||
| DATA(ld_pi_noart) | = ' '. | |||
| "SELECT single MARKY FROM SY INTO @DATA(ld_pi_nread). | ||||
| DATA(ld_pi_nread) | = ' '. | |||
| "SELECT single MARKY FROM SY INTO @DATA(ld_pi_bool_all_variants). | ||||
| DATA(ld_pi_bool_all_variants) | = ' '. | |||
Search for further information about these or an SAP related objects