SAP CETA_CHECK_METHOD_IN_WORKST Function Module for Check that method suits workstation
CETA_CHECK_METHOD_IN_WORKST is a standard ceta check method in workst SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check that method suits workstation 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 ceta check method in workst FM, simply by entering the name CETA_CHECK_METHOD_IN_WORKST into the relevant SAP transaction such as SE37 or SE38.
Function Group: CETA
Program Name: SAPLCETA
Main Program: SAPLCETA
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CETA_CHECK_METHOD_IN_WORKST 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 'CETA_CHECK_METHOD_IN_WORKST'"Check that method suits workstation.
EXPORTING
* CALLED_BY_IMP = '1' "Location of the call
* METHOD_IMP = '0000000000' "Method number (internal)
* PLNTY_IMP = ' ' "
* PLPOD_IMP = ' ' "Operation from routing
* PROCESS_IMP = '0000000000' "Procedure number (internal)
* PROC_NA_IMP = ' ' "Procedure number (external)
RCR01_IMP = "Work center
IMPORTING
ERROR_FLG = "Error occurred
WARNING_FLG = "Warning message occurred
IMPORTING Parameters details for CETA_CHECK_METHOD_IN_WORKST
CALLED_BY_IMP - Location of the call
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
METHOD_IMP - Method number (internal)
Data type: VMETK-MEINNDefault: '0000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PLNTY_IMP -
Data type: TCA05-PLNTYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PLPOD_IMP - Operation from routing
Data type: PLPODDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROCESS_IMP - Procedure number (internal)
Data type: VERFK-VEINNDefault: '0000000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROC_NA_IMP - Procedure number (external)
Data type: VERFK-VRFNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RCR01_IMP - Work center
Data type: RCR01Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CETA_CHECK_METHOD_IN_WORKST
ERROR_FLG - Error occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WARNING_FLG - Warning message occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CETA_CHECK_METHOD_IN_WORKST 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_error_flg | TYPE STRING, " | |||
| lv_called_by_imp | TYPE STRING, " '1' | |||
| lv_method_imp | TYPE VMETK-MEINN, " '0000000000' | |||
| lv_warning_flg | TYPE VMETK, " | |||
| lv_plnty_imp | TYPE TCA05-PLNTY, " SPACE | |||
| lv_plpod_imp | TYPE PLPOD, " SPACE | |||
| lv_process_imp | TYPE VERFK-VEINN, " '0000000000' | |||
| lv_proc_na_imp | TYPE VERFK-VRFNR, " SPACE | |||
| lv_rcr01_imp | TYPE RCR01. " |
|   CALL FUNCTION 'CETA_CHECK_METHOD_IN_WORKST' "Check that method suits workstation |
| EXPORTING | ||
| CALLED_BY_IMP | = lv_called_by_imp | |
| METHOD_IMP | = lv_method_imp | |
| PLNTY_IMP | = lv_plnty_imp | |
| PLPOD_IMP | = lv_plpod_imp | |
| PROCESS_IMP | = lv_process_imp | |
| PROC_NA_IMP | = lv_proc_na_imp | |
| RCR01_IMP | = lv_rcr01_imp | |
| IMPORTING | ||
| ERROR_FLG | = lv_error_flg | |
| WARNING_FLG | = lv_warning_flg | |
| . " CETA_CHECK_METHOD_IN_WORKST | ||
ABAP code using 7.40 inline data declarations to call FM CETA_CHECK_METHOD_IN_WORKST
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_called_by_imp) | = '1'. | |||
| "SELECT single MEINN FROM VMETK INTO @DATA(ld_method_imp). | ||||
| DATA(ld_method_imp) | = '0000000000'. | |||
| "SELECT single PLNTY FROM TCA05 INTO @DATA(ld_plnty_imp). | ||||
| DATA(ld_plnty_imp) | = ' '. | |||
| DATA(ld_plpod_imp) | = ' '. | |||
| "SELECT single VEINN FROM VERFK INTO @DATA(ld_process_imp). | ||||
| DATA(ld_process_imp) | = '0000000000'. | |||
| "SELECT single VRFNR FROM VERFK INTO @DATA(ld_proc_na_imp). | ||||
| DATA(ld_proc_na_imp) | = ' '. | |||
Search for further information about these or an SAP related objects