SAP SD_DP_ORDER_ITEMS_BUILD Function Module for NOTRANSL: Konditionsbasierte Anzahlung: Aufbau der Auftragspositionstabel
SD_DP_ORDER_ITEMS_BUILD is a standard sd dp order items build 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: Konditionsbasierte Anzahlung: Aufbau der Auftragspositionstabel 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 sd dp order items build FM, simply by entering the name SD_DP_ORDER_ITEMS_BUILD into the relevant SAP transaction such as SE37 or SE38.
Function Group: V60C
Program Name: SAPLV60C
Main Program: SAPLV60C
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_DP_ORDER_ITEMS_BUILD 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 'SD_DP_ORDER_ITEMS_BUILD'"NOTRANSL: Konditionsbasierte Anzahlung: Aufbau der Auftragspositionstabel.
EXPORTING
IV_DOC_NUMBER = "Sales Document
* IV_BILL_DOC_THIS = "Billing Documents
* IV_NO_DISTRIBUTION = "Checkbox
IMPORTING
ET_ORDER_ITEM = "Condition-Based Downpayments: Table SDDP_ORDER_ITEM
ET_BSEG_PROV = "Condition-Based Downpayments: Table SDDP_BSEG_PROV
EV_DOWN_PAY_REQ_NOW = "Condition Value
ES_RETURN = "Return Parameter(s)
IMPORTING Parameters details for SD_DP_ORDER_ITEMS_BUILD
IV_DOC_NUMBER - Sales Document
Data type: VBAK-VBELNOptional: No
Call by Reference: Yes
IV_BILL_DOC_THIS - Billing Documents
Data type: VBRK-VBELNOptional: Yes
Call by Reference: Yes
IV_NO_DISTRIBUTION - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SD_DP_ORDER_ITEMS_BUILD
ET_ORDER_ITEM - Condition-Based Downpayments: Table SDDP_ORDER_ITEM
Data type: SDDP_ORDER_ITEM_TOptional: No
Call by Reference: Yes
ET_BSEG_PROV - Condition-Based Downpayments: Table SDDP_BSEG_PROV
Data type: SDDP_BSEG_PROV_TOptional: No
Call by Reference: Yes
EV_DOWN_PAY_REQ_NOW - Condition Value
Data type: SDDP_ORDER_ITEM-DOWN_PAY_REQOptional: No
Call by Reference: Yes
ES_RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SD_DP_ORDER_ITEMS_BUILD 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_et_order_item | TYPE SDDP_ORDER_ITEM_T, " | |||
| lv_iv_doc_number | TYPE VBAK-VBELN, " | |||
| lv_et_bseg_prov | TYPE SDDP_BSEG_PROV_T, " | |||
| lv_iv_bill_doc_this | TYPE VBRK-VBELN, " | |||
| lv_iv_no_distribution | TYPE XFELD, " | |||
| lv_ev_down_pay_req_now | TYPE SDDP_ORDER_ITEM-DOWN_PAY_REQ, " | |||
| lv_es_return | TYPE BAPIRET2. " |
|   CALL FUNCTION 'SD_DP_ORDER_ITEMS_BUILD' "NOTRANSL: Konditionsbasierte Anzahlung: Aufbau der Auftragspositionstabel |
| EXPORTING | ||
| IV_DOC_NUMBER | = lv_iv_doc_number | |
| IV_BILL_DOC_THIS | = lv_iv_bill_doc_this | |
| IV_NO_DISTRIBUTION | = lv_iv_no_distribution | |
| IMPORTING | ||
| ET_ORDER_ITEM | = lv_et_order_item | |
| ET_BSEG_PROV | = lv_et_bseg_prov | |
| EV_DOWN_PAY_REQ_NOW | = lv_ev_down_pay_req_now | |
| ES_RETURN | = lv_es_return | |
| . " SD_DP_ORDER_ITEMS_BUILD | ||
ABAP code using 7.40 inline data declarations to call FM SD_DP_ORDER_ITEMS_BUILD
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 VBELN FROM VBAK INTO @DATA(ld_iv_doc_number). | ||||
| "SELECT single VBELN FROM VBRK INTO @DATA(ld_iv_bill_doc_this). | ||||
| "SELECT single DOWN_PAY_REQ FROM SDDP_ORDER_ITEM INTO @DATA(ld_ev_down_pay_req_now). | ||||
Search for further information about these or an SAP related objects