SAP Function Modules

GRAC_IDM_ROLE_DETAILS SAP Function module - Grac Role Details IDM service







GRAC_IDM_ROLE_DETAILS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name GRAC_IDM_ROLE_DETAILS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: GRAC_IDM_INBOUND
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM GRAC_IDM_ROLE_DETAILS - GRAC IDM ROLE DETAILS





CALL FUNCTION 'GRAC_IDM_ROLE_DETAILS' "Grac Role Details IDM service
  EXPORTING
    object_name =               " grac_string   Role Name
*   object_type =               " grac_string   Role Type
    landscape =                 " grac_string   Connector Group
*   language =                  " grac_string   Data Element of Type String
  IMPORTING
    object_attributes =         " grac_s_ws_rd_op_role_attribute  Structure for role detail web service attribute
    company =                   " grac_t_ws_rd_op_company  Role details API compnay details
    function =                  " grac_t_ws_rd_op_func  Role Details Webservice Function
    functional_area =           " grac_t_ws_rd_op_func_area  Role details API dnctional Area
    role_approvers =            " grac_t_ws_rd_op_role_approvers  Role details API role approver details
    systems =                   " grac_t_ws_rd_op_system  Role details API system details
    actions =                   " grac_t_ws_rd_op_role_action  Role details API Role action details
    violations =                " grac_t_ws_rd_op_violations  Role Details Api Violationin roles
    role_customer_field =       " grac_t_ws_rd_op_cust_fields  Role details Api Customer fields
    msg_return =                " grac_s_ws_rd_op_message  Message structure for web service
    .  "  GRAC_IDM_ROLE_DETAILS

ABAP code example for Function Module GRAC_IDM_ROLE_DETAILS





The ABAP code below is a full code listing to execute function module GRAC_IDM_ROLE_DETAILS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_object_attributes  TYPE GRAC_S_WS_RD_OP_ROLE_ATTRIBUTE ,
ld_company  TYPE GRAC_T_WS_RD_OP_COMPANY ,
ld_function  TYPE GRAC_T_WS_RD_OP_FUNC ,
ld_functional_area  TYPE GRAC_T_WS_RD_OP_FUNC_AREA ,
ld_role_approvers  TYPE GRAC_T_WS_RD_OP_ROLE_APPROVERS ,
ld_systems  TYPE GRAC_T_WS_RD_OP_SYSTEM ,
ld_actions  TYPE GRAC_T_WS_RD_OP_ROLE_ACTION ,
ld_violations  TYPE GRAC_T_WS_RD_OP_VIOLATIONS ,
ld_role_customer_field  TYPE GRAC_T_WS_RD_OP_CUST_FIELDS ,
ld_msg_return  TYPE GRAC_S_WS_RD_OP_MESSAGE .

DATA(ld_object_name) = 'Check type of data required'.
DATA(ld_object_type) = 'Check type of data required'.
DATA(ld_landscape) = 'Check type of data required'.
DATA(ld_language) = 'Check type of data required'. . CALL FUNCTION 'GRAC_IDM_ROLE_DETAILS' EXPORTING object_name = ld_object_name * object_type = ld_object_type landscape = ld_landscape * language = ld_language IMPORTING object_attributes = ld_object_attributes company = ld_company function = ld_function functional_area = ld_functional_area role_approvers = ld_role_approvers systems = ld_systems actions = ld_actions violations = ld_violations role_customer_field = ld_role_customer_field msg_return = ld_msg_return . " GRAC_IDM_ROLE_DETAILS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_object_attributes  TYPE GRAC_S_WS_RD_OP_ROLE_ATTRIBUTE ,
ld_object_name  TYPE GRAC_STRING ,
ld_company  TYPE GRAC_T_WS_RD_OP_COMPANY ,
ld_object_type  TYPE GRAC_STRING ,
ld_function  TYPE GRAC_T_WS_RD_OP_FUNC ,
ld_landscape  TYPE GRAC_STRING ,
ld_functional_area  TYPE GRAC_T_WS_RD_OP_FUNC_AREA ,
ld_language  TYPE GRAC_STRING ,
ld_role_approvers  TYPE GRAC_T_WS_RD_OP_ROLE_APPROVERS ,
ld_systems  TYPE GRAC_T_WS_RD_OP_SYSTEM ,
ld_actions  TYPE GRAC_T_WS_RD_OP_ROLE_ACTION ,
ld_violations  TYPE GRAC_T_WS_RD_OP_VIOLATIONS ,
ld_role_customer_field  TYPE GRAC_T_WS_RD_OP_CUST_FIELDS ,
ld_msg_return  TYPE GRAC_S_WS_RD_OP_MESSAGE .

ld_object_name = 'Check type of data required'.
ld_object_type = 'Check type of data required'.
ld_landscape = 'Check type of data required'.
ld_language = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name GRAC_IDM_ROLE_DETAILS or its description.