SAP Function Modules

RP_STATUS_CONSISTENCY_CHECK SAP Function module - HR: Check consistency of "vacancy assignment status" and "overall status







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
Normal function module settings


Pattern for FM RP_STATUS_CONSISTENCY_CHECK - RP STATUS CONSISTENCY CHECK





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

ABAP code example for Function Module 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).

DATA:
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 .


DATA(ld_begda) = 20210129

DATA(ld_endda) = 20210129

DATA(ld_apstv) = some text here

DATA(ld_pernr_int_applicant) = Check type of data required

DATA(ld_aplno) = Check type of data required

"populate fields of struture and append to itab
append wa_x4000 to it_x4000. . CALL FUNCTION 'RP_STATUS_CONSISTENCY_CHECK' EXPORTING begda = ld_begda endda = ld_endda apstv = ld_apstv * pernr_int_applicant = ld_pernr_int_applicant * aplno = ld_aplno IMPORTING incon_begda = ld_incon_begda incon_endda = ld_incon_endda incon_apsta = ld_incon_apsta subrc = ld_subrc * TABLES * x4000 = it_x4000 EXCEPTIONS NO_APLNO_AVAILABLE = 1 NO_VALID_I4000 = 2 . " RP_STATUS_CONSISTENCY_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_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 .


ld_begda = 20210129

"populate fields of struture and append to itab
append wa_x4000 to it_x4000.

ld_endda = 20210129

ld_apstv = some text here

ld_pernr_int_applicant = Check type of data required

ld_aplno = Check type of data required

SAP Documentation for FM RP_STATUS_CONSISTENCY_CHECK


Check if vacancy assignment status is compatible with applicant's overall status. ...See here for full SAP fm documentation













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 RP_STATUS_CONSISTENCY_CHECK or its description.