SAP CP_INPUT_OPR_SELECTION Function Module for Select an operation (via index on planning document tables) online









CP_INPUT_OPR_SELECTION is a standard cp input opr 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 Select an operation (via index on planning document tables) online 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 cp input opr selection FM, simply by entering the name CP_INPUT_OPR_SELECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function CP_INPUT_OPR_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 'CP_INPUT_OPR_SELECTION'"Select an operation (via index on planning document tables) online
EXPORTING
* PLNAW_IMP = '*' "Application
* PLNTY_IMP = '*' "Routing type
* PLPOD_HEAD = '' "Operation data for heading
* SELECTOR_IMP = '01' "Screen selector (see long text)
* STTAG = '' "Key date

IMPORTING
INDEX_PLAS_SEL = "Index on PLAS document table of th
INDEX_PLPOE_TAB = "
INDEX_PLPO_SEL = "Index on PLPO document table of th
PLPOD_SEL = "sel. operation

TABLES
PLPOE_TAB = "Table of the data records for sele

EXCEPTIONS
CANCEL = 1
.



IMPORTING Parameters details for CP_INPUT_OPR_SELECTION

PLNAW_IMP - Application

Data type: TCA01-PLNAW
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLNTY_IMP - Routing type

Data type: TCA01-PLNTY
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLPOD_HEAD - Operation data for heading

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

SELECTOR_IMP - Screen selector (see long text)

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

STTAG - Key date

Data type: RC27S-STTAG
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CP_INPUT_OPR_SELECTION

INDEX_PLAS_SEL - Index on PLAS document table of th

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

INDEX_PLPOE_TAB -

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

INDEX_PLPO_SEL - Index on PLPO document table of th

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

PLPOD_SEL - sel. operation

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

TABLES Parameters details for CP_INPUT_OPR_SELECTION

PLPOE_TAB - Table of the data records for sele

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

EXCEPTIONS details

CANCEL -

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

Copy and paste ABAP code example for CP_INPUT_OPR_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_cancel  TYPE STRING, "   
lv_plnaw_imp  TYPE TCA01-PLNAW, "   '*'
lt_plpoe_tab  TYPE STANDARD TABLE OF PLPOE, "   
lv_index_plas_sel  TYPE SY-TABIX, "   
lv_plnty_imp  TYPE TCA01-PLNTY, "   '*'
lv_index_plpoe_tab  TYPE SY-TABIX, "   
lv_plpod_head  TYPE PLPOD, "   ''
lv_index_plpo_sel  TYPE SY-TABIX, "   
lv_plpod_sel  TYPE PLPOD, "   
lv_selector_imp  TYPE PLPOD, "   '01'
lv_sttag  TYPE RC27S-STTAG. "   ''

  CALL FUNCTION 'CP_INPUT_OPR_SELECTION'  "Select an operation (via index on planning document tables) online
    EXPORTING
         PLNAW_IMP = lv_plnaw_imp
         PLNTY_IMP = lv_plnty_imp
         PLPOD_HEAD = lv_plpod_head
         SELECTOR_IMP = lv_selector_imp
         STTAG = lv_sttag
    IMPORTING
         INDEX_PLAS_SEL = lv_index_plas_sel
         INDEX_PLPOE_TAB = lv_index_plpoe_tab
         INDEX_PLPO_SEL = lv_index_plpo_sel
         PLPOD_SEL = lv_plpod_sel
    TABLES
         PLPOE_TAB = lt_plpoe_tab
    EXCEPTIONS
        CANCEL = 1
. " CP_INPUT_OPR_SELECTION




ABAP code using 7.40 inline data declarations to call FM CP_INPUT_OPR_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 PLNAW FROM TCA01 INTO @DATA(ld_plnaw_imp).
DATA(ld_plnaw_imp) = '*'.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_index_plas_sel).
 
"SELECT single PLNTY FROM TCA01 INTO @DATA(ld_plnty_imp).
DATA(ld_plnty_imp) = '*'.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_index_plpoe_tab).
 
DATA(ld_plpod_head) = ''.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_index_plpo_sel).
 
 
DATA(ld_selector_imp) = '01'.
 
"SELECT single STTAG FROM RC27S INTO @DATA(ld_sttag).
DATA(ld_sttag) = ''.
 


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!