SAP GRAC_IDM_PROV_LOGS_SERVICES Function Module for Grac Provisioning Log services
GRAC_IDM_PROV_LOGS_SERVICES is a standard grac idm prov logs services SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Grac Provisioning Log services 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 grac idm prov logs services FM, simply by entering the name GRAC_IDM_PROV_LOGS_SERVICES into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRAC_IDM_INBOUND
Program Name: SAPLGRAC_IDM_INBOUND
Main Program: SAPLGRAC_IDM_INBOUND
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function GRAC_IDM_PROV_LOGS_SERVICES 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 'GRAC_IDM_PROV_LOGS_SERVICES'"Grac Provisioning Log services.
EXPORTING
* REQ_NUMBER = "Data Element of Type String
* USER_ID = "Data Element of Type String
* LANGUAGE = "Language
* CONNECTOR_ID = "Data Element of Type String
* PROV_ITEM = "Data Element of Type String
* PROV_ITEM_TYPE = "Data Element of Type String
* PROV_ACTION = "Data Element of Type String
* REQ_STATUS = "Data Element of Type String
* UPDATE_BY = "Data Element of Type String
* DATE_FROM = "Data Element of Type String
* DATE_TO = "Data Element of Type String
IMPORTING
PROVISION_LOGS = "Table type for Provisioning Logs
MSG_RETURN = "Message structure for web service
EXCEPTIONS
CX_GRAC_IDM_EXCEPTION = 1 CX_GRFN_EXCEPTION = 2
IMPORTING Parameters details for GRAC_IDM_PROV_LOGS_SERVICES
REQ_NUMBER - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
USER_ID - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
CONNECTOR_ID - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
PROV_ITEM - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
PROV_ITEM_TYPE - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
PROV_ACTION - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
REQ_STATUS - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE_BY - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
DATE_FROM - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
DATE_TO - Data Element of Type String
Data type: GRAC_STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GRAC_IDM_PROV_LOGS_SERVICES
PROVISION_LOGS - Table type for Provisioning Logs
Data type: GRAC_T_WS_PL_OP_PROV_LOGSOptional: No
Call by Reference: No ( called with pass by value option)
MSG_RETURN - Message structure for web service
Data type: GRAC_S_WS_API_MESSAGEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CX_GRAC_IDM_EXCEPTION - Static Checked Exception To be Handled by Calling Services
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CX_GRFN_EXCEPTION - Generic GRC API exception
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GRAC_IDM_PROV_LOGS_SERVICES 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_req_number | TYPE GRAC_STRING, " | |||
| lv_provision_logs | TYPE GRAC_T_WS_PL_OP_PROV_LOGS, " | |||
| lv_cx_grac_idm_exception | TYPE GRAC_T_WS_PL_OP_PROV_LOGS, " | |||
| lv_user_id | TYPE GRAC_STRING, " | |||
| lv_language | TYPE GRAC_STRING, " | |||
| lv_msg_return | TYPE GRAC_S_WS_API_MESSAGE, " | |||
| lv_connector_id | TYPE GRAC_STRING, " | |||
| lv_cx_grfn_exception | TYPE GRAC_STRING, " | |||
| lv_prov_item | TYPE GRAC_STRING, " | |||
| lv_prov_item_type | TYPE GRAC_STRING, " | |||
| lv_prov_action | TYPE GRAC_STRING, " | |||
| lv_req_status | TYPE GRAC_STRING, " | |||
| lv_update_by | TYPE GRAC_STRING, " | |||
| lv_date_from | TYPE GRAC_STRING, " | |||
| lv_date_to | TYPE GRAC_STRING. " |
|   CALL FUNCTION 'GRAC_IDM_PROV_LOGS_SERVICES' "Grac Provisioning Log services |
| EXPORTING | ||
| REQ_NUMBER | = lv_req_number | |
| USER_ID | = lv_user_id | |
| LANGUAGE | = lv_language | |
| CONNECTOR_ID | = lv_connector_id | |
| PROV_ITEM | = lv_prov_item | |
| PROV_ITEM_TYPE | = lv_prov_item_type | |
| PROV_ACTION | = lv_prov_action | |
| REQ_STATUS | = lv_req_status | |
| UPDATE_BY | = lv_update_by | |
| DATE_FROM | = lv_date_from | |
| DATE_TO | = lv_date_to | |
| IMPORTING | ||
| PROVISION_LOGS | = lv_provision_logs | |
| MSG_RETURN | = lv_msg_return | |
| EXCEPTIONS | ||
| CX_GRAC_IDM_EXCEPTION = 1 | ||
| CX_GRFN_EXCEPTION = 2 | ||
| . " GRAC_IDM_PROV_LOGS_SERVICES | ||
ABAP code using 7.40 inline data declarations to call FM GRAC_IDM_PROV_LOGS_SERVICES
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