SAP UPD_DEBITREQUEST_FROM_RESULT Function Module for Debit Memo Request from Confirmation
UPD_DEBITREQUEST_FROM_RESULT is a standard upd debitrequest from result SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Debit Memo Request from Confirmation 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 upd debitrequest from result FM, simply by entering the name UPD_DEBITREQUEST_FROM_RESULT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EEWA_SD_RESULT
Program Name: SAPLEEWA_SD_RESULT
Main Program: SAPLEEWA_SD_RESULT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function UPD_DEBITREQUEST_FROM_RESULT 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 'UPD_DEBITREQUEST_FROM_RESULT'"Debit Memo Request from Confirmation.
EXPORTING
X_UPD_MODE = "Data: Processing status
* X_NO_MESSAGE = "Indicator
* X_NO_COMMIT = "Indicator
CHANGING
* XY_OBJ = "Operative Data Structure of Waste Disposal Order
* XY_ORDERLINE = "Object Data Type of the WASTE DISPOSAL ORDER Table
IMPORTING Parameters details for UPD_DEBITREQUEST_FROM_RESULT
X_UPD_MODE - Data: Processing status
Data type: REGEN-UPD_MODEOptional: No
Call by Reference: Yes
X_NO_MESSAGE - Indicator
Data type: REGEN-KENNZXOptional: Yes
Call by Reference: Yes
X_NO_COMMIT - Indicator
Data type: REGEN-KENNZXOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for UPD_DEBITREQUEST_FROM_RESULT
XY_OBJ - Operative Data Structure of Waste Disposal Order
Data type: ISUWA_ORDEROptional: Yes
Call by Reference: Yes
XY_ORDERLINE - Object Data Type of the WASTE DISPOSAL ORDER Table
Data type: ISUWA_ORDER_LINESOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for UPD_DEBITREQUEST_FROM_RESULT 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_xy_obj | TYPE ISUWA_ORDER, " | |||
| lv_x_upd_mode | TYPE REGEN-UPD_MODE, " | |||
| lv_xy_orderline | TYPE ISUWA_ORDER_LINES, " | |||
| lv_x_no_message | TYPE REGEN-KENNZX, " | |||
| lv_x_no_commit | TYPE REGEN-KENNZX. " |
|   CALL FUNCTION 'UPD_DEBITREQUEST_FROM_RESULT' "Debit Memo Request from Confirmation |
| EXPORTING | ||
| X_UPD_MODE | = lv_x_upd_mode | |
| X_NO_MESSAGE | = lv_x_no_message | |
| X_NO_COMMIT | = lv_x_no_commit | |
| CHANGING | ||
| XY_OBJ | = lv_xy_obj | |
| XY_ORDERLINE | = lv_xy_orderline | |
| . " UPD_DEBITREQUEST_FROM_RESULT | ||
ABAP code using 7.40 inline data declarations to call FM UPD_DEBITREQUEST_FROM_RESULT
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 UPD_MODE FROM REGEN INTO @DATA(ld_x_upd_mode). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_no_message). | ||||
| "SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_no_commit). | ||||
Search for further information about these or an SAP related objects