SAP BAPI_CRMISUPROF_GETKEYS Function Module for









BAPI_CRMISUPROF_GETKEYS is a standard bapi crmisuprof getkeys 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 bapi crmisuprof getkeys FM, simply by entering the name BAPI_CRMISUPROF_GETKEYS into the relevant SAP transaction such as SE37 or SE38.

Function Group: CRM_ISU_PROFILES_BAPI
Program Name: SAPLCRM_ISU_PROFILES_BAPI
Main Program: SAPLCRM_ISU_PROFILES_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_CRMISUPROF_GETKEYS 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 'BAPI_CRMISUPROF_GETKEYS'"
EXPORTING
FIND_OBJ_TYPE = "Storage Location
* TIME_ZONE = "Time Zone for Profiles
* MAX_ROWS = 100 "Maximum Number of Hits
* DELETED = "
* ARCHIVED = "Archived Profiles
* FIND_PROFILE = "Key in Profile Storage Location
* PROFTEXT = "Profile Description
* DIVISION = "Division
* PROFTYPE = "Profile Type
* PROFVALCAT = "Profile Value Category
* INTSIZEID = "Identification of Interval Length
* UNIT = "Unit of Measure
* DAY_OFFSET = "Day Offset

IMPORTING
PROFILE_KEYS = "Profile Keys Table

TABLES
RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_CRMISUPROF_GETKEYS

FIND_OBJ_TYPE - Storage Location

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

TIME_ZONE - Time Zone for Profiles

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

MAX_ROWS - Maximum Number of Hits

Data type: BAPICRMISUPROFILEAUX-MAX_ROWS
Default: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)

DELETED -

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

ARCHIVED - Archived Profiles

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

FIND_PROFILE - Key in Profile Storage Location

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

PROFTEXT - Profile Description

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

DIVISION - Division

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

PROFTYPE - Profile Type

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

PROFVALCAT - Profile Value Category

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

INTSIZEID - Identification of Interval Length

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

UNIT - Unit of Measure

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

DAY_OFFSET - Day Offset

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

EXPORTING Parameters details for BAPI_CRMISUPROF_GETKEYS

PROFILE_KEYS - Profile Keys Table

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

TABLES Parameters details for BAPI_CRMISUPROF_GETKEYS

RETURN - Return Parameter

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

Copy and paste ABAP code example for BAPI_CRMISUPROF_GETKEYS 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:
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_profile_keys  TYPE CRM_ISUT_PROFILE_KEYS_TAB, "   
lv_find_obj_type  TYPE BAPICRMISUPROFILEAUX-FIND_OBJ_TYPE, "   
lv_time_zone  TYPE BAPICRMISUPROFILEHEAD-TIME_ZONE, "   
lv_max_rows  TYPE BAPICRMISUPROFILEAUX-MAX_ROWS, "   100
lv_deleted  TYPE BAPICRMISUPROFILEAUX-DELETED, "   
lv_archived  TYPE BAPICRMISUPROFILEAUX-ARCHIVED, "   
lv_find_profile  TYPE BAPICRMISUPROFILEAUX-FIND_PROFILE, "   
lv_proftext  TYPE BAPICRMISUPROFILEHEAD-PROFTEXT, "   
lv_division  TYPE BAPICRMISUPROFILEHEAD-DIVISION, "   
lv_proftype  TYPE BAPICRMISUPROFILEHEAD-PROFTYPE, "   
lv_profvalcat  TYPE BAPICRMISUPROFILEHEAD-PROFVALCAT, "   
lv_intsizeid  TYPE BAPICRMISUPROFILEHEAD-INTSIZEID, "   
lv_unit  TYPE BAPICRMISUPROFILEHEAD-UNIT, "   
lv_day_offset  TYPE BAPICRMISUPROFILEHEAD-DAY_OFFSET. "   

  CALL FUNCTION 'BAPI_CRMISUPROF_GETKEYS'  "
    EXPORTING
         FIND_OBJ_TYPE = lv_find_obj_type
         TIME_ZONE = lv_time_zone
         MAX_ROWS = lv_max_rows
         DELETED = lv_deleted
         ARCHIVED = lv_archived
         FIND_PROFILE = lv_find_profile
         PROFTEXT = lv_proftext
         DIVISION = lv_division
         PROFTYPE = lv_proftype
         PROFVALCAT = lv_profvalcat
         INTSIZEID = lv_intsizeid
         UNIT = lv_unit
         DAY_OFFSET = lv_day_offset
    IMPORTING
         PROFILE_KEYS = lv_profile_keys
    TABLES
         RETURN = lt_return
. " BAPI_CRMISUPROF_GETKEYS




ABAP code using 7.40 inline data declarations to call FM BAPI_CRMISUPROF_GETKEYS

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 FIND_OBJ_TYPE FROM BAPICRMISUPROFILEAUX INTO @DATA(ld_find_obj_type).
 
"SELECT single TIME_ZONE FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_time_zone).
 
"SELECT single MAX_ROWS FROM BAPICRMISUPROFILEAUX INTO @DATA(ld_max_rows).
DATA(ld_max_rows) = 100.
 
"SELECT single DELETED FROM BAPICRMISUPROFILEAUX INTO @DATA(ld_deleted).
 
"SELECT single ARCHIVED FROM BAPICRMISUPROFILEAUX INTO @DATA(ld_archived).
 
"SELECT single FIND_PROFILE FROM BAPICRMISUPROFILEAUX INTO @DATA(ld_find_profile).
 
"SELECT single PROFTEXT FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_proftext).
 
"SELECT single DIVISION FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_division).
 
"SELECT single PROFTYPE FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_proftype).
 
"SELECT single PROFVALCAT FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_profvalcat).
 
"SELECT single INTSIZEID FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_intsizeid).
 
"SELECT single UNIT FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_unit).
 
"SELECT single DAY_OFFSET FROM BAPICRMISUPROFILEHEAD INTO @DATA(ld_day_offset).
 


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!