SAP CP_EXT_LST_CREATE Function Module for NOTRANSL: Zu einer Alternativen Belegtabs füllen und Dialogtabelle aufbaue









CP_EXT_LST_CREATE is a standard cp ext lst create 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: Zu einer Alternativen Belegtabs füllen und Dialogtabelle aufbaue 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 ext lst create FM, simply by entering the name CP_EXT_LST_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CP_EXT_LST_CREATE 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_EXT_LST_CREATE'"NOTRANSL: Zu einer Alternativen Belegtabs füllen und Dialogtabelle aufbaue
EXPORTING
* CUOBJ_IMP = ' ' "Internal object number for configuration
* RC27M_IMP = "
* I_FLG_USE_CPEX = ' ' "
* FLG_REF_IMP = 'X' "Delete references to ref. operation sets
* FLG_COPY_IMP = "
PLNAL_IMP = "Alternative
PLNNR_IMP = "Task list number
PLNTY_IMP = "Task list type
STTAG_IMP = "Key date
TCA11_IMP = "Object status field string
* ORDER_TYPE_CAPP_IMP = ' ' "Category of calling order (CAPP calculate)

IMPORTING
TCA11_EXP = "

TABLES
DIALOG_TAB = "Dialog table

EXCEPTIONS
PLAN_NOT_FOUND = 1
.



IMPORTING Parameters details for CP_EXT_LST_CREATE

CUOBJ_IMP - Internal object number for configuration

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

RC27M_IMP -

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

I_FLG_USE_CPEX -

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

FLG_REF_IMP - Delete references to ref. operation sets

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

FLG_COPY_IMP -

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

PLNAL_IMP - Alternative

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

PLNNR_IMP - Task list number

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

PLNTY_IMP - Task list type

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

STTAG_IMP - Key date

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

TCA11_IMP - Object status field string

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

ORDER_TYPE_CAPP_IMP - Category of calling order (CAPP calculate)

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

EXPORTING Parameters details for CP_EXT_LST_CREATE

TCA11_EXP -

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

TABLES Parameters details for CP_EXT_LST_CREATE

DIALOG_TAB - Dialog table

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

EXCEPTIONS details

PLAN_NOT_FOUND -

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

Copy and paste ABAP code example for CP_EXT_LST_CREATE 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_cuobj_imp  TYPE INOB-CUOBJ, "   SPACE
lv_tca11_exp  TYPE TCA11, "   
lt_dialog_tab  TYPE STANDARD TABLE OF RCLST, "   
lv_plan_not_found  TYPE RCLST, "   
lv_rc27m_imp  TYPE RC27M, "   
lv_i_flg_use_cpex  TYPE RC27M, "   SPACE
lv_flg_ref_imp  TYPE RC27M, "   'X'
lv_flg_copy_imp  TYPE RC27M, "   
lv_plnal_imp  TYPE PLKO-PLNAL, "   
lv_plnnr_imp  TYPE PLKO-PLNNR, "   
lv_plnty_imp  TYPE PLKO-PLNTY, "   
lv_sttag_imp  TYPE PLKO-DATUV, "   
lv_tca11_imp  TYPE TCA11, "   
lv_order_type_capp_imp  TYPE PLKO-FLG_CAPO. "   SPACE

  CALL FUNCTION 'CP_EXT_LST_CREATE'  "NOTRANSL: Zu einer Alternativen Belegtabs füllen und Dialogtabelle aufbaue
    EXPORTING
         CUOBJ_IMP = lv_cuobj_imp
         RC27M_IMP = lv_rc27m_imp
         I_FLG_USE_CPEX = lv_i_flg_use_cpex
         FLG_REF_IMP = lv_flg_ref_imp
         FLG_COPY_IMP = lv_flg_copy_imp
         PLNAL_IMP = lv_plnal_imp
         PLNNR_IMP = lv_plnnr_imp
         PLNTY_IMP = lv_plnty_imp
         STTAG_IMP = lv_sttag_imp
         TCA11_IMP = lv_tca11_imp
         ORDER_TYPE_CAPP_IMP = lv_order_type_capp_imp
    IMPORTING
         TCA11_EXP = lv_tca11_exp
    TABLES
         DIALOG_TAB = lt_dialog_tab
    EXCEPTIONS
        PLAN_NOT_FOUND = 1
. " CP_EXT_LST_CREATE




ABAP code using 7.40 inline data declarations to call FM CP_EXT_LST_CREATE

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 CUOBJ FROM INOB INTO @DATA(ld_cuobj_imp).
DATA(ld_cuobj_imp) = ' '.
 
 
 
 
 
DATA(ld_i_flg_use_cpex) = ' '.
 
DATA(ld_flg_ref_imp) = 'X'.
 
 
"SELECT single PLNAL FROM PLKO INTO @DATA(ld_plnal_imp).
 
"SELECT single PLNNR FROM PLKO INTO @DATA(ld_plnnr_imp).
 
"SELECT single PLNTY FROM PLKO INTO @DATA(ld_plnty_imp).
 
"SELECT single DATUV FROM PLKO INTO @DATA(ld_sttag_imp).
 
 
"SELECT single FLG_CAPO FROM PLKO INTO @DATA(ld_order_type_capp_imp).
DATA(ld_order_type_capp_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!