Fonction SAP BAPI_CASE_ADDELEMENTS - Insert Multiple Elements in Record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
GUID BAPISCMGCASE-CASE_GUID C 32 Technical Case Key (Case GUID)
NEW_VERSION BAPISRMREC-BOOLEAN C 1 X Switch: Save Record as New Version
SKIP_ERRORS BAPISRMREC-BOOLEAN C 1 X Switch: Stop Insert After First Error

Paramètre Reférence Long. Facultatif Description
ELEMENT_ATTRIBUTES BAPIPROPME 324 X Additional Element Attributes
ELEMENT_IDENTIFICATION BAPIPROPME 324 Identification of Elements to be Inserted
ELEMENT_INSERTION BAPIDOCINS 328 Information for Inserting Elements into Record
ELEMENT_RELATIONS BAPIRELTB 8 X Element-Record Relation
RETURN BAPIRET2 548 Return Parameters

Description
The GUID of a case where elements are to be inserted.

Description
Flag. If set, the record of a case is stored as a new version.

Description
Flag. If set and an error occurs, the method continues from the nextelement. If the flag is not set, the method returns an error withoutsaving the changes.

Description
The table ELEMENT_ATTRIBUTES contains the attributes of the elementswhich are to be inserted into a case record. This table can contain one,several or no entries for each element.

Description
The table ELEMENT_IDENTIFICATION contains the SPS IDs and SP POIDs ofthe objects that should be inserted.
The entry for the SPS ID parameter is mandatory for each element. It isdefined using the key value for the field NAME = '%SPS_ID%'. All othername-value pairs for the element with the same ELEM_NO contain the SPPOID parameters of the element.

Description
The table ELEMENT_INSERTION contains the following columns:

  • ELEM_NO: the number of an element, provides the bounding between the
  • element info in all input tables;
    • ANCHOR: the anchor of the position in the record where the element
    • should be inserted;
      • DESCRIPTION: description of the element, optional;

      • MODEL_ID: the model ID of the position in the record where the element
      • should be inserted.
        This table must contain an entry for each element from the tableELEMENT_IDENTIFICATION. Only one of the columns ANCHOR and MODEL ID mustbe filled for each element. If the model ID is set, then the anchor isnot taken into account.

        Description
        Table ELEMENT_RELATIONS contains the relations between the elements andthe case. This table could contain some, all or none of the relationsfor each element.

        Description
        Result of the BAPI call.
        In contrast to the standard, the entry in the ROW field does notidentify the row number of the data record containing the value witherrors.
        Rather, ROW identifies the sequence number of the element to be insertedfor which the error occurred. This is transferred to field ELEM_NO inthe table parameters ELEMENT_IDENTIFICATION, ELEMENT_INSERTION orELEMENT_PROPERTIES.