SAP SD_REPAIR_ORDER_CONFIRMATION Function Module for NOTRANSL: Ändern eines SD-Reparaturauftrages vom WE/Prüflos/SM-Auftrag
SD_REPAIR_ORDER_CONFIRMATION is a standard sd repair order confirmation 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: Ändern eines SD-Reparaturauftrages vom WE/Prüflos/SM-Auftrag 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 repair order confirmation FM, simply by entering the name SD_REPAIR_ORDER_CONFIRMATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: V45M
Program Name: SAPLV45M
Main Program: SAPLV45M
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_REPAIR_ORDER_CONFIRMATION 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_REPAIR_ORDER_CONFIRMATION'"NOTRANSL: Ändern eines SD-Reparaturauftrages vom WE/Prüflos/SM-Auftrag.
EXPORTING
* I_SAVE = ' ' "
* I_START_OF_REPAIR = ' ' "
* I_I_LOT_STATUS_ONLY = ' ' "
* I_GOODS_RECEIPT = ' ' "
* I_INSPECTION_LOT = ' ' "
* I_SERVICE_ORDER = ' ' "
* I_READ = ' ' "
I_ORDER = "Customer repair order
I_ITEM = "Main Item
* I_GOODS_RECEIPT_ILOT = ' ' "
* I_NOTIFICATION = ' ' "Message
TABLES
* I_REPAKOM = "
EXCEPTIONS
INCORRECT_CALL = 1 NO_PROPOSAL = 2
IMPORTING Parameters details for SD_REPAIR_ORDER_CONFIRMATION
I_SAVE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_START_OF_REPAIR -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_I_LOT_STATUS_ONLY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GOODS_RECEIPT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INSPECTION_LOT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SERVICE_ORDER -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_READ -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ORDER - Customer repair order
Data type: VBAP-VBELVOptional: No
Call by Reference: No ( called with pass by value option)
I_ITEM - Main Item
Data type: VBAP-POSNVOptional: No
Call by Reference: No ( called with pass by value option)
I_GOODS_RECEIPT_ILOT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NOTIFICATION - Message
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_REPAIR_ORDER_CONFIRMATION
I_REPAKOM -
Data type: V46R_REPAKOMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INCORRECT_CALL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PROPOSAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_REPAIR_ORDER_CONFIRMATION 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_i_save | TYPE STRING, " SPACE | |||
| lt_i_repakom | TYPE STANDARD TABLE OF V46R_REPAKOM, " | |||
| lv_incorrect_call | TYPE V46R_REPAKOM, " | |||
| lv_i_start_of_repair | TYPE V46R_REPAKOM, " SPACE | |||
| lv_i_i_lot_status_only | TYPE V46R_REPAKOM, " SPACE | |||
| lv_no_proposal | TYPE V46R_REPAKOM, " | |||
| lv_i_goods_receipt | TYPE V46R_REPAKOM, " SPACE | |||
| lv_i_inspection_lot | TYPE V46R_REPAKOM, " SPACE | |||
| lv_i_service_order | TYPE V46R_REPAKOM, " SPACE | |||
| lv_i_read | TYPE V46R_REPAKOM, " SPACE | |||
| lv_i_order | TYPE VBAP-VBELV, " | |||
| lv_i_item | TYPE VBAP-POSNV, " | |||
| lv_i_goods_receipt_ilot | TYPE VBAP, " SPACE | |||
| lv_i_notification | TYPE VBAP. " SPACE |
|   CALL FUNCTION 'SD_REPAIR_ORDER_CONFIRMATION' "NOTRANSL: Ändern eines SD-Reparaturauftrages vom WE/Prüflos/SM-Auftrag |
| EXPORTING | ||
| I_SAVE | = lv_i_save | |
| I_START_OF_REPAIR | = lv_i_start_of_repair | |
| I_I_LOT_STATUS_ONLY | = lv_i_i_lot_status_only | |
| I_GOODS_RECEIPT | = lv_i_goods_receipt | |
| I_INSPECTION_LOT | = lv_i_inspection_lot | |
| I_SERVICE_ORDER | = lv_i_service_order | |
| I_READ | = lv_i_read | |
| I_ORDER | = lv_i_order | |
| I_ITEM | = lv_i_item | |
| I_GOODS_RECEIPT_ILOT | = lv_i_goods_receipt_ilot | |
| I_NOTIFICATION | = lv_i_notification | |
| TABLES | ||
| I_REPAKOM | = lt_i_repakom | |
| EXCEPTIONS | ||
| INCORRECT_CALL = 1 | ||
| NO_PROPOSAL = 2 | ||
| . " SD_REPAIR_ORDER_CONFIRMATION | ||
ABAP code using 7.40 inline data declarations to call FM SD_REPAIR_ORDER_CONFIRMATION
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_i_save) | = ' '. | |||
| DATA(ld_i_start_of_repair) | = ' '. | |||
| DATA(ld_i_i_lot_status_only) | = ' '. | |||
| DATA(ld_i_goods_receipt) | = ' '. | |||
| DATA(ld_i_inspection_lot) | = ' '. | |||
| DATA(ld_i_service_order) | = ' '. | |||
| DATA(ld_i_read) | = ' '. | |||
| "SELECT single VBELV FROM VBAP INTO @DATA(ld_i_order). | ||||
| "SELECT single POSNV FROM VBAP INTO @DATA(ld_i_item). | ||||
| DATA(ld_i_goods_receipt_ilot) | = ' '. | |||
| DATA(ld_i_notification) | = ' '. | |||
Search for further information about these or an SAP related objects