SAP Function Modules

HRHAP_C_VB_READ SAP Function module







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

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


Pattern for FM HRHAP_C_VB_READ - HRHAP C VB READ





CALL FUNCTION 'HRHAP_C_VB_READ' "
  EXPORTING
    plvar =                     " plvar         Plan Version
    objid =                     " hrobjid       Object ID
*   langu = SY-LANGU            " langu         Language Key
  IMPORTING
    begda =                     " begdatum      Start Date
    endda =                     " enddatum      End Date
    istat =                     " istat_d       Planning Status
    histo =                     " histo         Historical Record Flag
    stext =                     " stext         Object Name
    s_langu =                   " hap_s_object_langu  Languages for Object and descriptions
    t_pt1002_s =                " hap_t_pt1002  Object Description - Standard
    t_pt1002_w =                " hap_t_pt1002  Object Description - Web
    t_pt1048 =                  " hap_t_pt1048  Proficiency Description
    s_hri5020 =                 " hri5020       Appraisal Element Category Assignment
    s_hri5022 =                 " hap_s_hri5022_ext  Appraisal Element Column and Cell Definition (Extended)
    t_pt5022 =                  " hap_t_pt5022  Appraisal Cell Definition
    s_hri5024 =                 " hri5024
    t_pt5024 =                  " hap_t_pt5024  Appraisal Element Role Assignment
    s_return =                  " bal_s_msg     Return Parameter
    .  "  HRHAP_C_VB_READ

ABAP code example for Function Module HRHAP_C_VB_READ





The ABAP code below is a full code listing to execute function module HRHAP_C_VB_READ 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_begda  TYPE BEGDATUM ,
ld_endda  TYPE ENDDATUM ,
ld_istat  TYPE ISTAT_D ,
ld_histo  TYPE HISTO ,
ld_stext  TYPE STEXT ,
ld_s_langu  TYPE HAP_S_OBJECT_LANGU ,
ld_t_pt1002_s  TYPE HAP_T_PT1002 ,
ld_t_pt1002_w  TYPE HAP_T_PT1002 ,
ld_t_pt1048  TYPE HAP_T_PT1048 ,
ld_s_hri5020  TYPE HRI5020 ,
ld_s_hri5022  TYPE HAP_S_HRI5022_EXT ,
ld_t_pt5022  TYPE HAP_T_PT5022 ,
ld_s_hri5024  TYPE HRI5024 ,
ld_t_pt5024  TYPE HAP_T_PT5024 ,
ld_s_return  TYPE BAL_S_MSG .

DATA(ld_plvar) = 'Check type of data required'.
DATA(ld_objid) = 'Check type of data required'.
DATA(ld_langu) = 'Check type of data required'. . CALL FUNCTION 'HRHAP_C_VB_READ' EXPORTING plvar = ld_plvar objid = ld_objid * langu = ld_langu IMPORTING begda = ld_begda endda = ld_endda istat = ld_istat histo = ld_histo stext = ld_stext s_langu = ld_s_langu t_pt1002_s = ld_t_pt1002_s t_pt1002_w = ld_t_pt1002_w t_pt1048 = ld_t_pt1048 s_hri5020 = ld_s_hri5020 s_hri5022 = ld_s_hri5022 t_pt5022 = ld_t_pt5022 s_hri5024 = ld_s_hri5024 t_pt5024 = ld_t_pt5024 s_return = ld_s_return . " HRHAP_C_VB_READ
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_begda  TYPE BEGDATUM ,
ld_plvar  TYPE PLVAR ,
ld_endda  TYPE ENDDATUM ,
ld_objid  TYPE HROBJID ,
ld_istat  TYPE ISTAT_D ,
ld_langu  TYPE LANGU ,
ld_histo  TYPE HISTO ,
ld_stext  TYPE STEXT ,
ld_s_langu  TYPE HAP_S_OBJECT_LANGU ,
ld_t_pt1002_s  TYPE HAP_T_PT1002 ,
ld_t_pt1002_w  TYPE HAP_T_PT1002 ,
ld_t_pt1048  TYPE HAP_T_PT1048 ,
ld_s_hri5020  TYPE HRI5020 ,
ld_s_hri5022  TYPE HAP_S_HRI5022_EXT ,
ld_t_pt5022  TYPE HAP_T_PT5022 ,
ld_s_hri5024  TYPE HRI5024 ,
ld_t_pt5024  TYPE HAP_T_PT5024 ,
ld_s_return  TYPE BAL_S_MSG .

ld_plvar = 'Check type of data required'.
ld_objid = 'Check type of data required'.
ld_langu = '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 HRHAP_C_VB_READ or its description.