SAP Function Modules

FVD_CHK_AUTHORITY_CHECK SAP Function module - Check authority (customer specific)







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

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


Pattern for FM FVD_CHK_AUTHORITY_CHECK - FVD CHK AUTHORITY CHECK





CALL FUNCTION 'FVD_CHK_AUTHORITY_CHECK' "Check authority (customer specific)
  EXPORTING
*   i_fvd_chk =                 " if_ex_fvd_chk  Business add-in interface IF_EX_FVD_CHK
    i_svorgang =                " vdbeki-svorgang  Business Operation (Activity)
*   i_bukrs =                   " vdarl-bukrs   Company Code
*   i_gsart =                   " vdarl-gsart   Product Type
*   i_ranl =                    " vdarl-ranl    Contract Number
*   i_begru =                   " vdarl-begru   Authorization Group
*   i_styp =                    " rmf67pf-styp
  IMPORTING
    e_fvd_chk =                 " if_ex_fvd_chk  Business add-in interface IF_EX_FVD_CHK
  CHANGING
    c_flg_missing_authority = SPACE  " xfeld    Checkbox
    c_flg_suppress_standard_check = SPACE  " xfeld  Checkbox
*   c_tab_message =             " bal_t_msg     Application Log: Table with Messages
    .  "  FVD_CHK_AUTHORITY_CHECK

ABAP code example for Function Module FVD_CHK_AUTHORITY_CHECK





The ABAP code below is a full code listing to execute function module FVD_CHK_AUTHORITY_CHECK 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_e_fvd_chk  TYPE IF_EX_FVD_CHK .

DATA(ld_c_flg_missing_authority) = 'Check type of data required'.
DATA(ld_c_flg_suppress_standard_check) = 'Check type of data required'.
DATA(ld_c_tab_message) = 'Check type of data required'.
DATA(ld_i_fvd_chk) = 'Check type of data required'.

SELECT single SVORGANG
FROM VDBEKI
INTO @DATA(ld_i_svorgang).


SELECT single BUKRS
FROM VDARL
INTO @DATA(ld_i_bukrs).


SELECT single GSART
FROM VDARL
INTO @DATA(ld_i_gsart).


SELECT single RANL
FROM VDARL
INTO @DATA(ld_i_ranl).


SELECT single BEGRU
FROM VDARL
INTO @DATA(ld_i_begru).


DATA(ld_i_styp) = some text here . CALL FUNCTION 'FVD_CHK_AUTHORITY_CHECK' EXPORTING * i_fvd_chk = ld_i_fvd_chk i_svorgang = ld_i_svorgang * i_bukrs = ld_i_bukrs * i_gsart = ld_i_gsart * i_ranl = ld_i_ranl * i_begru = ld_i_begru * i_styp = ld_i_styp IMPORTING e_fvd_chk = ld_e_fvd_chk CHANGING c_flg_missing_authority = ld_c_flg_missing_authority c_flg_suppress_standard_check = ld_c_flg_suppress_standard_check * c_tab_message = ld_c_tab_message . " FVD_CHK_AUTHORITY_CHECK
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_c_flg_missing_authority  TYPE XFELD ,
ld_e_fvd_chk  TYPE IF_EX_FVD_CHK ,
ld_i_fvd_chk  TYPE IF_EX_FVD_CHK ,
ld_c_flg_suppress_standard_check  TYPE XFELD ,
ld_i_svorgang  TYPE VDBEKI-SVORGANG ,
ld_c_tab_message  TYPE BAL_T_MSG ,
ld_i_bukrs  TYPE VDARL-BUKRS ,
ld_i_gsart  TYPE VDARL-GSART ,
ld_i_ranl  TYPE VDARL-RANL ,
ld_i_begru  TYPE VDARL-BEGRU ,
ld_i_styp  TYPE RMF67PF-STYP .

ld_c_flg_missing_authority = 'Check type of data required'.
ld_i_fvd_chk = 'Check type of data required'.
ld_c_flg_suppress_standard_check = 'Check type of data required'.

SELECT single SVORGANG
FROM VDBEKI
INTO ld_i_svorgang.

ld_c_tab_message = 'Check type of data required'.

SELECT single BUKRS
FROM VDARL
INTO ld_i_bukrs.


SELECT single GSART
FROM VDARL
INTO ld_i_gsart.


SELECT single RANL
FROM VDARL
INTO ld_i_ranl.


SELECT single BEGRU
FROM VDARL
INTO ld_i_begru.


ld_i_styp = some text here

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 FVD_CHK_AUTHORITY_CHECK or its description.