SAP CEVA_SELECTION Function Module for NOTRANSL: Auswahl von CAP-Methoden und -Verfahren









CEVA_SELECTION is a standard ceva selection 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: Auswahl von CAP-Methoden und -Verfahren 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 ceva selection FM, simply by entering the name CEVA_SELECTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: CEVA
Program Name: SAPLCEVA
Main Program: SAPLCEVA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CEVA_SELECTION 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 'CEVA_SELECTION'"NOTRANSL: Auswahl von CAP-Methoden und -Verfahren
EXPORTING
* AENNR_IMP = 0 "Change no. for change with history
RC27M_IMP = "Material field string (assembly)
* RCR01_IMP = ' ' "Work center from point of view of task list
STTAG_IMP = "Key date for change no.
* TOPNR_MAX_IMP = '0000' "So far highest suboperation number
* CALL_MODE_ORDER = ' ' "
* CUOBJ_IMP = ' ' "
* I_CALL_EWB = ' ' "
* VBELN = ' ' "
* POSNR = 0 "
* LOSGR = 1 "
* CALL_MODE_IMP = '0' "Type of call
DEACT_TYPE_IMP = "Deactivation category
* METHOD_IMP = 0 "Preselected method
* OPERATION_IMP = 2 "Operation mode
PLFLD_IMP = "Current subsequent field string
PLKOD_IMP = "Current header field string
PLPOD_IMP = "Current operation field string
* PROCESS_IMP = 0 "Preselected procedure

IMPORTING
FLG_ANDS_EXP = "
FLG_END_EXP = "FBS ended (F15)
FLG_ESC_EXP = "FBS cancelled (F12)

TABLES
PLFVD_EXP = "Newly created PLFVD
PLPHD_EXP = "Newly created PLPHD

EXCEPTIONS
METHOD_NOT_FOUND = 1 METHOD_WITHOUT_PROCESS = 2 NO_SHOW = 3 PROCESS_NOT_FOUND = 4 WORKSTATION_MISSING = 5 WORKSTATION_WITHOUT_PROCESSES = 6
.



IMPORTING Parameters details for CEVA_SELECTION

AENNR_IMP - Change no. for change with history

Data type: PLPOD-AENNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

RC27M_IMP - Material field string (assembly)

Data type: RC27M
Optional: No
Call by Reference: No ( called with pass by value option)

RCR01_IMP - Work center from point of view of task list

Data type: RCR01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

STTAG_IMP - Key date for change no.

Data type: RC271-STTAG
Optional: No
Call by Reference: No ( called with pass by value option)

TOPNR_MAX_IMP - So far highest suboperation number

Data type: RCEVZ-AKTOP
Default: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALL_MODE_ORDER -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CUOBJ_IMP -

Data type: INOB-CUOBJ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALL_EWB -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VBELN -

Data type: MAPL-VBELN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

POSNR -

Data type: MAPL-POSNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOSGR -

Data type: CAUFVD-GAMNG
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALL_MODE_IMP - Type of call

Data type: RCES-CALL_MODE
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEACT_TYPE_IMP - Deactivation category

Data type: RCES-DEACT_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

METHOD_IMP - Preselected method

Data type: VMETK-MEINN
Optional: Yes
Call by Reference: No ( called with pass by value option)

OPERATION_IMP - Operation mode

Data type:
Default: 2
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLFLD_IMP - Current subsequent field string

Data type: PLFLD
Optional: No
Call by Reference: No ( called with pass by value option)

PLKOD_IMP - Current header field string

Data type: PLKOD
Optional: No
Call by Reference: No ( called with pass by value option)

PLPOD_IMP - Current operation field string

Data type: PLPOD
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESS_IMP - Preselected procedure

Data type: VERFK-VEINN
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CEVA_SELECTION

FLG_ANDS_EXP -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FLG_END_EXP - FBS ended (F15)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FLG_ESC_EXP - FBS cancelled (F12)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CEVA_SELECTION

PLFVD_EXP - Newly created PLFVD

Data type: PLFVD
Optional: No
Call by Reference: No ( called with pass by value option)

PLPHD_EXP - Newly created PLPHD

Data type: PLPHD
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

METHOD_NOT_FOUND - Method not found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

