SAP Function Modules

SUSR_CRAUTH_TO_ROLE_LIST_ALV SAP Function module







SUSR_CRAUTH_TO_ROLE_LIST_ALV 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 SUSR_CRAUTH_TO_ROLE_LIST_ALV into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SUSD
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SUSR_CRAUTH_TO_ROLE_LIST_ALV - SUSR CRAUTH TO ROLE LIST ALV





CALL FUNCTION 'SUSR_CRAUTH_TO_ROLE_LIST_ALV' "
* EXPORTING
*   variant_name = SPACE        " usrvar-varname
*   id_alv_layout = SPACE       " disvariant-variant
*   id_alv_title = SPACE        " lvc_title
*   auth_chk = 'X'              " c
*   role_profile =              " agrpro_t
*   no_alv = SPACE              " c
*   crauth_roles =              " uscraut_agr_t
    .  "  SUSR_CRAUTH_TO_ROLE_LIST_ALV

ABAP code example for Function Module SUSR_CRAUTH_TO_ROLE_LIST_ALV





The ABAP code below is a full code listing to execute function module SUSR_CRAUTH_TO_ROLE_LIST_ALV 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).

 

SELECT single VARNAME
FROM USRVAR
INTO @DATA(ld_variant_name).


DATA(ld_id_alv_layout) = some text here
DATA(ld_id_alv_title) = 'Check type of data required'.
DATA(ld_auth_chk) = 'Check type of data required'.
DATA(ld_role_profile) = 'Check type of data required'.
DATA(ld_no_alv) = 'Check type of data required'.
DATA(ld_crauth_roles) = 'Check type of data required'. . CALL FUNCTION 'SUSR_CRAUTH_TO_ROLE_LIST_ALV' * EXPORTING * variant_name = ld_variant_name * id_alv_layout = ld_id_alv_layout * id_alv_title = ld_id_alv_title * auth_chk = ld_auth_chk * role_profile = ld_role_profile * no_alv = ld_no_alv * crauth_roles = ld_crauth_roles . " SUSR_CRAUTH_TO_ROLE_LIST_ALV
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_variant_name  TYPE USRVAR-VARNAME ,
ld_id_alv_layout  TYPE DISVARIANT-VARIANT ,
ld_id_alv_title  TYPE LVC_TITLE ,
ld_auth_chk  TYPE C ,
ld_role_profile  TYPE AGRPRO_T ,
ld_no_alv  TYPE C ,
ld_crauth_roles  TYPE USCRAUT_AGR_T .


SELECT single VARNAME
FROM USRVAR
INTO ld_variant_name.


ld_id_alv_layout = some text here
ld_id_alv_title = 'Check type of data required'.
ld_auth_chk = 'Check type of data required'.
ld_role_profile = 'Check type of data required'.
ld_no_alv = 'Check type of data required'.
ld_crauth_roles = '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 SUSR_CRAUTH_TO_ROLE_LIST_ALV or its description.