SAP GCFE_MAP_KEY Function Module for GBC: Allocate Key









GCFE_MAP_KEY is a standard gcfe map key SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for GBC: Allocate Key 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 gcfe map key FM, simply by entering the name GCFE_MAP_KEY into the relevant SAP transaction such as SE37 or SE38.

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



Function GCFE_MAP_KEY 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 'GCFE_MAP_KEY'"GBC: Allocate Key
EXPORTING
I_FIELD = "
I_GCCFWA = "
I_GCCGTAB = "
I_DATATAB = "

IMPORTING
E_OBJKEY = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for GCFE_MAP_KEY

I_FIELD -

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

I_GCCFWA -

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

I_GCCGTAB -

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

I_DATATAB -

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

EXPORTING Parameters details for GCFE_MAP_KEY

E_OBJKEY -

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

EXCEPTIONS details

ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for GCFE_MAP_KEY 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_error  TYPE STRING, "   
lv_i_field  TYPE GCTP1_FIELD_TYPE, "   
lv_e_objkey  TYPE GCTP1_OBJKEY_TYPE, "   
lv_i_gccfwa  TYPE GCTP1_GCCFWA_TYPE, "   
lv_i_gccgtab  TYPE GCTP1_GCCGTAB_TYPE, "   
lv_i_datatab  TYPE GCTP1_PARATAB_TYPE. "   

  CALL FUNCTION 'GCFE_MAP_KEY'  "GBC: Allocate Key
    EXPORTING
         I_FIELD = lv_i_field
         I_GCCFWA = lv_i_gccfwa
         I_GCCGTAB = lv_i_gccgtab
         I_DATATAB = lv_i_datatab
    IMPORTING
         E_OBJKEY = lv_e_objkey
    EXCEPTIONS
        ERROR = 1
. " GCFE_MAP_KEY




ABAP code using 7.40 inline data declarations to call FM GCFE_MAP_KEY

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.

 
 
 
 
 
 


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!