SAP CRP_SET_HANDLE Function Module for NOTRANSL: Lesen bzw. Generierung eines Handles für Zeitstrahl









CRP_SET_HANDLE is a standard crp set handle 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: Lesen bzw. Generierung eines Handles für Zeitstrahl 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 crp set handle FM, simply by entering the name CRP_SET_HANDLE into the relevant SAP transaction such as SE37 or SE38.

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



Function CRP_SET_HANDLE 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 'CRP_SET_HANDLE'"NOTRANSL: Lesen bzw. Generierung eines Handles für Zeitstrahl
EXPORTING
* I_KAPID = "Capacity ID
* I_ARBID = "Object ID of the resource
* I_TYPE = "Generic Type

IMPORTING
L_HANDLE = "UUID in Character Format

TABLES
* I_KAKO_TAB = "Capacity ID
* I_ARBID_TAB = "Client

EXCEPTIONS
NOT_QUALIFIED = 1 NO_WORKCENTER_FOUND = 2
.



IMPORTING Parameters details for CRP_SET_HANDLE

I_KAPID - Capacity ID

Data type: KAKO-KAPID
Optional: Yes
Call by Reference: Yes

I_ARBID - Object ID of the resource

Data type: CRHD-OBJID
Optional: Yes
Call by Reference: Yes

I_TYPE - Generic Type

Data type: C
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CRP_SET_HANDLE

L_HANDLE - UUID in Character Format

Data type: SYSUUID-C
Optional: No
Call by Reference: Yes

TABLES Parameters details for CRP_SET_HANDLE

I_KAKO_TAB - Capacity ID

Data type: CYSEL_OBJ
Optional: Yes
Call by Reference: Yes

I_ARBID_TAB - Client

Data type: CYSEL_OBJ
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NOT_QUALIFIED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_WORKCENTER_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CRP_SET_HANDLE 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_kapid  TYPE KAKO-KAPID, "   
lv_l_handle  TYPE SYSUUID-C, "   
lt_i_kako_tab  TYPE STANDARD TABLE OF CYSEL_OBJ, "   
lv_not_qualified  TYPE CYSEL_OBJ, "   
lv_i_arbid  TYPE CRHD-OBJID, "   
lt_i_arbid_tab  TYPE STANDARD TABLE OF CYSEL_OBJ, "   
lv_no_workcenter_found  TYPE CYSEL_OBJ, "   
lv_i_type  TYPE C. "   

  CALL FUNCTION 'CRP_SET_HANDLE'  "NOTRANSL: Lesen bzw. Generierung eines Handles für Zeitstrahl
    EXPORTING
         I_KAPID = lv_i_kapid
         I_ARBID = lv_i_arbid
         I_TYPE = lv_i_type
    IMPORTING
         L_HANDLE = lv_l_handle
    TABLES
         I_KAKO_TAB = lt_i_kako_tab
         I_ARBID_TAB = lt_i_arbid_tab
    EXCEPTIONS
        NOT_QUALIFIED = 1
        NO_WORKCENTER_FOUND = 2
. " CRP_SET_HANDLE




ABAP code using 7.40 inline data declarations to call FM CRP_SET_HANDLE

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 KAPID FROM KAKO INTO @DATA(ld_i_kapid).
 
"SELECT single C FROM SYSUUID INTO @DATA(ld_l_handle).
 
 
 
"SELECT single OBJID FROM CRHD INTO @DATA(ld_i_arbid).
 
 
 
 


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!