RH_DETERMINE_VACANCY 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 RH_DETERMINE_VACANCY into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RHOV
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'RH_DETERMINE_VACANCY' "
EXPORTING
vac_begda = " plog-begda Start date of selection period
vac_endda = " plog-endda End date of selection period
vac_istat = " plog-istat Status of position
vac_objec_begda = " plog-begda Start date of position
vac_objec_endda = " plog-endda
vac_objid = " plog-objid Object ID of position
vac_otype = " plog-otype Object type of position
vac_plvar = " plog-plvar Plan version of position
* vac_switch = 'X' " plog-histo Flag for parameter HOLDER_ENDDA
IMPORTING
free_begda = " plog-begda
holder_endda = " plog-endda Date up to which position is occupied
vacancy_begda = " plog-begda Start date of vacancy
vacancy_endda = " plog-endda
vac_subrc = " sy-subrc Return code
vac_status = " p1007-status
TABLES
vac_p1001 = " p1001
vac_p1007 = " p1007
. " RH_DETERMINE_VACANCY
The ABAP code below is a full code listing to execute function module RH_DETERMINE_VACANCY 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).
| ld_free_begda | TYPE PLOG-BEGDA , |
| ld_holder_endda | TYPE PLOG-ENDDA , |
| ld_vacancy_begda | TYPE PLOG-BEGDA , |
| ld_vacancy_endda | TYPE PLOG-ENDDA , |
| ld_vac_subrc | TYPE SY-SUBRC , |
| ld_vac_status | TYPE P1007-STATUS , |
| it_vac_p1001 | TYPE STANDARD TABLE OF P1001,"TABLES PARAM |
| wa_vac_p1001 | LIKE LINE OF it_vac_p1001 , |
| it_vac_p1007 | TYPE STANDARD TABLE OF P1007,"TABLES PARAM |
| wa_vac_p1007 | LIKE LINE OF it_vac_p1007 . |
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_free_begda | TYPE PLOG-BEGDA , |
| ld_vac_begda | TYPE PLOG-BEGDA , |
| it_vac_p1001 | TYPE STANDARD TABLE OF P1001 , |
| wa_vac_p1001 | LIKE LINE OF it_vac_p1001, |
| ld_holder_endda | TYPE PLOG-ENDDA , |
| ld_vac_endda | TYPE PLOG-ENDDA , |
| it_vac_p1007 | TYPE STANDARD TABLE OF P1007 , |
| wa_vac_p1007 | LIKE LINE OF it_vac_p1007, |
| ld_vacancy_begda | TYPE PLOG-BEGDA , |
| ld_vac_istat | TYPE PLOG-ISTAT , |
| ld_vacancy_endda | TYPE PLOG-ENDDA , |
| ld_vac_objec_begda | TYPE PLOG-BEGDA , |
| ld_vac_subrc | TYPE SY-SUBRC , |
| ld_vac_objec_endda | TYPE PLOG-ENDDA , |
| ld_vac_status | TYPE P1007-STATUS , |
| ld_vac_objid | TYPE PLOG-OBJID , |
| ld_vac_otype | TYPE PLOG-OTYPE , |
| ld_vac_plvar | TYPE PLOG-PLVAR , |
| ld_vac_switch | TYPE PLOG-HISTO . |
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 RH_DETERMINE_VACANCY or its description.