Fonction SAP BAPI_APPLICATION_CREATE - Create Application

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADVERT BAPIAPPLIC-ADVERT N 8 X Advertisement
APPLNUMBER BAPIAPPL-PERNR N 8 Applicant number
MEDIUM BAPIAPPLIC-MEDIUM N 2 X Medium
UNSAPPG BAPIAPPLIC-UNSAPPGP N 3 X Unsolicited Application Group
VALIDITYBEGIN BAPIP0001-BEGDA D 8 Valid From Date for Further Application

Paramètre Reférence Type Long. Description
APPLICANTNUMBER BAPIAPPL-PERNR N 8 Applicant Number
ENTRYDATE BAPIP0001-BEGDA D 8 Valid from date
NUMBER BAPIP0001-SEQNR N 3 Number of Infotype Record with Same Key
RETURN BAPIRETURN1 u 470 Structure for Return Parameter

Functionality
This method enables you to create a further application for anapplicant who already exists in the system. The system performs all ofthe validations that would take place in dialog mode in the appropriateindividual maintenance infotype screens. A new application is onlycreated if the system can perform all of the consistency checkssuccessfully.
The method creates a new data record for infotype 4001 Applications
and sets the applicant's status to In process.

Notes
Either the UNSAPPGP (unsolicited application group) orADVERT (advertisement) parameter is obligatory, depending onwhether the applicant's application is unsolicited or in response to anadvertisement.
Messages are returned to the RETURN (structure for returnparameters) parameter. The parameter documentation includes the returnvalues and their meanings.
This method can only be used after the ENQUEUE method of theEMPLOYEE business object has been accessed. For furtherinformation on the ENQUEUE method, see the documentation on theBAPI_EMPLOYEE_ENQUEUE function module (lock employee).

Description
For information on the meaning of the applicant number, see the dataelement documentation: applicant number.

Value range
Dictionary data type: NUMC (field length: 8).
Start of validity of new application.Description
Sequence number of application if more than one application arrived onthe same day.

Description
Return code for method.

Value range
If an error occurs, this structure includes the following information,for example:

  • Message type (field TYPE), dictionary data type: CHAR (field
  • length: 1).
    • Message code (field CODE), dictionary data type: CHAR (field
    • length: 5).
      • Message text (field MESSAGE), dictionary data type: CHAR (field
      • length: 220).
        If no errors occur, the structure is initial.

        Description
        For information on the meaning of the advertisement, see the dataelement documentation: advertisement.

        Value range
        Dictionary data type: NUMC (field length: 8).

        Description
        For more information on what the applicant number means, see thecorresponding data element documentation: Applicant number

        Value range
        Dictionary data type: NUMC (field length 8)

        Description
        For information on the meaning of the medium, see the data elementdocumentation: medium.

        Value range
        Dictionary data type: NUMC (field length: 2).

        Description
        For information on the meaning of the unsolicited application group,see the data element documentation: unsolicitedapplication group.

        Value range
        Dictionary data type: NUMC (field length: 3).
        Valid from date for further application.