SAP DPSPP_MATERIAL_SEARCH Function Module for Dealer Portal Spare Parts: Material search









DPSPP_MATERIAL_SEARCH is a standard dpspp material search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dealer Portal Spare Parts: Material search 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 dpspp material search FM, simply by entering the name DPSPP_MATERIAL_SEARCH into the relevant SAP transaction such as SE37 or SE38.

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



Function DPSPP_MATERIAL_SEARCH 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 'DPSPP_MATERIAL_SEARCH'"Dealer Portal Spare Parts: Material search
EXPORTING
* IT_RG_MATNR = "Material number range
* IT_RG_MAKTX = "Material Short Text range
* IT_RG_MATNR_EXT = "Manuf. (External) Part number range
* IT_RG_MATKL = "Material Group range
* IT_RG_MTART = "Material Type range
* IV_RETURNABLE = ' ' "List only Returnable Materials
IT_RG_VKORG = "Sales organization
IT_RG_VTWEG = "Distribution channel
* IT_RG_WERKS = "Plant

IMPORTING
ET_MATERIAL_LIST = "Material list
ET_MARA = "General Material Data
.



IMPORTING Parameters details for DPSPP_MATERIAL_SEARCH

IT_RG_MATNR - Material number range

Data type: TDT_RG_MATNR
Optional: Yes
Call by Reference: Yes

IT_RG_MAKTX - Material Short Text range

Data type: WRF_MAKTX_RTTY
Optional: Yes
Call by Reference: Yes

IT_RG_MATNR_EXT - Manuf. (External) Part number range

Data type: DPSPPT_MATNR_EXT_TAB
Optional: Yes
Call by Reference: Yes

IT_RG_MATKL - Material Group range

Data type: MDS_MATKL_RANGE_TAB
Optional: Yes
Call by Reference: Yes

IT_RG_MTART - Material Type range

Data type: MD_RANGE_T_MTART
Optional: Yes
Call by Reference: Yes

IV_RETURNABLE - List only Returnable Materials

Data type: XFELD
Default: SPACE
Optional: No
Call by Reference: Yes

IT_RG_VKORG - Sales organization

Data type: TRG_CHAR4
Optional: No
Call by Reference: Yes

IT_RG_VTWEG - Distribution channel

Data type: TRG_CHAR2
Optional: No
Call by Reference: Yes

IT_RG_WERKS - Plant

Data type: SD_WERKS_RANGES
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for DPSPP_MATERIAL_SEARCH

ET_MATERIAL_LIST - Material list

Data type: /SAPDII/TBAPIMATLST
Optional: No
Call by Reference: Yes

ET_MARA - General Material Data

Data type: MARA_TT
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DPSPP_MATERIAL_SEARCH 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_it_rg_matnr  TYPE TDT_RG_MATNR, "   
lv_et_material_list  TYPE /SAPDII/TBAPIMATLST, "   
lv_et_mara  TYPE MARA_TT, "   
lv_it_rg_maktx  TYPE WRF_MAKTX_RTTY, "   
lv_it_rg_matnr_ext  TYPE DPSPPT_MATNR_EXT_TAB, "   
lv_it_rg_matkl  TYPE MDS_MATKL_RANGE_TAB, "   
lv_it_rg_mtart  TYPE MD_RANGE_T_MTART, "   
lv_iv_returnable  TYPE XFELD, "   SPACE
lv_it_rg_vkorg  TYPE TRG_CHAR4, "   
lv_it_rg_vtweg  TYPE TRG_CHAR2, "   
lv_it_rg_werks  TYPE SD_WERKS_RANGES. "   

  CALL FUNCTION 'DPSPP_MATERIAL_SEARCH'  "Dealer Portal Spare Parts: Material search
    EXPORTING
         IT_RG_MATNR = lv_it_rg_matnr
         IT_RG_MAKTX = lv_it_rg_maktx
         IT_RG_MATNR_EXT = lv_it_rg_matnr_ext
         IT_RG_MATKL = lv_it_rg_matkl
         IT_RG_MTART = lv_it_rg_mtart
         IV_RETURNABLE = lv_iv_returnable
         IT_RG_VKORG = lv_it_rg_vkorg
         IT_RG_VTWEG = lv_it_rg_vtweg
         IT_RG_WERKS = lv_it_rg_werks
    IMPORTING
         ET_MATERIAL_LIST = lv_et_material_list
         ET_MARA = lv_et_mara
. " DPSPP_MATERIAL_SEARCH




ABAP code using 7.40 inline data declarations to call FM DPSPP_MATERIAL_SEARCH

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.

 
 
 
 
 
 
 
DATA(ld_iv_returnable) = ' '.
 
 
 
 


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!