SAP DPE_CREATE_CONTRACT Function Module for Create contract
DPE_CREATE_CONTRACT is a standard dpe create contract SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create contract 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 dpe create contract FM, simply by entering the name DPE_CREATE_CONTRACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_DPE_INTEGRATION
Program Name: SAPLBBP_DPE_INTEGRATION
Main Program: SAPLBBP_DPE_INTEGRATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DPE_CREATE_CONTRACT 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 'DPE_CREATE_CONTRACT'"Create contract.
EXPORTING
IS_HEADER = "Interface to header related data
* IV_INDICATOR = "DPE INDICATOR
TABLES
IT_ITEMS = "Contract items
IT_PARTNER = "Business partner
* IT_LONGTEXT = "lang text of procurement document
IT_ORGDATA = "org data
* IT_CONDITION = "condition of contract
IT_ATTACH = "Attachment structure PO
ET_CTR = "PO content
ET_MESSAGE = "Return message
IMPORTING Parameters details for DPE_CREATE_CONTRACT
IS_HEADER - Interface to header related data
Data type: DPE_HEADER_CTROptional: No
Call by Reference: No ( called with pass by value option)
IV_INDICATOR - DPE INDICATOR
Data type: DPE_INDICATOROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DPE_CREATE_CONTRACT
IT_ITEMS - Contract items
Data type: DPE_ITEMS_CTROptional: No
Call by Reference: Yes
IT_PARTNER - Business partner
Data type: DPE_PARTNER_POOptional: No
Call by Reference: Yes
IT_LONGTEXT - lang text of procurement document
Data type: DPE_TEXT_POOptional: Yes
Call by Reference: Yes
IT_ORGDATA - org data
Data type: DPE_ORGDATA_POOptional: No
Call by Reference: Yes
IT_CONDITION - condition of contract
Data type: DPE_CONDITION_CTROptional: Yes
Call by Reference: Yes
IT_ATTACH - Attachment structure PO
Data type: DPE_ATTACH_POOptional: No
Call by Reference: Yes
ET_CTR - PO content
Data type: DPE_CTROptional: No
Call by Reference: Yes
ET_MESSAGE - Return message
Data type: DPE_MESSAGEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for DPE_CREATE_CONTRACT 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: | ||||
| lt_it_items | TYPE STANDARD TABLE OF DPE_ITEMS_CTR, " | |||
| lv_is_header | TYPE DPE_HEADER_CTR, " | |||
| lt_it_partner | TYPE STANDARD TABLE OF DPE_PARTNER_PO, " | |||
| lv_iv_indicator | TYPE DPE_INDICATOR, " | |||
| lt_it_longtext | TYPE STANDARD TABLE OF DPE_TEXT_PO, " | |||
| lt_it_orgdata | TYPE STANDARD TABLE OF DPE_ORGDATA_PO, " | |||
| lt_it_condition | TYPE STANDARD TABLE OF DPE_CONDITION_CTR, " | |||
| lt_it_attach | TYPE STANDARD TABLE OF DPE_ATTACH_PO, " | |||
| lt_et_ctr | TYPE STANDARD TABLE OF DPE_CTR, " | |||
| lt_et_message | TYPE STANDARD TABLE OF DPE_MESSAGE. " |
|   CALL FUNCTION 'DPE_CREATE_CONTRACT' "Create contract |
| EXPORTING | ||
| IS_HEADER | = lv_is_header | |
| IV_INDICATOR | = lv_iv_indicator | |
| TABLES | ||
| IT_ITEMS | = lt_it_items | |
| IT_PARTNER | = lt_it_partner | |
| IT_LONGTEXT | = lt_it_longtext | |
| IT_ORGDATA | = lt_it_orgdata | |
| IT_CONDITION | = lt_it_condition | |
| IT_ATTACH | = lt_it_attach | |
| ET_CTR | = lt_et_ctr | |
| ET_MESSAGE | = lt_et_message | |
| . " DPE_CREATE_CONTRACT | ||
ABAP code using 7.40 inline data declarations to call FM DPE_CREATE_CONTRACT
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