Fonction SAP BAPI_STUDENT_CREATEFROMBP - Method: Create Student for Existing Business Partner

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BUSINESSPARTNER BAPISTUDENT_HEAD-PARTNER C 10 Business Partner Number
OBJECTIDEXTERN BAPISTUDENT_HEAD-OBJID N 8 X Object ID of Student
STUDENTNUMBEREXTERN BAPISTUDENT_HEAD-STUDENTNUMBER C 12 X Student Number
TESTRUN TESTRUN C 1 SPACE X Switch to Simulation Session for Write BAPIs
UPDATEACCOUNTDATA PIQUPDATEACCOUNTDATA C 1 'X' X Trigger Automatic Update of Account Data

Paramètre Reférence Type Long. Description
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
RETURN BAPIRET2 548 X Return Parameters

Functionality
You can use this method to create a student for an existing businesspartner. The system assigns the business partner the "student" (PSCM10)and "contract partner" (MKK) roles, and creates a student object typewith the "Object" (1000) and "Personal Data" (1702) infotypes.
The business partner must fulfill the following prerequisites:

  • The business partner must be a "person"

  • The "student" role may not already be assigned to the business partner
  • Notes
    INCLUDE PIQBAPI_UPDATETASK

    Description
    The business partner will be created in the role "student".

    Description
    If you enter a student number, the system performs the same checks as inthe function moduleBAPI_STUDENT_CREATEFROMDATA3.
    If you do not enter a student number, the system determines this numberusing the method SET_CUSTOMER_STUDENT_NUMBER of the BAdIPSCM_PARTNER. If this BAdI is not implemented, the system uses thestandard procedure for student number assignment.

    Description
    Trigger Automatic Account Data Update.