SAP Function Modules

HR_E_GET_TIPO_MODALIDAD SAP Function module







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

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


Pattern for FM HR_E_GET_TIPO_MODALIDAD - HR E GET TIPO MODALIDAD





CALL FUNCTION 'HR_E_GET_TIPO_MODALIDAD' "
  EXPORTING
    idcon =                     " t5e60-idcon
    werks =                     " t5e60-werks
    btrtl =                     " t5e60-btrtl
    trfar =                     " t5e60-trfar
    trfgb =                     " t5e60-trfar
    date =                      " t5e60-begda
  IMPORTING
    modal =                     " t5e60-modal
  EXCEPTIONS
    NO_ENTRY_FOUND = 1          "
    .  "  HR_E_GET_TIPO_MODALIDAD

ABAP code example for Function Module HR_E_GET_TIPO_MODALIDAD





The ABAP code below is a full code listing to execute function module HR_E_GET_TIPO_MODALIDAD 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_modal  TYPE T5E60-MODAL .


SELECT single IDCON
FROM T5E60
INTO @DATA(ld_idcon).


SELECT single WERKS
FROM T5E60
INTO @DATA(ld_werks).


SELECT single BTRTL
FROM T5E60
INTO @DATA(ld_btrtl).


SELECT single TRFAR
FROM T5E60
INTO @DATA(ld_trfar).


SELECT single TRFAR
FROM T5E60
INTO @DATA(ld_trfgb).


SELECT single BEGDA
FROM T5E60
INTO @DATA(ld_date).
. CALL FUNCTION 'HR_E_GET_TIPO_MODALIDAD' EXPORTING idcon = ld_idcon werks = ld_werks btrtl = ld_btrtl trfar = ld_trfar trfgb = ld_trfgb date = ld_date IMPORTING modal = ld_modal EXCEPTIONS NO_ENTRY_FOUND = 1 . " HR_E_GET_TIPO_MODALIDAD
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_modal  TYPE T5E60-MODAL ,
ld_idcon  TYPE T5E60-IDCON ,
ld_werks  TYPE T5E60-WERKS ,
ld_btrtl  TYPE T5E60-BTRTL ,
ld_trfar  TYPE T5E60-TRFAR ,
ld_trfgb  TYPE T5E60-TRFAR ,
ld_date  TYPE T5E60-BEGDA .


SELECT single IDCON
FROM T5E60
INTO ld_idcon.


SELECT single WERKS
FROM T5E60
INTO ld_werks.


SELECT single BTRTL
FROM T5E60
INTO ld_btrtl.


SELECT single TRFAR
FROM T5E60
INTO ld_trfar.


SELECT single TRFAR
FROM T5E60
INTO ld_trfgb.


SELECT single BEGDA
FROM T5E60
INTO ld_date.

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