SAP BAPI_STUDENT_ADDRESS_GET_NUMB Function Module for Method: Read Address Numbers of Student









BAPI_STUDENT_ADDRESS_GET_NUMB is a standard bapi student address get numb 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 Numbers 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 get numb FM, simply by entering the name BAPI_STUDENT_ADDRESS_GET_NUMB 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_GET_NUMB 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_GET_NUMB'"Method: Read Address Numbers of Student
EXPORTING
* PLANVERSION = "Plan Version
OBJECTID = "Object ID of Student
* ADDR_NO = "Address number
* ADDRESSGUID = "Address GUID
* EXTERNALADDRESSNUMBER = "Address Number in External System
* VALID_DATE = "Validity Date

IMPORTING
ADDR_NO_OUT = "Address Number
ADDRESSGUIDOUT = "Address GUID
EXTERNALADDRESSNUMBEROUT = "Address Number in External System

TABLES
* RETURN = "Messages
.



IMPORTING Parameters details for BAPI_STUDENT_ADDRESS_GET_NUMB

PLANVERSION - Plan Version

Data type: BAPISTUDENT_HEAD-PLVAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECTID - Object ID of Student

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

ADDR_NO - Address number

Data type: BAPIBUS1006_HEAD-ADDR_NO
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDRESSGUID - Address GUID

Data type: BUT020-GUID
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTERNALADDRESSNUMBER - Address Number in External System

Data type: BUT020-ADEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALID_DATE - Validity Date

Data type: BAPIBUS1006_VALIDITY-VALID_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_STUDENT_ADDRESS_GET_NUMB

ADDR_NO_OUT - Address Number

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

ADDRESSGUIDOUT - Address GUID

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

EXTERNALADDRESSNUMBEROUT - Address Number in External System

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

TABLES Parameters details for BAPI_STUDENT_ADDRESS_GET_NUMB

RETURN - Messages

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

Copy and paste ABAP code example for BAPI_STUDENT_ADDRESS_GET_NUMB 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_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_addr_no_out  TYPE BAPIBUS1006_HEAD-ADDR_NO, "   
lv_planversion  TYPE BAPISTUDENT_HEAD-PLVAR, "   
lv_objectid  TYPE BAPISTUDENT_HEAD-OBJID, "   
lv_addressguidout  TYPE BUT020-GUID, "   
lv_addr_no  TYPE BAPIBUS1006_HEAD-ADDR_NO, "   
lv_externaladdressnumberout  TYPE BUT020-ADEXT, "   
lv_addressguid  TYPE BUT020-GUID, "   
lv_externaladdressnumber  TYPE BUT020-ADEXT, "   
lv_valid_date  TYPE BAPIBUS1006_VALIDITY-VALID_DATE. "   

  CALL FUNCTION 'BAPI_STUDENT_ADDRESS_GET_NUMB'  "Method: Read Address Numbers of Student
    EXPORTING
         PLANVERSION = lv_planversion
         OBJECTID = lv_objectid
         ADDR_NO = lv_addr_no
         ADDRESSGUID = lv_addressguid
         EXTERNALADDRESSNUMBER = lv_externaladdressnumber
         VALID_DATE = lv_valid_date
    IMPORTING
         ADDR_NO_OUT = lv_addr_no_out
         ADDRESSGUIDOUT = lv_addressguidout
         EXTERNALADDRESSNUMBEROUT = lv_externaladdressnumberout
    TABLES
         RETURN = lt_return
. " BAPI_STUDENT_ADDRESS_GET_NUMB




ABAP code using 7.40 inline data declarations to call FM BAPI_STUDENT_ADDRESS_GET_NUMB

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 ADDR_NO FROM BAPIBUS1006_HEAD INTO @DATA(ld_addr_no_out).
 
"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_addressguidout).
 
"SELECT single ADDR_NO FROM BAPIBUS1006_HEAD INTO @DATA(ld_addr_no).
 
"SELECT single ADEXT FROM BUT020 INTO @DATA(ld_externaladdressnumberout).
 
"SELECT single GUID FROM BUT020 INTO @DATA(ld_addressguid).
 
"SELECT single ADEXT FROM BUT020 INTO @DATA(ld_externaladdressnumber).
 
"SELECT single VALID_DATE FROM BAPIBUS1006_VALIDITY INTO @DATA(ld_valid_date).
 


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!