METHOD_WITHOUT_PROCESS - Method number specified without procedure number

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SHOW - FBS not suited for display

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESS_NOT_FOUND - Procedure not found in the WCenter

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WORKSTATION_MISSING - Job data is missing

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WORKSTATION_WITHOUT_PROCESSES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CEVA_SELECTION 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_aennr_imp  TYPE PLPOD-AENNR, "   0
lt_plfvd_exp  TYPE STANDARD TABLE OF PLFVD, "   
lv_flg_ands_exp  TYPE PLFVD, "   
lv_method_not_found  TYPE PLFVD, "   
lv_rc27m_imp  TYPE RC27M, "   
lv_rcr01_imp  TYPE RCR01, "   SPACE
lv_sttag_imp  TYPE RC271-STTAG, "   
lv_topnr_max_imp  TYPE RCEVZ-AKTOP, "   '0000'
lv_call_mode_order  TYPE RCEVZ, "   SPACE
lv_cuobj_imp  TYPE INOB-CUOBJ, "   SPACE
lv_i_call_ewb  TYPE C, "   SPACE
lv_vbeln  TYPE MAPL-VBELN, "   SPACE
lv_posnr  TYPE MAPL-POSNR, "   0
lv_losgr  TYPE CAUFVD-GAMNG, "   1
lt_plphd_exp  TYPE STANDARD TABLE OF PLPHD, "   
lv_flg_end_exp  TYPE PLPHD, "   
lv_call_mode_imp  TYPE RCES-CALL_MODE, "   '0'
lv_method_without_process  TYPE RCES, "   
lv_no_show  TYPE RCES, "   
lv_flg_esc_exp  TYPE RCES, "   
lv_deact_type_imp  TYPE RCES-DEACT_TYPE, "   
lv_method_imp  TYPE VMETK-MEINN, "   0
lv_process_not_found  TYPE VMETK, "   
lv_operation_imp  TYPE VMETK, "   2
lv_workstation_missing  TYPE VMETK, "   
lv_plfld_imp  TYPE PLFLD, "   
lv_workstation_without_processes  TYPE PLFLD, "   
lv_plkod_imp  TYPE PLKOD, "   
lv_plpod_imp  TYPE PLPOD, "   
lv_process_imp  TYPE VERFK-VEINN. "   0

  CALL FUNCTION 'CEVA_SELECTION'  "NOTRANSL: Auswahl von CAP-Methoden und -Verfahren
    EXPORTING
         AENNR_IMP = lv_aennr_imp
         RC27M_IMP = lv_rc27m_imp
         RCR01_IMP = lv_rcr01_imp
         STTAG_IMP = lv_sttag_imp
         TOPNR_MAX_IMP = lv_topnr_max_imp
         CALL_MODE_ORDER = lv_call_mode_order
         CUOBJ_IMP = lv_cuobj_imp
         I_CALL_EWB = lv_i_call_ewb
         VBELN = lv_vbeln
         POSNR = lv_posnr
         LOSGR = lv_losgr
         CALL_MODE_IMP = lv_call_mode_imp
         DEACT_TYPE_IMP = lv_deact_type_imp
         METHOD_IMP = lv_method_imp
         OPERATION_IMP = lv_operation_imp
         PLFLD_IMP = lv_plfld_imp
         PLKOD_IMP = lv_plkod_imp
         PLPOD_IMP = lv_plpod_imp
         PROCESS_IMP = lv_process_imp
    IMPORTING
         FLG_ANDS_EXP = lv_flg_ands_exp
         FLG_END_EXP = lv_flg_end_exp
         FLG_ESC_EXP = lv_flg_esc_exp
    TABLES
         PLFVD_EXP = lt_plfvd_exp
         PLPHD_EXP = lt_plphd_exp
    EXCEPTIONS
        METHOD_NOT_FOUND = 1
        METHOD_WITHOUT_PROCESS = 2
        NO_SHOW = 3
        PROCESS_NOT_FOUND = 4
        WORKSTATION_MISSING = 5
        WORKSTATION_WITHOUT_PROCESSES = 6
. " CEVA_SELECTION




ABAP code using 7.40 inline data declarations to call FM CEVA_SELECTION

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 AENNR FROM PLPOD INTO @DATA(ld_aennr_imp).
 
 
 
 
 
DATA(ld_rcr01_imp) = ' '.
 
"SELECT single STTAG FROM RC271 INTO @DATA(ld_sttag_imp).
 
"SELECT single AKTOP FROM RCEVZ INTO @DATA(ld_topnr_max_imp).
DATA(ld_topnr_max_imp) = '0000'.
 
DATA(ld_call_mode_order) = ' '.
 
"SELECT single CUOBJ FROM INOB INTO @DATA(ld_cuobj_imp).
DATA(ld_cuobj_imp) = ' '.
 
DATA(ld_i_call_ewb) = ' '.
 
"SELECT single VBELN FROM MAPL INTO @DATA(ld_vbeln).
DATA(ld_vbeln) = ' '.
 
"SELECT single POSNR FROM MAPL INTO @DATA(ld_posnr).
 
"SELECT single GAMNG FROM CAUFVD INTO @DATA(ld_losgr).
DATA(ld_losgr) = 1.
 
 
 
"SELECT single CALL_MODE FROM RCES INTO @DATA(ld_call_mode_imp).
DATA(ld_call_mode_imp) = '0'.
 
 
 
 
"SELECT single DEACT_TYPE FROM RCES INTO @DATA(ld_deact_type_imp).
 
"SELECT single MEINN FROM VMETK INTO @DATA(ld_method_imp).
 
 
DATA(ld_operation_imp) = 2.
 
 
 
 
 
 
"SELECT single VEINN FROM VERFK INTO @DATA(ld_process_imp).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!