SAP BAPI_APPLICANT_GETSTATUS Function Module for Determine applicant status









BAPI_APPLICANT_GETSTATUS is a standard bapi applicant getstatus SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine applicant status processing and below is the pattern details for this FM, 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 bapi applicant getstatus FM, simply by entering the name BAPI_APPLICANT_GETSTATUS into the relevant SAP transaction such as SE37 or SE38.

Function Group: APPL
Program Name: SAPLAPPL
Main Program:
Appliation area: H
Release date: 07-Aug-1997
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_APPLICANT_GETSTATUS 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 'BAPI_APPLICANT_GETSTATUS'"Determine applicant status
EXPORTING
APPLICANTNUMBER = "Applicant number

IMPORTING
RETURN = "Structure for return code
STATUS = "Overall status
APP_STATUS = "Status text
F_O_A_ATT = "Form of address
NAME = "Applicant name

TABLES
VACANCY_STATUS = "Status of vacancy assignments
.



IMPORTING Parameters details for BAPI_APPLICANT_GETSTATUS

APPLICANTNUMBER - Applicant number

Data type: BAPIAPPL-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_APPLICANT_GETSTATUS

RETURN - Structure for return code

Data type: BAPIRETURN
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS - Overall status

Data type: BAPIAPSTA-APSTA
Optional: No
Call by Reference: No ( called with pass by value option)

APP_STATUS - Status text

Data type: BAPIAPSTA-STATX
Optional: No
Call by Reference: No ( called with pass by value option)

F_O_A_ATT - Form of address

Data type: BAPIAPSTA-SALUT
Optional: No
Call by Reference: No ( called with pass by value option)

NAME - Applicant name

Data type: BAPIAPSTA-ENAME
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_APPLICANT_GETSTATUS

VACANCY_STATUS - Status of vacancy assignments

Data type: BAPIVASTA
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_APPLICANT_GETSTATUS 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_return  TYPE BAPIRETURN, "   
lt_vacancy_status  TYPE STANDARD TABLE OF BAPIVASTA, "   
lv_applicantnumber  TYPE BAPIAPPL-PERNR, "   
lv_status  TYPE BAPIAPSTA-APSTA, "   
lv_app_status  TYPE BAPIAPSTA-STATX, "   
lv_f_o_a_att  TYPE BAPIAPSTA-SALUT, "   
lv_name  TYPE BAPIAPSTA-ENAME. "   

  CALL FUNCTION 'BAPI_APPLICANT_GETSTATUS'  "Determine applicant status
    EXPORTING
         APPLICANTNUMBER = lv_applicantnumber
    IMPORTING
         RETURN = lv_return
         STATUS = lv_status
         APP_STATUS = lv_app_status
         F_O_A_ATT = lv_f_o_a_att
         NAME = lv_name
    TABLES
         VACANCY_STATUS = lt_vacancy_status
. " BAPI_APPLICANT_GETSTATUS




ABAP code using 7.40 inline data declarations to call FM BAPI_APPLICANT_GETSTATUS

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 PERNR FROM BAPIAPPL INTO @DATA(ld_applicantnumber).
 
"SELECT single APSTA FROM BAPIAPSTA INTO @DATA(ld_status).
 
"SELECT single STATX FROM BAPIAPSTA INTO @DATA(ld_app_status).
 
"SELECT single SALUT FROM BAPIAPSTA INTO @DATA(ld_f_o_a_att).
 
"SELECT single ENAME FROM BAPIAPSTA INTO @DATA(ld_name).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!