SAP SRS_LISTING_MATERIAL_GET Function Module for Assignment of EANs and Vendor Material Number for Listed Material
SRS_LISTING_MATERIAL_GET is a standard srs listing material get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assignment of EANs and Vendor Material Number for Listed Material 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 srs listing material get FM, simply by entering the name SRS_LISTING_MATERIAL_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: WOSE_ITEMS
Program Name: SAPLWOSE_ITEMS
Main Program: SAPLWOSE_ITEMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SRS_LISTING_MATERIAL_GET 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 'SRS_LISTING_MATERIAL_GET'"Assignment of EANs and Vendor Material Number for Listed Material.
EXPORTING
* PI_VEND_MAT = "Material Number Used by Vendor
* PI_EAN_UPC = "International Article Number (EAN/UPC)
* PI_VENDOR = "Account Number of Vendor or Creditor
* PI_PLANT = "Plant
* PI_SITE = "Customer Number for Plant
* PI_DATE = "Item delivery date
* PI_LISTING_CHECK = "Boolean Variable (X=true, -=false, space=unknown)
IMPORTING
PE_RETURN = "Return Parameter(s)
TABLES
MAT_LISTING = "Structure for Materials
IMPORTING Parameters details for SRS_LISTING_MATERIAL_GET
PI_VEND_MAT - Material Number Used by Vendor
Data type: IDNLFOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_EAN_UPC - International Article Number (EAN/UPC)
Data type: EAN11Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_VENDOR - Account Number of Vendor or Creditor
Data type: LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
PI_PLANT - Plant
Data type: WERKS_DOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_SITE - Customer Number for Plant
Data type: LOCNROptional: Yes
Call by Reference: No ( called with pass by value option)
PI_DATE - Item delivery date
Data type: EINDTOptional: Yes
Call by Reference: No ( called with pass by value option)
PI_LISTING_CHECK - Boolean Variable (X=true, -=false, space=unknown)
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SRS_LISTING_MATERIAL_GET
PE_RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SRS_LISTING_MATERIAL_GET
MAT_LISTING - Structure for Materials
Data type: WSRS_MAT_FIELDOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for SRS_LISTING_MATERIAL_GET 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_pe_return | TYPE BAPIRET2, " | |||
| lt_mat_listing | TYPE STANDARD TABLE OF WSRS_MAT_FIELD, " | |||
| lv_pi_vend_mat | TYPE IDNLF, " | |||
| lv_pi_ean_upc | TYPE EAN11, " | |||
| lv_pi_vendor | TYPE LIFNR, " | |||
| lv_pi_plant | TYPE WERKS_D, " | |||
| lv_pi_site | TYPE LOCNR, " | |||
| lv_pi_date | TYPE EINDT, " | |||
| lv_pi_listing_check | TYPE BOOLEAN. " |
|   CALL FUNCTION 'SRS_LISTING_MATERIAL_GET' "Assignment of EANs and Vendor Material Number for Listed Material |
| EXPORTING | ||
| PI_VEND_MAT | = lv_pi_vend_mat | |
| PI_EAN_UPC | = lv_pi_ean_upc | |
| PI_VENDOR | = lv_pi_vendor | |
| PI_PLANT | = lv_pi_plant | |
| PI_SITE | = lv_pi_site | |
| PI_DATE | = lv_pi_date | |
| PI_LISTING_CHECK | = lv_pi_listing_check | |
| IMPORTING | ||
| PE_RETURN | = lv_pe_return | |
| TABLES | ||
| MAT_LISTING | = lt_mat_listing | |
| . " SRS_LISTING_MATERIAL_GET | ||
ABAP code using 7.40 inline data declarations to call FM SRS_LISTING_MATERIAL_GET
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.Search for further information about these or an SAP related objects