SAP CO_RU_CHECK_RUECK_IN_AFRP0 Function Module for
CO_RU_CHECK_RUECK_IN_AFRP0 is a standard co ru check rueck in afrp0 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 co ru check rueck in afrp0 FM, simply by entering the name CO_RU_CHECK_RUECK_IN_AFRP0 into the relevant SAP transaction such as SE37 or SE38.
Function Group: CORU
Program Name: SAPLCORU
Main Program: SAPLCORU
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CO_RU_CHECK_RUECK_IN_AFRP0 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 'CO_RU_CHECK_RUECK_IN_AFRP0'".
EXPORTING
RUECK_IMP = "Confirmation
* KAPAR_IMP = ' ' "
* SPLIT_IMP = 0 "
* MEINH_IMP = ' ' "UoM of Operation
* UMREZ_IMP = 0 "
* UMREN_IMP = 0 "
* ISMNW_IMP = 0 "
* OFMNW_IMP = 0 "
* ARBEH_IMP = ' ' "
* ISDD_IMP = "
* FLG_WORK_IMP = ' ' "
IMPORTING
AUERU_EXP = "
LMNGA_EXP = "
RMNGA_EXP = "
XMNGA_EXP = "
ISMNW_EXP = "
OFMNW_EXP = "
ARBEH_EXP = "
ISDD_EXP = "
EXCEPTIONS
NO_ENTRY = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCORU_001 Order Confirmation: Deactivation of Functions
EXIT_SAPLCORU_S_001 QM: Create Notif. from Confirmation of Production Order
EXIT_SAPLCORU_S_100 Transfer Data from SAPLCORU_S to Customer-Defined Screen
EXIT_SAPLCORU_S_101 Return Data from Customer-Defined Screen to SAPLCORU_S
IMPORTING Parameters details for CO_RU_CHECK_RUECK_IN_AFRP0
RUECK_IMP - Confirmation
Data type: AFRUD-RUECKOptional: No
Call by Reference: Yes
KAPAR_IMP -
Data type: CORUF-KAPARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPLIT_IMP -
Data type: CORUF-SPLITOptional: Yes
Call by Reference: No ( called with pass by value option)
MEINH_IMP - UoM of Operation
Data type: AFVGD-MEINHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
UMREZ_IMP -
Data type: AFVGD-UMREZOptional: Yes
Call by Reference: No ( called with pass by value option)
UMREN_IMP -
Data type: AFVGD-UMRENOptional: Yes
Call by Reference: No ( called with pass by value option)
ISMNW_IMP -
Data type: AFVGD-ISMNWOptional: Yes
Call by Reference: No ( called with pass by value option)
OFMNW_IMP -
Data type: AFVGD-OFMNWOptional: Yes
Call by Reference: No ( called with pass by value option)
ARBEH_IMP -
Data type: AFVGD-ARBEHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ISDD_IMP -
Data type: AFVGD-ISDDOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_WORK_IMP -
Data type: RC27X-FLG_SELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CO_RU_CHECK_RUECK_IN_AFRP0
AUERU_EXP -
Data type: AFRUD-AUERUOptional: No
Call by Reference: Yes
LMNGA_EXP -
Data type: AFRUD-LMNGAOptional: No
Call by Reference: Yes
RMNGA_EXP -
Data type: AFRUD-RMNGAOptional: No
Call by Reference: Yes
XMNGA_EXP -
Data type: AFRUD-XMNGAOptional: No
Call by Reference: Yes
ISMNW_EXP -
Data type: AFVGD-ISMNWOptional: No
Call by Reference: No ( called with pass by value option)
OFMNW_EXP -
Data type: AFVGD-OFMNWOptional: No
Call by Reference: No ( called with pass by value option)
ARBEH_EXP -
Data type: AFVGD-ARBEHOptional: No
Call by Reference: No ( called with pass by value option)
ISDD_EXP -
Data type: AFVGD-ISDDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CO_RU_CHECK_RUECK_IN_AFRP0 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_no_entry | TYPE STRING, " | |||
| lv_aueru_exp | TYPE AFRUD-AUERU, " | |||
| lv_rueck_imp | TYPE AFRUD-RUECK, " | |||
| lv_kapar_imp | TYPE CORUF-KAPAR, " SPACE | |||
| lv_split_imp | TYPE CORUF-SPLIT, " 0 | |||
| lv_lmnga_exp | TYPE AFRUD-LMNGA, " | |||
| lv_meinh_imp | TYPE AFVGD-MEINH, " SPACE | |||
| lv_rmnga_exp | TYPE AFRUD-RMNGA, " | |||
| lv_umrez_imp | TYPE AFVGD-UMREZ, " 0 | |||
| lv_umren_imp | TYPE AFVGD-UMREN, " 0 | |||
| lv_xmnga_exp | TYPE AFRUD-XMNGA, " | |||
| lv_ismnw_exp | TYPE AFVGD-ISMNW, " | |||
| lv_ismnw_imp | TYPE AFVGD-ISMNW, " 0 | |||
| lv_ofmnw_exp | TYPE AFVGD-OFMNW, " | |||
| lv_ofmnw_imp | TYPE AFVGD-OFMNW, " 0 | |||
| lv_arbeh_exp | TYPE AFVGD-ARBEH, " | |||
| lv_arbeh_imp | TYPE AFVGD-ARBEH, " SPACE | |||
| lv_isdd_exp | TYPE AFVGD-ISDD, " | |||
| lv_isdd_imp | TYPE AFVGD-ISDD, " | |||
| lv_flg_work_imp | TYPE RC27X-FLG_SEL. " SPACE |
|   CALL FUNCTION 'CO_RU_CHECK_RUECK_IN_AFRP0' " |
| EXPORTING | ||
| RUECK_IMP | = lv_rueck_imp | |
| KAPAR_IMP | = lv_kapar_imp | |
| SPLIT_IMP | = lv_split_imp | |
| MEINH_IMP | = lv_meinh_imp | |
| UMREZ_IMP | = lv_umrez_imp | |
| UMREN_IMP | = lv_umren_imp | |
| ISMNW_IMP | = lv_ismnw_imp | |
| OFMNW_IMP | = lv_ofmnw_imp | |
| ARBEH_IMP | = lv_arbeh_imp | |
| ISDD_IMP | = lv_isdd_imp | |
| FLG_WORK_IMP | = lv_flg_work_imp | |
| IMPORTING | ||
| AUERU_EXP | = lv_aueru_exp | |
| LMNGA_EXP | = lv_lmnga_exp | |
| RMNGA_EXP | = lv_rmnga_exp | |
| XMNGA_EXP | = lv_xmnga_exp | |
| ISMNW_EXP | = lv_ismnw_exp | |
| OFMNW_EXP | = lv_ofmnw_exp | |
| ARBEH_EXP | = lv_arbeh_exp | |
| ISDD_EXP | = lv_isdd_exp | |
| EXCEPTIONS | ||
| NO_ENTRY = 1 | ||
| . " CO_RU_CHECK_RUECK_IN_AFRP0 | ||
ABAP code using 7.40 inline data declarations to call FM CO_RU_CHECK_RUECK_IN_AFRP0
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 AUERU FROM AFRUD INTO @DATA(ld_aueru_exp). | ||||
| "SELECT single RUECK FROM AFRUD INTO @DATA(ld_rueck_imp). | ||||
| "SELECT single KAPAR FROM CORUF INTO @DATA(ld_kapar_imp). | ||||
| DATA(ld_kapar_imp) | = ' '. | |||
| "SELECT single SPLIT FROM CORUF INTO @DATA(ld_split_imp). | ||||
| "SELECT single LMNGA FROM AFRUD INTO @DATA(ld_lmnga_exp). | ||||
| "SELECT single MEINH FROM AFVGD INTO @DATA(ld_meinh_imp). | ||||
| DATA(ld_meinh_imp) | = ' '. | |||
| "SELECT single RMNGA FROM AFRUD INTO @DATA(ld_rmnga_exp). | ||||
| "SELECT single UMREZ FROM AFVGD INTO @DATA(ld_umrez_imp). | ||||
| "SELECT single UMREN FROM AFVGD INTO @DATA(ld_umren_imp). | ||||
| "SELECT single XMNGA FROM AFRUD INTO @DATA(ld_xmnga_exp). | ||||
| "SELECT single ISMNW FROM AFVGD INTO @DATA(ld_ismnw_exp). | ||||
| "SELECT single ISMNW FROM AFVGD INTO @DATA(ld_ismnw_imp). | ||||
| "SELECT single OFMNW FROM AFVGD INTO @DATA(ld_ofmnw_exp). | ||||
| "SELECT single OFMNW FROM AFVGD INTO @DATA(ld_ofmnw_imp). | ||||
| "SELECT single ARBEH FROM AFVGD INTO @DATA(ld_arbeh_exp). | ||||
| "SELECT single ARBEH FROM AFVGD INTO @DATA(ld_arbeh_imp). | ||||
| DATA(ld_arbeh_imp) | = ' '. | |||
| "SELECT single ISDD FROM AFVGD INTO @DATA(ld_isdd_exp). | ||||
| "SELECT single ISDD FROM AFVGD INTO @DATA(ld_isdd_imp). | ||||
| "SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_flg_work_imp). | ||||
| DATA(ld_flg_work_imp) | = ' '. | |||
Search for further information about these or an SAP related objects