SAP Function Modules

CO_RU_CONFIRMATION_CHECK SAP Function module







CO_RU_CONFIRMATION_CHECK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CO_RU_CONFIRMATION_CHECK into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CORF
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CO_RU_CONFIRMATION_CHECK - CO RU CONFIRMATION CHECK





CALL FUNCTION 'CO_RU_CONFIRMATION_CHECK' "
  EXPORTING
    afrud_in =                  " afrud         Confirmation data
    aktyp_in =                  " aktyp         Activity category
    caufvd_in =                 " caufvd        Order header data
*   no_dialog_flag = SPACE      " xfeld         Indicator: Process Without Dialog
*   flg_linecheck_in = SPACE    " xfeld         Checkbox
*   i_oper_simul = SPACE        " xfeld
*   i_changed_conf =            " conf_quan
*   i_collect_msg = SPACE       " xfeld
  IMPORTING
    afrud_exp =                 " afrud         Confirmation data
    interrupt_flag =            " xfeld         Indicator: check was interrupted
* TABLES
*   namtab =                    " fnamtab
*   namtab =                    " fnamtab       Name of screen fields to be checked
*   mesg =                      " mesg          Message Collector
  EXCEPTIONS
    CONF_DATA_FALSE = 1         "               Completion confirmation data is incorrect
    CONF_DATE_IN_FUTURE = 2     "               Actual dates in future (only when calling up with HR)
    CONVERSION_ERROR = 3        "               Error when converting alternative units of measure
    INTERRUPT_BY_USER = 4       "               Abnormal termination of process after a message
    ORDER_ALREADY_LOCKED = 5    "               RS Header Blocked
    TABLE_ENTRY_NOT_FOUND = 6   "               Table entry not found
    WORK_CENTER_NOT_FOUND = 7   "               Work center not found
    .  "  CO_RU_CONFIRMATION_CHECK

ABAP code example for Function Module CO_RU_CONFIRMATION_CHECK





The ABAP code below is a full code listing to execute function module CO_RU_CONFIRMATION_CHECK including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_afrud_exp  TYPE AFRUD ,
ld_interrupt_flag  TYPE XFELD ,
it_namtab  TYPE STANDARD TABLE OF FNAMTAB,"TABLES PARAM
wa_namtab  LIKE LINE OF it_namtab ,
it_namtab  TYPE STANDARD TABLE OF FNAMTAB,"TABLES PARAM
wa_namtab  LIKE LINE OF it_namtab ,
it_mesg  TYPE STANDARD TABLE OF MESG,"TABLES PARAM
wa_mesg  LIKE LINE OF it_mesg .

DATA(ld_afrud_in) = 'Check type of data required'.
DATA(ld_aktyp_in) = 'Check type of data required'.
DATA(ld_caufvd_in) = 'Check type of data required'.
DATA(ld_no_dialog_flag) = 'Check type of data required'.
DATA(ld_flg_linecheck_in) = 'Check type of data required'.
DATA(ld_i_oper_simul) = 'Check type of data required'.
DATA(ld_i_changed_conf) = 'Check type of data required'.
DATA(ld_i_collect_msg) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_namtab to it_namtab.

"populate fields of struture and append to itab
append wa_namtab to it_namtab.

"populate fields of struture and append to itab
append wa_mesg to it_mesg. . CALL FUNCTION 'CO_RU_CONFIRMATION_CHECK' EXPORTING afrud_in = ld_afrud_in aktyp_in = ld_aktyp_in caufvd_in = ld_caufvd_in * no_dialog_flag = ld_no_dialog_flag * flg_linecheck_in = ld_flg_linecheck_in * i_oper_simul = ld_i_oper_simul * i_changed_conf = ld_i_changed_conf * i_collect_msg = ld_i_collect_msg IMPORTING afrud_exp = ld_afrud_exp interrupt_flag = ld_interrupt_flag * TABLES * namtab = it_namtab * namtab = it_namtab * mesg = it_mesg EXCEPTIONS CONF_DATA_FALSE = 1 CONF_DATE_IN_FUTURE = 2 CONVERSION_ERROR = 3 INTERRUPT_BY_USER = 4 ORDER_ALREADY_LOCKED = 5 TABLE_ENTRY_NOT_FOUND = 6 WORK_CENTER_NOT_FOUND = 7 . " CO_RU_CONFIRMATION_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_afrud_exp  TYPE AFRUD ,
ld_afrud_in  TYPE AFRUD ,
it_namtab  TYPE STANDARD TABLE OF FNAMTAB ,
wa_namtab  LIKE LINE OF it_namtab,
it_namtab  TYPE STANDARD TABLE OF FNAMTAB ,
wa_namtab  LIKE LINE OF it_namtab,
ld_interrupt_flag  TYPE XFELD ,
ld_aktyp_in  TYPE AKTYP ,
it_mesg  TYPE STANDARD TABLE OF MESG ,
wa_mesg  LIKE LINE OF it_mesg,
ld_caufvd_in  TYPE CAUFVD ,
ld_no_dialog_flag  TYPE XFELD ,
ld_flg_linecheck_in  TYPE XFELD ,
ld_i_oper_simul  TYPE XFELD ,
ld_i_changed_conf  TYPE CONF_QUAN ,
ld_i_collect_msg  TYPE XFELD .

ld_afrud_in = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_namtab to it_namtab.

"populate fields of struture and append to itab
append wa_namtab to it_namtab.
ld_aktyp_in = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_mesg to it_mesg.
ld_caufvd_in = 'Check type of data required'.
ld_no_dialog_flag = 'Check type of data required'.
ld_flg_linecheck_in = 'Check type of data required'.
ld_i_oper_simul = 'Check type of data required'.
ld_i_changed_conf = 'Check type of data required'.
ld_i_collect_msg = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CO_RU_CONFIRMATION_CHECK or its description.