SAP Function Modules

FM_AUTH_CHECK_HHM SAP Function module







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

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


Pattern for FM FM_AUTH_CHECK_HHM - FM AUTH CHECK HHM





CALL FUNCTION 'FM_AUTH_CHECK_HHM' "
  EXPORTING
    i_actvt =                   " tact-actvt    Activity
*   i_actvt_a = SPACE           " tact-actvt
    i_fikrs =                   " fm01-fikrs    Financial Management Area
*   i_versn = SPACE             " bpja-versn    Version
*   i_authgrp_fictr =           " fmfctr-augrp  Authorization Group of the Funds Center
*   i_authgrp_fipex =           " fmpg-augrp
*   i_authgrp_fonds =           " fmfincode-augrp  Authorization Group of the Fund
*   i_fictr =                   " fmfctr-fictr  Funds Center
*   i_fipex =                   " fmci-fipex    Commitment Item
*   i_fonds =                   " fmfincode-fincode
*   i_flg_fonds_space = SPACE   " fmdy-xfeld
*   i_msgty = SPACE             " sy-msgty
*   i_fica_cct = SPACE          " fmdy-xfeld
*   i_fica_wct = SPACE          " fmdy-xfeld
*   i_authgrp_budper =          " fm_bpd_authgrf
*   i_budget_period =           " fm_budget_period
  IMPORTING
    e_flg_auth =                " fmdy-xfeld
    e_flg_auth_a =              " fmdy-xfeld
    .  "  FM_AUTH_CHECK_HHM

ABAP code example for Function Module FM_AUTH_CHECK_HHM





The ABAP code below is a full code listing to execute function module FM_AUTH_CHECK_HHM 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_flg_auth  TYPE FMDY-XFELD ,
ld_e_flg_auth_a  TYPE FMDY-XFELD .


SELECT single ACTVT
FROM TACT
INTO @DATA(ld_i_actvt).


SELECT single ACTVT
FROM TACT
INTO @DATA(ld_i_actvt_a).


SELECT single FIKRS
FROM FM01
INTO @DATA(ld_i_fikrs).


SELECT single VERSN
FROM BPJA
INTO @DATA(ld_i_versn).


SELECT single AUGRP
FROM FMFCTR
INTO @DATA(ld_i_authgrp_fictr).


SELECT single AUGRP
FROM FMPG
INTO @DATA(ld_i_authgrp_fipex).


SELECT single AUGRP
FROM FMFINCODE
INTO @DATA(ld_i_authgrp_fonds).


SELECT single FICTR
FROM FMFCTR
INTO @DATA(ld_i_fictr).


SELECT single FIPEX
FROM FMCI
INTO @DATA(ld_i_fipex).


SELECT single FINCODE
FROM FMFINCODE
INTO @DATA(ld_i_fonds).


DATA(ld_i_flg_fonds_space) = some text here
DATA(ld_i_msgty) = 'some text here'.

DATA(ld_i_fica_cct) = some text here

DATA(ld_i_fica_wct) = some text here
DATA(ld_i_authgrp_budper) = 'some text here'.
DATA(ld_i_budget_period) = 'some text here'. . CALL FUNCTION 'FM_AUTH_CHECK_HHM' EXPORTING i_actvt = ld_i_actvt * i_actvt_a = ld_i_actvt_a i_fikrs = ld_i_fikrs * i_versn = ld_i_versn * i_authgrp_fictr = ld_i_authgrp_fictr * i_authgrp_fipex = ld_i_authgrp_fipex * i_authgrp_fonds = ld_i_authgrp_fonds * i_fictr = ld_i_fictr * i_fipex = ld_i_fipex * i_fonds = ld_i_fonds * i_flg_fonds_space = ld_i_flg_fonds_space * i_msgty = ld_i_msgty * i_fica_cct = ld_i_fica_cct * i_fica_wct = ld_i_fica_wct * i_authgrp_budper = ld_i_authgrp_budper * i_budget_period = ld_i_budget_period IMPORTING e_flg_auth = ld_e_flg_auth e_flg_auth_a = ld_e_flg_auth_a . " FM_AUTH_CHECK_HHM
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_e_flg_auth  TYPE FMDY-XFELD ,
ld_i_actvt  TYPE TACT-ACTVT ,
ld_e_flg_auth_a  TYPE FMDY-XFELD ,
ld_i_actvt_a  TYPE TACT-ACTVT ,
ld_i_fikrs  TYPE FM01-FIKRS ,
ld_i_versn  TYPE BPJA-VERSN ,
ld_i_authgrp_fictr  TYPE FMFCTR-AUGRP ,
ld_i_authgrp_fipex  TYPE FMPG-AUGRP ,
ld_i_authgrp_fonds  TYPE FMFINCODE-AUGRP ,
ld_i_fictr  TYPE FMFCTR-FICTR ,
ld_i_fipex  TYPE FMCI-FIPEX ,
ld_i_fonds  TYPE FMFINCODE-FINCODE ,
ld_i_flg_fonds_space  TYPE FMDY-XFELD ,
ld_i_msgty  TYPE SY-MSGTY ,
ld_i_fica_cct  TYPE FMDY-XFELD ,
ld_i_fica_wct  TYPE FMDY-XFELD ,
ld_i_authgrp_budper  TYPE FM_BPD_AUTHGRF ,
ld_i_budget_period  TYPE FM_BUDGET_PERIOD .


SELECT single ACTVT
FROM TACT
INTO ld_i_actvt.


SELECT single ACTVT
FROM TACT
INTO ld_i_actvt_a.


SELECT single FIKRS
FROM FM01
INTO ld_i_fikrs.


SELECT single VERSN
FROM BPJA
INTO ld_i_versn.


SELECT single AUGRP
FROM FMFCTR
INTO ld_i_authgrp_fictr.


SELECT single AUGRP
FROM FMPG
INTO ld_i_authgrp_fipex.


SELECT single AUGRP
FROM FMFINCODE
INTO ld_i_authgrp_fonds.


SELECT single FICTR
FROM FMFCTR
INTO ld_i_fictr.


SELECT single FIPEX
FROM FMCI
INTO ld_i_fipex.


SELECT single FINCODE
FROM FMFINCODE
INTO ld_i_fonds.


ld_i_flg_fonds_space = some text here
ld_i_msgty = 'some text here'.

ld_i_fica_cct = some text here

ld_i_fica_wct = some text here
ld_i_authgrp_budper = 'some text here'.
ld_i_budget_period = '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 FM_AUTH_CHECK_HHM or its description.