SAP COPA_GET_NRKR_HIST Function Module for









COPA_GET_NRKR_HIST is a standard copa get nrkr hist 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 get nrkr hist FM, simply by entering the name COPA_GET_NRKR_HIST into the relevant SAP transaction such as SE37 or SE38.

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



Function COPA_GET_NRKR_HIST 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_GET_NRKR_HIST'"
EXPORTING
I_ERKRS = "Operating Concern
* I_FROM_REL = ' ' "From Release
* I_FROM_PATCH = ' ' "
* I_TO_REL = ' ' "To Release
* I_TO_PATCH = ' ' "
I_OBJECT = "Number Range Object

IMPORTING
ET_NRKR_RANGES = "Number Range Intervals

EXCEPTIONS
PATCH_HIST_NOT_FOUND = 1 INVALID_PATCH = 2 SYNCHRONIZE_PATCH_HIST = 3
.




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_SAPLKEAK_001 User Exit for Determining the Characteristic Group

IMPORTING Parameters details for COPA_GET_NRKR_HIST

I_ERKRS - Operating Concern

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

I_FROM_REL - From Release

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

I_FROM_PATCH -

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

I_TO_REL - To Release

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

I_TO_PATCH -

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

I_OBJECT - Number Range Object

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

EXPORTING Parameters details for COPA_GET_NRKR_HIST

ET_NRKR_RANGES - Number Range Intervals

Data type: KEAK_YT_NRKR_RANGES
Optional: No
Call by Reference: Yes

EXCEPTIONS details

PATCH_HIST_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

INVALID_PATCH -

Data type:
Optional: No
Call by Reference: Yes

SYNCHRONIZE_PATCH_HIST -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COPA_GET_NRKR_HIST 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_erkrs  TYPE ERKRS, "   
lv_et_nrkr_ranges  TYPE KEAK_YT_NRKR_RANGES, "   
lv_patch_hist_not_found  TYPE KEAK_YT_NRKR_RANGES, "   
lv_i_from_rel  TYPE RKE_SAPRL, "   SPACE
lv_invalid_patch  TYPE RKE_SAPRL, "   
lv_i_from_patch  TYPE PATCH, "   SPACE
lv_synchronize_patch_hist  TYPE PATCH, "   
lv_i_to_rel  TYPE RKE_SAPRL, "   SPACE
lv_i_to_patch  TYPE PATCH, "   SPACE
lv_i_object  TYPE C. "   

  CALL FUNCTION 'COPA_GET_NRKR_HIST'  "
    EXPORTING
         I_ERKRS = lv_i_erkrs
         I_FROM_REL = lv_i_from_rel
         I_FROM_PATCH = lv_i_from_patch
         I_TO_REL = lv_i_to_rel
         I_TO_PATCH = lv_i_to_patch
         I_OBJECT = lv_i_object
    IMPORTING
         ET_NRKR_RANGES = lv_et_nrkr_ranges
    EXCEPTIONS
        PATCH_HIST_NOT_FOUND = 1
        INVALID_PATCH = 2
        SYNCHRONIZE_PATCH_HIST = 3
. " COPA_GET_NRKR_HIST




ABAP code using 7.40 inline data declarations to call FM COPA_GET_NRKR_HIST

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_i_from_rel) = ' '.
 
 
DATA(ld_i_from_patch) = ' '.
 
 
DATA(ld_i_to_rel) = ' '.
 
DATA(ld_i_to_patch) = ' '.
 
 


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!