SAP Function Modules

HRIQ_HS_STATUS_ACT_READ_ALL SAP Function module - CM: Read All Active Statuses for Student/Studies Inc. Texts







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

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


Pattern for FM HRIQ_HS_STATUS_ACT_READ_ALL - HRIQ HS STATUS ACT READ ALL





CALL FUNCTION 'HRIQ_HS_STATUS_ACT_READ_ALL' "CM: Read All Active Statuses for Student/Studies Inc. Texts
  EXPORTING
    iv_st_objid =               " piqst_objid   Object ID of Student
*   iv_plvar =                  " plvar         Plan Version
*   iv_begda = '19000101'       " begda         Valid-From Date
*   iv_endda = '99991231'       " endda         Valid-To Date
*   iv_langu =                  " spras         Language Key
*   iv_readtext = ' '           " piqflag       Indicator
  IMPORTING
    et_statust =                " piqhs_statind_t  Status
    et_status =                 " piqhs_stat_t  Table Type for Status Interface
  EXCEPTIONS
    NOTHING_FOUND = 1           "               No Status Indicators Exist
    .  "  HRIQ_HS_STATUS_ACT_READ_ALL

ABAP code example for Function Module HRIQ_HS_STATUS_ACT_READ_ALL





The ABAP code below is a full code listing to execute function module HRIQ_HS_STATUS_ACT_READ_ALL 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_et_statust  TYPE PIQHS_STATIND_T ,
ld_et_status  TYPE PIQHS_STAT_T .

DATA(ld_iv_st_objid) = 'Check type of data required'.
DATA(ld_iv_plvar) = 'Check type of data required'.
DATA(ld_iv_begda) = 'Check type of data required'.
DATA(ld_iv_endda) = 'Check type of data required'.
DATA(ld_iv_langu) = 'Check type of data required'.
DATA(ld_iv_readtext) = 'Check type of data required'. . CALL FUNCTION 'HRIQ_HS_STATUS_ACT_READ_ALL' EXPORTING iv_st_objid = ld_iv_st_objid * iv_plvar = ld_iv_plvar * iv_begda = ld_iv_begda * iv_endda = ld_iv_endda * iv_langu = ld_iv_langu * iv_readtext = ld_iv_readtext IMPORTING et_statust = ld_et_statust et_status = ld_et_status EXCEPTIONS NOTHING_FOUND = 1 . " HRIQ_HS_STATUS_ACT_READ_ALL
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_et_statust  TYPE PIQHS_STATIND_T ,
ld_iv_st_objid  TYPE PIQST_OBJID ,
ld_et_status  TYPE PIQHS_STAT_T ,
ld_iv_plvar  TYPE PLVAR ,
ld_iv_begda  TYPE BEGDA ,
ld_iv_endda  TYPE ENDDA ,
ld_iv_langu  TYPE SPRAS ,
ld_iv_readtext  TYPE PIQFLAG .

ld_iv_st_objid = 'Check type of data required'.
ld_iv_plvar = 'Check type of data required'.
ld_iv_begda = 'Check type of data required'.
ld_iv_endda = 'Check type of data required'.
ld_iv_langu = 'Check type of data required'.
ld_iv_readtext = '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 HRIQ_HS_STATUS_ACT_READ_ALL or its description.