SAP BAPI_STUDENT_ADDRESS_GETDETAIL Function Module for Method: Read Address Detail Data of Student
BAPI_STUDENT_ADDRESS_GETDETAIL is a standard bapi student address 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 Method: Read Address Detail Data of Student 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 student address getdetail FM, simply by entering the name BAPI_STUDENT_ADDRESS_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00STUDENTBAPI
Program Name: SAPLHRPIQ00STUDENTBAPI
Main Program: SAPLHRPIQ00STUDENTBAPI
Appliation area:
Release date: 02-Nov-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_STUDENT_ADDRESS_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_STUDENT_ADDRESS_GETDETAIL'"Method: Read Address Detail Data of Student.
EXPORTING
* PLANVERSION = "Plan Version
OBJECTID = "Object ID of Student
* ADDRESSGUID = "Address GUID
* READ_TEXTS = ' ' "Also Read Texts of Key Entries
* LANGUAGE_ISO = "Language According to ISO 639
* LANGUAGE = "Language Key
* VALID_DATE = SY-DATLO "Validity Date
IMPORTING
ADDRESSDATA = "SAP BP: BAPI Structure for Address Data
ADDRESSDATAT = "SAP BP: BAPI Structure for Address Data Including Text Fields
TABLES
* BAPIADTEL = "Telephone Number
* BAPIADSSF = "SSF Addresses
* BAPIADURI = "URI Addresses
* BAPIADPAG = "Pager Numbers
* BAPIAD_REM = "Address Notes
* BAPICOMREM = "Notes on Communication Types
* ADDRESSUSAGE = "Address Usages
* ADDRESSUSAGET = "SAP BP: BAPI Structue for Address Uses (Text Fields)
* BAPIADVERSPERS = "International Address Version for Persons
* BAPIADUSE = "BAPI Structure for Communication Usages (BAS)
* RETURN = "Messages
* BAPIADFAX = "Fax Number
* BAPIADTTX = "Teletext Number
* BAPIADTLX = "Telex Number
* BAPIADSMTP = "E-Mail Addresses
* BAPIADRML = "RML Addresses
* BAPIADX400 = "X400 Addresses
* BAPIADRFC = "RFC Addresses
* BAPIADPRT = "PRT Addresses
IMPORTING Parameters details for BAPI_STUDENT_ADDRESS_GETDETAIL
PLANVERSION - Plan Version
Data type: BAPISTUDENT_HEAD-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
OBJECTID - Object ID of Student
Data type: BAPISTUDENT_HEAD-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESSGUID - Address GUID
Data type: BUT020-GUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
READ_TEXTS - Also Read Texts of Key Entries
Data type: BAPISTUDENT_READTEXTSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE_ISO - Language According to ISO 639
Data type: BAPI_LAISO-LANGU_ISOOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language Key
Data type: BAPI_LAISO-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
VALID_DATE - Validity Date
Data type: BAPIBUS1006_VALIDITY-VALID_DATEDefault: SY-DATLO
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_STUDENT_ADDRESS_GETDETAIL
ADDRESSDATA - SAP BP: BAPI Structure for Address Data
Data type: BAPIBUS1006_ADDRESSOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESSDATAT - SAP BP: BAPI Structure for Address Data Including Text Fields
Data type: BAPISTUDENTADDRESSTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_STUDENT_ADDRESS_GETDETAIL
BAPIADTEL - Telephone Number
Data type: BAPIADTELOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADSSF - SSF Addresses
Data type: BAPIADSSFOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADURI - URI Addresses
Data type: BAPIADURIOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADPAG - Pager Numbers
Data type: BAPIADPAGOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIAD_REM - Address Notes
Data type: BAPIAD_REMOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPICOMREM - Notes on Communication Types
Data type: BAPICOMREMOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSUSAGE - Address Usages
Data type: BAPIBUS1006_ADDRESSUSAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSUSAGET - SAP BP: BAPI Structue for Address Uses (Text Fields)
Data type: BAPISTUDENTADDRESSUSAGETOptional: Yes
Call by Reference: Yes
BAPIADVERSPERS - International Address Version for Persons
Data type: BAPIAD2VDOptional: Yes
Call by Reference: Yes
BAPIADUSE - BAPI Structure for Communication Usages (BAS)
Data type: BAPIADUSEOptional: Yes
Call by Reference: Yes
RETURN - Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADFAX - Fax Number
Data type: BAPIADFAXOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADTTX - Teletext Number
Data type: BAPIADTTXOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADTLX - Telex Number
Data type: BAPIADTLXOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADSMTP - E-Mail Addresses
Data type: BAPIADSMTPOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADRML - RML Addresses
Data type: BAPIADRMLOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADX400 - X400 Addresses
Data type: BAPIADX400Optional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADRFC - RFC Addresses
Data type: BAPIADRFCOptional: Yes
Call by Reference: No ( called with pass by value option)
BAPIADPRT - PRT Addresses
Data type: BAPIADPRTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_STUDENT_ADDRESS_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: | ||||
| lt_bapiadtel | TYPE STANDARD TABLE OF BAPIADTEL, " | |||
| lv_addressdata | TYPE BAPIBUS1006_ADDRESS, " | |||
| lv_planversion | TYPE BAPISTUDENT_HEAD-PLVAR, " | |||
| lt_bapiadssf | TYPE STANDARD TABLE OF BAPIADSSF, " | |||
| lt_bapiaduri | TYPE STANDARD TABLE OF BAPIADURI, " | |||
| lt_bapiadpag | TYPE STANDARD TABLE OF BAPIADPAG, " | |||
| lt_bapiad_rem | TYPE STANDARD TABLE OF BAPIAD_REM, " | |||
| lt_bapicomrem | TYPE STANDARD TABLE OF BAPICOMREM, " | |||
| lt_addressusage | TYPE STANDARD TABLE OF BAPIBUS1006_ADDRESSUSAGE, " | |||
| lt_addressusaget | TYPE STANDARD TABLE OF BAPISTUDENTADDRESSUSAGET, " | |||
| lt_bapiadverspers | TYPE STANDARD TABLE OF BAPIAD2VD, " | |||
| lt_bapiaduse | TYPE STANDARD TABLE OF BAPIADUSE, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_objectid | TYPE BAPISTUDENT_HEAD-OBJID, " | |||
| lt_bapiadfax | TYPE STANDARD TABLE OF BAPIADFAX, " | |||
| lv_addressdatat | TYPE BAPISTUDENTADDRESST, " | |||
| lt_bapiadttx | TYPE STANDARD TABLE OF BAPIADTTX, " | |||
| lv_addressguid | TYPE BUT020-GUID, " | |||
| lt_bapiadtlx | TYPE STANDARD TABLE OF BAPIADTLX, " | |||
| lv_read_texts | TYPE BAPISTUDENT_READTEXTS, " ' ' | |||
| lt_bapiadsmtp | TYPE STANDARD TABLE OF BAPIADSMTP, " | |||
| lv_language_iso | TYPE BAPI_LAISO-LANGU_ISO, " | |||
| lv_language | TYPE BAPI_LAISO-LANGU, " | |||
| lt_bapiadrml | TYPE STANDARD TABLE OF BAPIADRML, " | |||
| lt_bapiadx400 | TYPE STANDARD TABLE OF BAPIADX400, " | |||
| lv_valid_date | TYPE BAPIBUS1006_VALIDITY-VALID_DATE, " SY-DATLO | |||
| lt_bapiadrfc | TYPE STANDARD TABLE OF BAPIADRFC, " | |||
| lt_bapiadprt | TYPE STANDARD TABLE OF BAPIADPRT. " |
|   CALL FUNCTION 'BAPI_STUDENT_ADDRESS_GETDETAIL' "Method: Read Address Detail Data of Student |
| EXPORTING | ||
| PLANVERSION | = lv_planversion | |
| OBJECTID | = lv_objectid | |
| ADDRESSGUID | = lv_addressguid | |
| READ_TEXTS | = lv_read_texts | |
| LANGUAGE_ISO | = lv_language_iso | |
| LANGUAGE | = lv_language | |
| VALID_DATE | = lv_valid_date | |
| IMPORTING | ||
| ADDRESSDATA | = lv_addressdata | |
| ADDRESSDATAT | = lv_addressdatat | |
| TABLES | ||
| BAPIADTEL | = lt_bapiadtel | |
| BAPIADSSF | = lt_bapiadssf | |
| BAPIADURI | = lt_bapiaduri | |
| BAPIADPAG | = lt_bapiadpag | |
| BAPIAD_REM | = lt_bapiad_rem | |
| BAPICOMREM | = lt_bapicomrem | |
| ADDRESSUSAGE | = lt_addressusage | |
| ADDRESSUSAGET | = lt_addressusaget | |
| BAPIADVERSPERS | = lt_bapiadverspers | |
| BAPIADUSE | = lt_bapiaduse | |
| RETURN | = lt_return | |
| BAPIADFAX | = lt_bapiadfax | |
| BAPIADTTX | = lt_bapiadttx | |
| BAPIADTLX | = lt_bapiadtlx | |
| BAPIADSMTP | = lt_bapiadsmtp | |
| BAPIADRML | = lt_bapiadrml | |
| BAPIADX400 | = lt_bapiadx400 | |
| BAPIADRFC | = lt_bapiadrfc | |
| BAPIADPRT | = lt_bapiadprt | |
| . " BAPI_STUDENT_ADDRESS_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_STUDENT_ADDRESS_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 PLVAR FROM BAPISTUDENT_HEAD INTO @DATA(ld_planversion). | ||||
| "SELECT single OBJID FROM BAPISTUDENT_HEAD INTO @DATA(ld_objectid). | ||||
| "SELECT single GUID FROM BUT020 INTO @DATA(ld_addressguid). | ||||
| DATA(ld_read_texts) | = ' '. | |||
| "SELECT single LANGU_ISO FROM BAPI_LAISO INTO @DATA(ld_language_iso). | ||||
| "SELECT single LANGU FROM BAPI_LAISO INTO @DATA(ld_language). | ||||
| "SELECT single VALID_DATE FROM BAPIBUS1006_VALIDITY INTO @DATA(ld_valid_date). | ||||
| DATA(ld_valid_date) | = SY-DATLO. | |||
Search for further information about these or an SAP related objects