SAP Function Modules

CP_DO_OPR_CHECK SAP Function module - Check an operation or sub-oper. by assigned detail screens







CP_DO_OPR_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 CP_DO_OPR_CHECK into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CP_DO_OPR_CHECK - CP DO OPR CHECK





CALL FUNCTION 'CP_DO_OPR_CHECK' "Check an operation or sub-oper. by assigned detail screens
  EXPORTING
    aennr_imp =                 " plpo-aennr    Change number
*   bldgr_excl_imp = SPACE      " rc27s-bldgr
*   panel_excl_imp = SPACE      " rc27s-panel
    plfld_imp =                 " plfld         Task list sequence (I/O structure)
    plkod_imp =                 " plkod         Header record to be displayed (I/O structure)
    plnaw_imp =                 " tca01-plnaw   Application
*   plpod_imp = ''              " plpod         Operation data (operation and sub-operation)
*   plpom_imp = ''              " plpom         Operation data (only for sub-operations)
*   rc27e_imp = ''              " rc27e         Equipment data of a task list
    rc27i_imp =                 " rc27i         Index field string on document tables
*   rc27m_imp = ''              " rc27m         Material data of task list
*   rcr01_imp = ''              " rcr01         Work center data
*   sel_sttag = ' '             " rc27s-sttag   Key date for which task list is set up
*   tca41_imp = ''              " tca41         Profile
*   tca05_imp = ''              " tca05         Transaction control GI
*   object_imp =                " rc27x-object
*   subobj_imp =                " rc27x-subobj
*   rcr01_sav_imp = SPACE       " rcr01
*   plpod_sav_imp = SPACE       " plpod
  IMPORTING
    flg_esc =                   "               Screen was cancelled
    plpod_exp =                 " plpod         Changed operation data
    rcr01_exp =                 " rcr01         Work center data
    flg_serv =                  " rc27s-flg_serv
    .  "  CP_DO_OPR_CHECK

ABAP code example for Function Module CP_DO_OPR_CHECK





The ABAP code below is a full code listing to execute function module CP_DO_OPR_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_flg_esc  TYPE STRING ,
ld_plpod_exp  TYPE PLPOD ,
ld_rcr01_exp  TYPE RCR01 ,
ld_flg_serv  TYPE RC27S-FLG_SERV .


SELECT single AENNR
FROM PLPO
INTO @DATA(ld_aennr_imp).


DATA(ld_bldgr_excl_imp) = some text here

DATA(ld_panel_excl_imp) = some text here
DATA(ld_plfld_imp) = 'Check type of data required'.
DATA(ld_plkod_imp) = 'Check type of data required'.

SELECT single PLNAW
FROM TCA01
INTO @DATA(ld_plnaw_imp).

DATA(ld_plpod_imp) = 'Check type of data required'.
DATA(ld_plpom_imp) = 'Check type of data required'.
DATA(ld_rc27e_imp) = 'Check type of data required'.
DATA(ld_rc27i_imp) = 'Check type of data required'.
DATA(ld_rc27m_imp) = 'Check type of data required'.
DATA(ld_rcr01_imp) = 'Check type of data required'.

DATA(ld_sel_sttag) = 20210129
DATA(ld_tca41_imp) = 'Check type of data required'.
DATA(ld_tca05_imp) = 'Check type of data required'.

DATA(ld_object_imp) = some text here

DATA(ld_subobj_imp) = some text here
DATA(ld_rcr01_sav_imp) = 'Check type of data required'.
DATA(ld_plpod_sav_imp) = 'Check type of data required'. . CALL FUNCTION 'CP_DO_OPR_CHECK' EXPORTING aennr_imp = ld_aennr_imp * bldgr_excl_imp = ld_bldgr_excl_imp * panel_excl_imp = ld_panel_excl_imp plfld_imp = ld_plfld_imp plkod_imp = ld_plkod_imp plnaw_imp = ld_plnaw_imp * plpod_imp = ld_plpod_imp * plpom_imp = ld_plpom_imp * rc27e_imp = ld_rc27e_imp rc27i_imp = ld_rc27i_imp * rc27m_imp = ld_rc27m_imp * rcr01_imp = ld_rcr01_imp * sel_sttag = ld_sel_sttag * tca41_imp = ld_tca41_imp * tca05_imp = ld_tca05_imp * object_imp = ld_object_imp * subobj_imp = ld_subobj_imp * rcr01_sav_imp = ld_rcr01_sav_imp * plpod_sav_imp = ld_plpod_sav_imp IMPORTING flg_esc = ld_flg_esc plpod_exp = ld_plpod_exp rcr01_exp = ld_rcr01_exp flg_serv = ld_flg_serv . " CP_DO_OPR_CHECK
IF SY-SUBRC EQ 0. "All OK 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_flg_esc  TYPE STRING ,
ld_aennr_imp  TYPE PLPO-AENNR ,
ld_plpod_exp  TYPE PLPOD ,
ld_bldgr_excl_imp  TYPE RC27S-BLDGR ,
ld_rcr01_exp  TYPE RCR01 ,
ld_panel_excl_imp  TYPE RC27S-PANEL ,
ld_flg_serv  TYPE RC27S-FLG_SERV ,
ld_plfld_imp  TYPE PLFLD ,
ld_plkod_imp  TYPE PLKOD ,
ld_plnaw_imp  TYPE TCA01-PLNAW ,
ld_plpod_imp  TYPE PLPOD ,
ld_plpom_imp  TYPE PLPOM ,
ld_rc27e_imp  TYPE RC27E ,
ld_rc27i_imp  TYPE RC27I ,
ld_rc27m_imp  TYPE RC27M ,
ld_rcr01_imp  TYPE RCR01 ,
ld_sel_sttag  TYPE RC27S-STTAG ,
ld_tca41_imp  TYPE TCA41 ,
ld_tca05_imp  TYPE TCA05 ,
ld_object_imp  TYPE RC27X-OBJECT ,
ld_subobj_imp  TYPE RC27X-SUBOBJ ,
ld_rcr01_sav_imp  TYPE RCR01 ,
ld_plpod_sav_imp  TYPE PLPOD .


SELECT single AENNR
FROM PLPO
INTO ld_aennr_imp.


ld_bldgr_excl_imp = some text here

ld_panel_excl_imp = some text here
ld_plfld_imp = 'Check type of data required'.
ld_plkod_imp = 'Check type of data required'.

SELECT single PLNAW
FROM TCA01
INTO ld_plnaw_imp.

ld_plpod_imp = 'Check type of data required'.
ld_plpom_imp = 'Check type of data required'.
ld_rc27e_imp = 'Check type of data required'.
ld_rc27i_imp = 'Check type of data required'.
ld_rc27m_imp = 'Check type of data required'.
ld_rcr01_imp = 'Check type of data required'.

ld_sel_sttag = 20210129
ld_tca41_imp = 'Check type of data required'.
ld_tca05_imp = 'Check type of data required'.

ld_object_imp = some text here

ld_subobj_imp = some text here
ld_rcr01_sav_imp = 'Check type of data required'.
ld_plpod_sav_imp = '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 CP_DO_OPR_CHECK or its description.