SAP COPA_UPDATE_STANDARD_MEASURES Function Module for









COPA_UPDATE_STANDARD_MEASURES is a standard copa update standard measures SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 copa update standard measures FM, simply by entering the name COPA_UPDATE_STANDARD_MEASURES into the relevant SAP transaction such as SE37 or SE38.

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



Function COPA_UPDATE_STANDARD_MEASURES 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 'COPA_UPDATE_STANDARD_MEASURES'"
EXPORTING
I_TABNAME = "
I_COPA_LINE_ITEM = "
* I_DO_NOT_OVERWRITE = ' ' "

IMPORTING
E_COPA_LINE_ITEM = "

TABLES
* I_FIELDTAB = "

EXCEPTIONS
CONVERSION_ERROR = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLKEAB_001 User Exit for Actual Data Valuation
EXIT_SAPLKEAB_002 User Exit for Planning Data Valuation
EXIT_SAPLKEAB_003 Valuation Using Conditions: Access to the Structures KOMK / KOMP
EXIT_SAPLKEAB_004 CO-PA Valuation: Flexible Assignment Costing Key

IMPORTING Parameters details for COPA_UPDATE_STANDARD_MEASURES

I_TABNAME -

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

I_COPA_LINE_ITEM -

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

I_DO_NOT_OVERWRITE -

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

EXPORTING Parameters details for COPA_UPDATE_STANDARD_MEASURES

E_COPA_LINE_ITEM -

Data type:
Optional: No
Call by Reference: Yes

TABLES Parameters details for COPA_UPDATE_STANDARD_MEASURES

I_FIELDTAB -

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

EXCEPTIONS details

CONVERSION_ERROR -

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

Copy and paste ABAP code example for COPA_UPDATE_STANDARD_MEASURES 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_i_tabname  TYPE DD02V-TABNAME, "   
lt_i_fieldtab  TYPE STANDARD TABLE OF DD02V, "   
lv_conversion_error  TYPE DD02V, "   
lv_e_copa_line_item  TYPE DD02V, "   
lv_i_copa_line_item  TYPE DD02V, "   
lv_i_do_not_overwrite  TYPE KEDR_FLAG. "   SPACE

  CALL FUNCTION 'COPA_UPDATE_STANDARD_MEASURES'  "
    EXPORTING
         I_TABNAME = lv_i_tabname
         I_COPA_LINE_ITEM = lv_i_copa_line_item
         I_DO_NOT_OVERWRITE = lv_i_do_not_overwrite
    IMPORTING
         E_COPA_LINE_ITEM = lv_e_copa_line_item
    TABLES
         I_FIELDTAB = lt_i_fieldtab
    EXCEPTIONS
        CONVERSION_ERROR = 1
. " COPA_UPDATE_STANDARD_MEASURES




ABAP code using 7.40 inline data declarations to call FM COPA_UPDATE_STANDARD_MEASURES

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 TABNAME FROM DD02V INTO @DATA(ld_i_tabname).
 
 
 
 
 
DATA(ld_i_do_not_overwrite) = ' '.
 


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!