bw_create_infoobject
Create an inactive InfoObject (characteristic or key figure) in SAP BW/4HANA. Specify object type, name, info area, and additional attributes like data type and length.
Instructions
Create a new InfoObject — Characteristic (CHA) or Key Figure (KYF) — inactive. Sequence: lock → POST create → unlock. After creation call bw_activate with object_type "iobj" to activate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| infoobject_type | No | InfoObject type: CHA (Characteristic) or KYF (Key Figure). Default "CHA". | |
| name | Yes | InfoObject name, max 9 characters (e.g. "IOBJ_NAME"). | |
| info_area | Yes | InfoArea to assign the InfoObject to (e.g. "NEXTJUICE"). | |
| description | Yes | Short and long description text. | |
| data_type | No | CHA only. ABAP data type. Default "CHAR". | |
| length | No | CHA only. Field length. Default 10. | |
| conversion_routine | No | CHA only. Conversion routine (e.g. "ALPHA"). Default "ALPHA" for CHAR/NUMC, "" for others. | |
| with_master_data | No | CHA only. Generate master data tables. Default false. | |
| with_texts | No | CHA only. Generate text tables. Default false. | |
| referenced_infoobject | No | CHA only. Reference to an existing InfoObject (e.g. "IOBJ_NAME"). Omit withMasterData/withTexts — they are inherited. Default "". | |
| compound_infoobjects | No | Technical names of the compound parent InfoObjects, in order. CHA only. Example: ["COMPND_IOBJ_NAME"]. | |
| object_specific_data_type | No | KYF only. Data type. Default "DEC". keyfigureType and semantics are derived automatically. | |
| aggregation_type | No | KYF only. Aggregation type. Default "SUM". | |
| fixed_unit | No | Fixed unit of measure for QUAN key figures (e.g. "KWH", "M3"). Required when object_specific_data_type is QUAN. | |
| fixed_currency | No | Fixed currency for CURR key figures (e.g. "EUR"). Required when object_specific_data_type is CURR. | |
| package | No | Development package. Default "$TMP". | |
| transport | No | Transport request number (e.g. DEVK900123). Only required if the BW system requires transport assignment. |