SAP BAPI_ADDITIONALDATA_GETDETAIL Function Module for Read additional personal data









BAPI_ADDITIONALDATA_GETDETAIL is a standard bapi additionaldata getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read additional personal data 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 additionaldata getdetail FM, simply by entering the name BAPI_ADDITIONALDATA_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: OPERS_CA
Program Name: SAPLOPERS_CA
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BAPI_ADDITIONALDATA_GETDETAIL 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_ADDITIONALDATA_GETDETAIL'"Read additional personal data
EXPORTING
EMPLOYEENUMBER = "Personnel number
SUBTYPE = "Subtype
OBJECTID = "Object ID
LOCKINDICATOR = "Lock indicator for HR master record
VALIDITYBEGIN = "Valid from date
VALIDITYEND = "Valid to date
RECORDNUMBER = "Number of infotype record

IMPORTING
RETURN = "Structure for return code
SURVEYSOURCE = "Source of Survey Data
ABORIGINAL = "Designated groups for Group types
DTY01 = "Designated groups for Group types
DTY02 = "Designated groups for Group types
DTY03 = "Designated groups for Group types
DTY04 = "Designated groups for Group types
DTY05 = "Designated groups for Group types
MTY01 = "Designated groups for Group types
MTY02 = "Designated groups for Group types
MTY03 = "Designated groups for Group types
ETHNIK = "Ethnic origin
MTY04 = "Designated groups for Group types
MTY05 = "Designated groups for Group types
DISABLED = "Person is disabled
SURVEY = "Survey answered
DISABLEDDATE = "Date of determination of disability status
LEARNEDDATE = "Date employer learned of disability status
DESIGCMA = "Designated CMA
SURVEYPARTICIPATE = "Survey Participation flag
RELEASEINFO = "Release of Data
.



IMPORTING Parameters details for BAPI_ADDITIONALDATA_GETDETAIL

EMPLOYEENUMBER - Personnel number

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

SUBTYPE - Subtype

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

OBJECTID - Object ID

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

LOCKINDICATOR - Lock indicator for HR master record

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

VALIDITYBEGIN - Valid from date

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

VALIDITYEND - Valid to date

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

RECORDNUMBER - Number of infotype record

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

EXPORTING Parameters details for BAPI_ADDITIONALDATA_GETDETAIL

RETURN - Structure for return code

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

SURVEYSOURCE - Source of Survey Data

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

ABORIGINAL - Designated groups for Group types

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

DTY01 - Designated groups for Group types

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

DTY02 - Designated groups for Group types

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

DTY03 - Designated groups for Group types

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

DTY04 - Designated groups for Group types

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

DTY05 - Designated groups for Group types

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

MTY01 - Designated groups for Group types

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

MTY02 - Designated groups for Group types

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

MTY03 - Designated groups for Group types

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

ETHNIK - Ethnic origin

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

MTY04 - Designated groups for Group types

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

MTY05 - Designated groups for Group types

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

DISABLED - Person is disabled

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

SURVEY - Survey answered

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

DISABLEDDATE - Date of determination of disability status

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

LEARNEDDATE - Date employer learned of disability status

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

DESIGCMA - Designated CMA

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

SURVEYPARTICIPATE - Survey Participation flag

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

RELEASEINFO - Release of Data

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

