RP_STATUS_CONSISTENCY_CHECK 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 RP_STATUS_CONSISTENCY_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RPAP
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RP_STATUS_CONSISTENCY_CHECK' "HR: Check consistency of "vacancy assignment status" and "overall status"
EXPORTING
begda = " p4002-begda
endda = " p4002-endda
apstv = " p4002-apstv
* pernr_int_applicant = " pernr-pernr
* aplno = " rpapp-aplno
IMPORTING
incon_begda = " p4000-begda
incon_endda = " p4000-endda
incon_apsta = " p4000-apsta
subrc = " sy-subrc
* TABLES
* x4000 = " p4000
EXCEPTIONS
NO_APLNO_AVAILABLE = 1 "
NO_VALID_I4000 = 2 "
. " RP_STATUS_CONSISTENCY_CHECK
The ABAP code below is a full code listing to execute function module RP_STATUS_CONSISTENCY_CHECK 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_incon_begda | TYPE P4000-BEGDA , |
| ld_incon_endda | TYPE P4000-ENDDA , |
| ld_incon_apsta | TYPE P4000-APSTA , |
| ld_subrc | TYPE SY-SUBRC , |
| it_x4000 | TYPE STANDARD TABLE OF P4000,"TABLES PARAM |
| wa_x4000 | LIKE LINE OF it_x4000 . |
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_incon_begda | TYPE P4000-BEGDA , |
| ld_begda | TYPE P4002-BEGDA , |
| it_x4000 | TYPE STANDARD TABLE OF P4000 , |
| wa_x4000 | LIKE LINE OF it_x4000, |
| ld_incon_endda | TYPE P4000-ENDDA , |
| ld_endda | TYPE P4002-ENDDA , |
| ld_incon_apsta | TYPE P4000-APSTA , |
| ld_apstv | TYPE P4002-APSTV , |
| ld_subrc | TYPE SY-SUBRC , |
| ld_pernr_int_applicant | TYPE PERNR-PERNR , |
| ld_aplno | TYPE RPAPP-APLNO . |
Check if vacancy assignment status is compatible with applicant's
overall status.
...See here for full SAP fm documentation
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 RP_STATUS_CONSISTENCY_CHECK or its description.
RP_STATUS_CONSISTENCY_CHECK - HR: Check consistency of "vacancy assignment status" and "overall stat RP_SPLIT_TCRT - Split TCRT into TCRTA and TCRTB RP_SET_RECALCULATION - RP_SET_PRDAT_PRTEV - HR: Set PRDAT and PRTEV in Payroll Status infotype (0003) RP_SET_NAME_FORMAT - Set Name Format from T522F RP_SET_INTERVAL_I -