SAP HRSP_DET_AVAIL_ABREV Function Module for
HRSP_DET_AVAIL_ABREV is a standard hrsp det avail abrev SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hrsp det avail abrev FM, simply by entering the name HRSP_DET_AVAIL_ABREV into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHEI
Program Name: SAPLRHEI
Main Program: SAPLRHEI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HRSP_DET_AVAIL_ABREV pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HRSP_DET_AVAIL_ABREV'".
EXPORTING
STNBY = "
TPROG = "
VARIA = "
BEGUZ = "
ENDUZ = "
DIENSTGR = "
* READ_SHIFT_ABBREVIATIONS = 'X' "
PERNR = "
DATUM = "
IMPORTING
ABREV = "
TEXT = "
RETURN_CODE = "
E_BEGUZ = "
E_ENDUZ = "
TABLES
I_T77ED = "
EXCEPTIONS
TABLE_EMPTY = 1
IMPORTING Parameters details for HRSP_DET_AVAIL_ABREV
STNBY -
Data type: P2004-STNBYOptional: No
Call by Reference: Yes
TPROG -
Data type: P2004-TPROGOptional: No
Call by Reference: Yes
VARIA -
Data type: P2004-VARIAOptional: No
Call by Reference: Yes
BEGUZ -
Data type: P2004-BEGUZOptional: No
Call by Reference: Yes
ENDUZ -
Data type: P2004-ENDUZOptional: No
Call by Reference: Yes
DIENSTGR -
Data type: T77ED-DIENSTGROptional: No
Call by Reference: Yes
READ_SHIFT_ABBREVIATIONS -
Data type: BOOLE_DDefault: 'X'
Optional: No
Call by Reference: Yes
PERNR -
Data type: PERNR_DOptional: No
Call by Reference: Yes
DATUM -
Data type: BEGDAOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HRSP_DET_AVAIL_ABREV
ABREV -
Data type: T77ED-DIENSTEOptional: No
Call by Reference: Yes
TEXT -
Data type: T77ET-DIENST_TXTOptional: No
Call by Reference: Yes
RETURN_CODE -
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
E_BEGUZ -
Data type: T77ED-DIENST_VONOptional: No
Call by Reference: Yes
E_ENDUZ -
Data type: T77ED-DIENST_BISOptional: No
Call by Reference: Yes
TABLES Parameters details for HRSP_DET_AVAIL_ABREV
I_T77ED -
Data type: T77ED_MOREOptional: No
Call by Reference: Yes
EXCEPTIONS details
TABLE_EMPTY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRSP_DET_AVAIL_ABREV Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_abrev | TYPE T77ED-DIENSTE, " | |||
lv_stnby | TYPE P2004-STNBY, " | |||
lt_i_t77ed | TYPE STANDARD TABLE OF T77ED_MORE, " | |||
lv_table_empty | TYPE T77ED_MORE, " | |||
lv_text | TYPE T77ET-DIENST_TXT, " | |||
lv_tprog | TYPE P2004-TPROG, " | |||
lv_varia | TYPE P2004-VARIA, " | |||
lv_return_code | TYPE SY-SUBRC, " | |||
lv_beguz | TYPE P2004-BEGUZ, " | |||
lv_e_beguz | TYPE T77ED-DIENST_VON, " | |||
lv_enduz | TYPE P2004-ENDUZ, " | |||
lv_e_enduz | TYPE T77ED-DIENST_BIS, " | |||
lv_dienstgr | TYPE T77ED-DIENSTGR, " | |||
lv_read_shift_abbreviations | TYPE BOOLE_D, " 'X' | |||
lv_pernr | TYPE PERNR_D, " | |||
lv_datum | TYPE BEGDA. " |
  CALL FUNCTION 'HRSP_DET_AVAIL_ABREV' " |
EXPORTING | ||
STNBY | = lv_stnby | |
TPROG | = lv_tprog | |
VARIA | = lv_varia | |
BEGUZ | = lv_beguz | |
ENDUZ | = lv_enduz | |
DIENSTGR | = lv_dienstgr | |
READ_SHIFT_ABBREVIATIONS | = lv_read_shift_abbreviations | |
PERNR | = lv_pernr | |
DATUM | = lv_datum | |
IMPORTING | ||
ABREV | = lv_abrev | |
TEXT | = lv_text | |
RETURN_CODE | = lv_return_code | |
E_BEGUZ | = lv_e_beguz | |
E_ENDUZ | = lv_e_enduz | |
TABLES | ||
I_T77ED | = lt_i_t77ed | |
EXCEPTIONS | ||
TABLE_EMPTY = 1 | ||
. " HRSP_DET_AVAIL_ABREV |
ABAP code using 7.40 inline data declarations to call FM HRSP_DET_AVAIL_ABREV
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single DIENSTE FROM T77ED INTO @DATA(ld_abrev). | ||||
"SELECT single STNBY FROM P2004 INTO @DATA(ld_stnby). | ||||
"SELECT single DIENST_TXT FROM T77ET INTO @DATA(ld_text). | ||||
"SELECT single TPROG FROM P2004 INTO @DATA(ld_tprog). | ||||
"SELECT single VARIA FROM P2004 INTO @DATA(ld_varia). | ||||
"SELECT single SUBRC FROM SY INTO @DATA(ld_return_code). | ||||
"SELECT single BEGUZ FROM P2004 INTO @DATA(ld_beguz). | ||||
"SELECT single DIENST_VON FROM T77ED INTO @DATA(ld_e_beguz). | ||||
"SELECT single ENDUZ FROM P2004 INTO @DATA(ld_enduz). | ||||
"SELECT single DIENST_BIS FROM T77ED INTO @DATA(ld_e_enduz). | ||||
"SELECT single DIENSTGR FROM T77ED INTO @DATA(ld_dienstgr). | ||||
DATA(ld_read_shift_abbreviations) | = 'X'. | |||
Search for further information about these or an SAP related objects