Copy and paste ABAP code example for BAPI_ADDITIONALDATA_GETDETAIL 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 BAPIRETURN1, "   
lv_employeenumber  TYPE BAPIP0077-PERNR, "   
lv_surveysource  TYPE BAPIP0077-SURSC, "   
lv_aboriginal  TYPE BAPIP0077-ABOTY, "   
lv_dty01  TYPE BAPIP0077-DTY01, "   
lv_dty02  TYPE BAPIP0077-DTY02, "   
lv_dty03  TYPE BAPIP0077-DTY03, "   
lv_dty04  TYPE BAPIP0077-DTY04, "   
lv_dty05  TYPE BAPIP0077-DTY05, "   
lv_mty01  TYPE BAPIP0077-MTY01, "   
lv_mty02  TYPE BAPIP0077-MTY02, "   
lv_mty03  TYPE BAPIP0077-MTY03, "   
lv_ethnik  TYPE BAPIP0077-RACKY, "   
lv_subtype  TYPE BAPIP0077-SUBTY, "   
lv_mty04  TYPE BAPIP0077-MTY04, "   
lv_mty05  TYPE BAPIP0077-MTY05, "   
lv_disabled  TYPE BAPIP0077-DISAB, "   
lv_objectid  TYPE BAPIP0077-OBJPS, "   
lv_survey  TYPE BAPIP0077-SURVY, "   
lv_lockindicator  TYPE BAPIP0077-SPRPS, "   
lv_disableddate  TYPE BAPIP0077-DISDT, "   
lv_validitybegin  TYPE BAPIP0077-BEGDA, "   
lv_learneddate  TYPE BAPIP0077-DISLE, "   
lv_validityend  TYPE BAPIP0077-ENDDA, "   
lv_desigcma  TYPE BAPIP0077-RCITY, "   
lv_recordnumber  TYPE BAPIP0077-SEQNR, "   
lv_surveyparticipate  TYPE BAPIP0077-SURPA, "   
lv_releaseinfo  TYPE BAPIP0077-RELEA. "   

  CALL FUNCTION 'BAPI_ADDITIONALDATA_GETDETAIL'  "Read additional personal data
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         SUBTYPE = lv_subtype
         OBJECTID = lv_objectid
         LOCKINDICATOR = lv_lockindicator
         VALIDITYBEGIN = lv_validitybegin
         VALIDITYEND = lv_validityend
         RECORDNUMBER = lv_recordnumber
    IMPORTING
         RETURN = lv_return
         SURVEYSOURCE = lv_surveysource
         ABORIGINAL = lv_aboriginal
         DTY01 = lv_dty01
         DTY02 = lv_dty02
         DTY03 = lv_dty03
         DTY04 = lv_dty04
         DTY05 = lv_dty05
         MTY01 = lv_mty01
         MTY02 = lv_mty02
         MTY03 = lv_mty03
         ETHNIK = lv_ethnik
         MTY04 = lv_mty04
         MTY05 = lv_mty05
         DISABLED = lv_disabled
         SURVEY = lv_survey
         DISABLEDDATE = lv_disableddate
         LEARNEDDATE = lv_learneddate
         DESIGCMA = lv_desigcma
         SURVEYPARTICIPATE = lv_surveyparticipate
         RELEASEINFO = lv_releaseinfo
. " BAPI_ADDITIONALDATA_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_ADDITIONALDATA_GETDETAIL

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 BAPIP0077 INTO @DATA(ld_employeenumber).
 
"SELECT single SURSC FROM BAPIP0077 INTO @DATA(ld_surveysource).
 
"SELECT single ABOTY FROM BAPIP0077 INTO @DATA(ld_aboriginal).
 
"SELECT single DTY01 FROM BAPIP0077 INTO @DATA(ld_dty01).
 
"SELECT single DTY02 FROM BAPIP0077 INTO @DATA(ld_dty02).
 
"SELECT single DTY03 FROM BAPIP0077 INTO @DATA(ld_dty03).
 
"SELECT single DTY04 FROM BAPIP0077 INTO @DATA(ld_dty04).
 
"SELECT single DTY05 FROM BAPIP0077 INTO @DATA(ld_dty05).
 
"SELECT single MTY01 FROM BAPIP0077 INTO @DATA(ld_mty01).
 
"SELECT single MTY02 FROM BAPIP0077 INTO @DATA(ld_mty02).
 
"SELECT single MTY03 FROM BAPIP0077 INTO @DATA(ld_mty03).
 
"SELECT single RACKY FROM BAPIP0077 INTO @DATA(ld_ethnik).
 
"SELECT single SUBTY FROM BAPIP0077 INTO @DATA(ld_subtype).
 
"SELECT single MTY04 FROM BAPIP0077 INTO @DATA(ld_mty04).
 
"SELECT single MTY05 FROM BAPIP0077 INTO @DATA(ld_mty05).
 
"SELECT single DISAB FROM BAPIP0077 INTO @DATA(ld_disabled).
 
"SELECT single OBJPS FROM BAPIP0077 INTO @DATA(ld_objectid).
 
"SELECT single SURVY FROM BAPIP0077 INTO @DATA(ld_survey).
 
"SELECT single SPRPS FROM BAPIP0077 INTO @DATA(ld_lockindicator).
 
"SELECT single DISDT FROM BAPIP0077 INTO @DATA(ld_disableddate).
 
"SELECT single BEGDA FROM BAPIP0077 INTO @DATA(ld_validitybegin).
 
"SELECT single DISLE FROM BAPIP0077 INTO @DATA(ld_learneddate).
 
"SELECT single ENDDA FROM BAPIP0077 INTO @DATA(ld_validityend).
 
"SELECT single RCITY FROM BAPIP0077 INTO @DATA(ld_desigcma).
 
"SELECT single SEQNR FROM BAPIP0077 INTO @DATA(ld_recordnumber).
 
"SELECT single SURPA FROM BAPIP0077 INTO @DATA(ld_surveyparticipate).
 
"SELECT single RELEA FROM BAPIP0077 INTO @DATA(ld_releaseinfo).
 


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!