Fonction SAP BAPI_IOBJ_CHANGE - Changes an InfoObject

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DETAILS BAPI6108 u 1028 InfoObject with all properties
INFOOBJECT BAPI6108-INFOOBJECT C 30 InfoObject

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 BAPI Return Parameter

Paramètre Reférence Long. Facultatif Description
ATRNAVINFOPROVIDER BAPI6108NP 60 X Navigation Attributes of Characteristic as InfoProvider
ATTRIBUTES BAPI6108AT 71 X Attributes
COMPOUNDS BAPI6108CM 66 X Compounding
ELIMINATION BAPI6108IE 102 X Elimination of Internal Business Volume
HIERARCHYCHARACTERISTICS BAPI6108HC 60 X Characteristics that occur in hierarchies
NAVIGATIONATTRIBUTES BAPI6108AN 172 X Navigation Attributes
RETURNTABLE BAPIRET2 548 X Detailed log in case of error

Functionality
This method changes an existing InfoObject. You have to provide allproperties for the InfoObject in the DETAILS parameter.
If the InfoObject has compounding or attributes, then the correspondingentry parameters (COMPOUNDS, ATTRIBUTES and/or NAVIGATIONATTRIBUTES)must also be filled.
In the event of errors, a detailed log is returned in the RETURUNTABLEparameter.
After an InfoObject has been successfully saved, a 'Commit Work' isperformed. Following an unsuccessful save, a 'Rollback Work' isperformed.
The InfoObject sources are generally saved in the M version. TheACTIVATE_MULTIPLE method is available for activating the InfoObject.
The module performs minor consistency checks. Properties are changedbefore saving where necessary.

Description
Method return parameters. The return parameter provides information onthe success or failure of the call. &RANGE&
The most important error messages are:
Class type Code Text
RSM,,E,,831 ,,You are not authorized to change InfoObjects
RSAR E,,210 ,,InfoObject <(>&<)>1 not available
R7,,S,,406 ,,InfoObject <(>&<)>1 saved
R7,,E,,409 ,,Error when saving the InfoObject <(>&<)>1 - If thismessage appears, you can find a detailed log in the RETURN_TABLE tablesparameter.
R7,,E,,058 ,,Invalid Entry: the parameter INFOOBJECT differs from thecomponent INFOOBJECT of the DETAILS parameter.

Description
In this structure, the name of the InfoObject and all properties areprovided.

Value range
The meaning of fields are stored in the data element docu. The permittedvalues for the fields are stored as fixed values for domains, where thismakes sense. If a field has no data element docu, it is an internalfield that does not have to be supplied.
The texts are saved in the logon language.
The following fields of the table have to be supplied by the caller(the other fields are automatically provided with a valid default view):

For more detailed information on the fields, see the documentationfor the parameter DETAILS of the method InfoObject.Create !

Description
Name of the InfoObject that should be changed.

Value range
The specified InfoObject has to be known to the Business InformationWarehouse.

Default

Description
InfoObject attributes

Value range
For every attribute you have to determine whether it is time-dependentand if it is used as a navigation attribute. The permitted values forthese properties are specified as domain fixed values.

Description
InfoObject compounding information.

Value range
The InfoObject is in the first position (INFOOBJECT) and theInfoObjects to which the first object is compounded are in the fieldIOBJCMP.
Compounding type '1' is to be entered for characteristics.
Compounding type '2' or '3' is to be entered for key figures (seedomain fixed values)

Description
InfoObject navigation attribute

Value range
In addition to navigation attributes, you must define your text herealso.
The ATRNAVNM field is not used.
Texts are created in you logon language.

Description
If errors occur during saving, a detailed log is returned in thistable. In this case the RETURN parameter contains the message R7 E 409'Error when saving the InfoObject <(>&<)>1'.