SAP DPSPP_LORD_SET_ITEMS Function Module for Dealer Portal Spare Parts: Set Items
DPSPP_LORD_SET_ITEMS is a standard dpspp lord set items 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: Set Items 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 lord set items FM, simply by entering the name DPSPP_LORD_SET_ITEMS 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_LORD_SET_ITEMS 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_LORD_SET_ITEMS'"Dealer Portal Spare Parts: Set Items.
EXPORTING
IT_ITEM_COMV = "Table Type for Structure TDS_ITEM_COMV
IT_ITEM_COMX = "Table Type for Structure TDS_ITEM_COMC
EXCEPTIONS
EXC_LORD_NOT_LOADED = 1 EXC_SET_OBJECT_SINGLE_ERROR = 2 EXC_GET_ITEM_MULTI_ERROR = 3 EXC_GET_ITEM_SINGLE_ERROR = 4 EXC_LORD_DELETE_ERROR = 5
IMPORTING Parameters details for DPSPP_LORD_SET_ITEMS
IT_ITEM_COMV - Table Type for Structure TDS_ITEM_COMV
Data type: TDT_ITEM_COMVOptional: No
Call by Reference: Yes
IT_ITEM_COMX - Table Type for Structure TDS_ITEM_COMC
Data type: TDT_ITEM_COMCOptional: No
Call by Reference: Yes
EXCEPTIONS details
EXC_LORD_NOT_LOADED - LORD not loaded
Data type:Optional: No
Call by Reference: Yes
EXC_SET_OBJECT_SINGLE_ERROR - LORD set object single error
Data type:Optional: No
Call by Reference: Yes
EXC_GET_ITEM_MULTI_ERROR - LORD get item multi error
Data type:Optional: No
Call by Reference: Yes
EXC_GET_ITEM_SINGLE_ERROR - LORD get item single error
Data type:Optional: No
Call by Reference: Yes
EXC_LORD_DELETE_ERROR - LORD delete item error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DPSPP_LORD_SET_ITEMS 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_item_comv | TYPE TDT_ITEM_COMV, " | |||
| lv_exc_lord_not_loaded | TYPE TDT_ITEM_COMV, " | |||
| lv_it_item_comx | TYPE TDT_ITEM_COMC, " | |||
| lv_exc_set_object_single_error | TYPE TDT_ITEM_COMC, " | |||
| lv_exc_get_item_multi_error | TYPE TDT_ITEM_COMC, " | |||
| lv_exc_get_item_single_error | TYPE TDT_ITEM_COMC, " | |||
| lv_exc_lord_delete_error | TYPE TDT_ITEM_COMC. " |
|   CALL FUNCTION 'DPSPP_LORD_SET_ITEMS' "Dealer Portal Spare Parts: Set Items |
| EXPORTING | ||
| IT_ITEM_COMV | = lv_it_item_comv | |
| IT_ITEM_COMX | = lv_it_item_comx | |
| EXCEPTIONS | ||
| EXC_LORD_NOT_LOADED = 1 | ||
| EXC_SET_OBJECT_SINGLE_ERROR = 2 | ||
| EXC_GET_ITEM_MULTI_ERROR = 3 | ||
| EXC_GET_ITEM_SINGLE_ERROR = 4 | ||
| EXC_LORD_DELETE_ERROR = 5 | ||
| . " DPSPP_LORD_SET_ITEMS | ||
ABAP code using 7.40 inline data declarations to call FM DPSPP_LORD_SET_ITEMS
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