Fonction SAP BAPI_ODSO_CREATE - Generate DataStore

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DETAILS BAPI6116 u 246 DataStore Object - Details

Paramètre Reférence Type Long. Description
ODSOBJECT BAPI6116-ODSOBJECT C 30 DataStore Object

Paramètre Reférence Long. Facultatif Description
INDEXES BAPI6116IN 34 X Indexes for a DataStore Object
INDEXESINFOOBJECTS BAPI6116II 67 X DataStore Object InfoObjects in Indexes
INFOOBJECTS BAPI6116IO 68 InfoObjects in DataStore Object
NAVIGATIONATTRIBUTES BAPI6116NA 120 X Navigation Attributes for the DataStore Object
RETURN BAPIRET2 548 X Detailed log in case of error

Functionality
This function module creates a new ODS object. You must include allproperties of the ODS object in the parameter DETAILS.
You must include the structure of the ODS object in the tableparameters:

  • the InfoObjects in the ODS object,

  • the navigation attributes in the ODS object,

  • the indexes of the ODS object, and

  • the InfoObjects in the indexes.

  • If there are errors, a detailed log is returned in the parameterRETURNTABLE.

    Description
    The name of the ODS object is returned in this parameter, in the eventthat the creation was successful.

    Description

    Detailed information about the DataStore object.
    You must at least fill the name of the DataStore object and should alsoassign a text.

    Description
    This table contains DataStore object indexes with information aboutwhether these are unique indexs. The indexes with names 010, 020, 030,... to 160 are created in the customer name space.

    Description
    This table contains assignments of InfoObjects to indexes. TheInfoObjects included here have to be available in the DataStore object.

    Description
    This table includes the InfoObjects contained in the DataStore objectwith information about whether these are key or data fields.
    The position POSIT must not be filled; it is defined by the sequence ofentries.

    Description
    This table contains the navigation attributes that are active in theDataStore object. You can specify the name of the navigation attribute(for example, ATRNAVNM = '0COSTCENTER__0COMP_CODE' for the attribute'company code' of the characteristic 'cost center'), or you can specifythe name of the characteristic and the name of the attribute (forexample, CHANM = '0COSTCENTER' and ATTRINM = '0COMP_CODE').
    The characteristic must then be in the InfoObject table in the DataStoreobject. Also, the attribute must be specified with the characteristic asa navigation attribute.

    Description
    Return parameter of the method. The return parameter gives informationabout the success or failure of the call.

    Value range
    The most important error messages are about:

    • Insufficient authorization to create DataStore objects.

    • Errors in the sources of the DataStore object. In this case you can find
    • a detailed error message in the RETURNTABLE parameter.