Fonction SAP BAPI_STUDENT_CREATEFROMDATA3 - Method: Create Student (Valid From Release CM 4.64)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
OBJECTIDEXTERN BAPISTUDENT_HEAD-OBJID N 8 X Object ID of Student
STUDENTADDITIONALDATA BAPISTUDENT_ADDPERSONAL u 86 X Additional Personal Data of Student
STUDENTCAMPUS BAPISTUDENT_CAMPUS u 8 X Campus to Which Student is Assigned
STUDENTCHALLENGEDATA BAPISTUDENT_CHALLENGE u 15 X Challenge Data of Student
STUDENTFEEDATA BAPISTUDENT_FEEDATA u 32 X Fee Calculation Data of Student
STUDENTNUMBEREXTERN BAPISTUDENT_HEAD-STUDENTNUMBER C 12 X Student Number
STUDENTORGUNIT BAPISTUDENT_ORGUNIT u 8 X Organizational Unit to Which Student is Assigned
STUDENTPERSONALDATA BAPISTUDENT_PERSONAL u 373 Personal Data of Student
STUDENTRESIDENCYDATA BAPISTUDENT_RESIDENCY u 36 X Residence Data of Student
STUDENTSTATUSDATA BAPISTUDENT_STATUSDATA u 2 X Status Attributes of Student
STUDENTSTUDYDATA BAPISTUDENT_STUDYDATA u 48 X Study Data of Student
TESTRUN TESTRUN C 1 ' ' X Switch to Simulation Mode for Write BAPIs
UPDATEACCOUNTDATA PIQUPDATEACCOUNTDATA C 1 'X' X Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ")
VALIDITYBEGIN BAPISTUDENT_HEAD-BEGDA D 8 SY-DATUM X Start Date of Data Validity

Paramètre Reférence Type Long. Description
BUSINESSPARTNER BAPISTUDENT_HEAD-PARTNER C 10 Student Business Partner Number
OBJECTID BAPISTUDENT_HEAD-OBJID N 8 Object ID of Student
PLANVERSION BAPISTUDENT_HEAD-PLVAR C 2 Plan Version
STUDENTNUMBER BAPISTUDENT_HEAD-STUDENTNUMBER C 12 Student Number

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Container for Transfer of Customer Enhancements
RETURN BAPIRET2 548 Return Messages

Functionality
This method creates a student and the associated business partnertogether with the relevant process data.

Notes

Authorization Checks
The method checks the following authorizations for the object PLOG, the object type (OTYPE) ST (student), the status (ISTAT)1 (active), and the function code (PPFCODE) INSE(create):
INCLUDE PIQBAPISTAUTHORITY OBJECT DOKU ID TX
The following authorization objects are needed to create (activity 01)the business partner and the relevant process data:
INCLUDE PIQBAPIBUPA_AUTHORITY OBJECT DOKU ID TX

Minimum Data
If you want the method to create a student with minimum data, you musttransfer a value to the fields first name, last name, andcorrespondence language in the parameter STUDENTPERSONALDATA.
INCLUDE PIQBAPI_STDEATH

Number Assignment
For information on number assignment, read the documentation onparameters STUDENTNUMBEREXTERN and OBJECTIDEXTERN.

Return Messages
INCLUDE BAPI_RET

Data Update
INCLUDE PIQBAPI_UPDATETASK

Customer Enhancements
INCLUDE PIQBAPI_EXTENSION

Description
When you create a student, the system creates a relationship betweenthe student and the business partner. The parameter BUSINESSPARTNERcontains the key of this business partner.

Description
INCLUDE BAPI_KEYFIELD

Description
INCLUDE BAPI_KEYFIELD

Description
The parameter STUDENTNUMBER contains the student number of the student,and uniquely identifies the student.

Description
The student object ID is a unique technical key that identifies thestudent.
When the system transfers a value to the parameter OBJECTIDEXTERN atthe interface, the method checks if this value is within the externalnumber range interval and if it has already been assigned to anotherstudent.
If the system does not transfer a value to the parameter, the systemassigns the number using internal number assignment.
For more information on assignment of object IDs, see the CampusManagement Implementation Guide under Campus Management MasterData -> Students -> Student Numbers andObject IDs.

Description
The parameter STUDENTADDITIONALDATA contains additional personal dataof the student.
INCLUDE BAPI_DATAELEMENT

Description
With the the parameter STUDENTCAMPUS, you can assign a campus to thestudent. This is necessary if your university has several campuses, andyou want to assign the student to a specific campus.
INCLUDE BAPI_DATAELEMENT

Description
The parameter STUDENTCHALLENGEDATA contains the challenge data of thestudent.
INCLUDE BAPI_DATAELEMENT

Description
The parameter STUDENTFEEDATA contains the fee calculation data of thestudent.
INCLUDE BAPI_DATAELEMENT

Description
The student number is a unique identification criterion. With theparameter STUDENTNUMBEREXTERN, you can assign an external studentnumber.
When the system transfers a value, the method checks if this value iswithin the external number range interval and if it has already beenassigned to another student.
If the system does not transfer a value to the parameter, the systemassigns the number using internal number assignment.
For more information on assignment of student numbers, see theCampus Management Implementation Guide under CampusManagement Master Data -> Students ->Student Numbers and Object IDs.

Description

With the parameter STUDENTORGUNIT, you can assign the student to anorganizational unit.
When a student is registered for a program, the system automaticallyassigns the student to the organizational unit that offers thisprogram. If you want to redefine this organizational unit, you can usethis parameter.
INCLUDE BAPI_DATAELEMENT

Description
The personal data of the student is transferred in the parameterSTUDENTPERSONALDATA. Required entry fields are FIRST_NAME (first name),LAST_NAME (last name), and CORRESP_LANGUAGE (correspondence language).
INCLUDE BAPI_DATAELEMENT

Description
The parameter STUDENTRESIDENCYDATA contains the residence data of thestudent.
INCLUDE BAPI_DATAELEMENT

Description
The parameter STUDENTSTATUSDATA contains the status data of thestudent.
INCLUDE BAPI_DATAELEMENT

Description
The parameter STUDENTSTUDYDATA contains the individual study data ofthe student.
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE PIQBAPIST_TESTRUN

Description
Trigger updating of account data

Description
The validity start date (VALIDITYBEGIN) defines the date from which thetransferred data is valid.
An exception to this is the personal data and status data of thestudent. This data is valid from the student's date of birth.
If the validity start date is lower than the date of birth, the systemincreases the validity start date to the lowest possible date of birth.

Description
The parameter EXTENSIONIN is a tabular import parameter.
INCLUDE PIQBAPIST_EXTENSIONKEY
INCLUDE BAPI_DATAELEMENT

Value range
INCLUDE PIQBAPIST_EXTENSION

Description
INCLUDE BAPI_TABLE
INCLUDE BAPI_DATAELEMENT