openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_ODSO_CREATE:
    post:
      tags:
      - RSAB
      summary: Generate DataStore
      operationId: /rfc/BAPI_ODSO_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DETAILS:
                  type: object
                  properties:
                    ODSOBJECT:
                      type: string
                      maxLength: 30
                      description: DataStore Object
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Object version  enumValues: N=New,A=Active,M=Revised,D=Content,H=Historic,T=Transport'
                      enum:
                      - N
                      - A
                      - M
                      - D
                      - H
                      - T
                    CONTREL:
                      type: string
                      maxLength: 6
                      description: Content release
                    CONTTIMESTMP:
                      type: integer
                      format: int64
                      description: 'Content time stamp: Last modification to the object by SAP'
                    OWNER:
                      type: string
                      maxLength: 12
                      description: Owner (Person Responsible)
                    BWAPPL:
                      type: string
                      maxLength: 10
                      description: BW Application (Namespace)
                    INFOAREA:
                      type: string
                      maxLength: 30
                      description: InfoArea
                    BEXFL:
                      type: string
                      maxLength: 1
                      description: 'SID Generation  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                    ODSOTYPE:
                      type: string
                      maxLength: 1
                      description: 'Type of DataStore Object  enumValues: W=Write-Optimized,T=Direct Update,""=Standard'
                      enum:
                      - W
                      - T
                      - ''
                    BCTCOMP:
                      type: string
                      maxLength: 10
                      description: Obsolete (Component of BI Content)
                    ODSASIZCAT:
                      type: string
                      maxLength: 2
                      description: 'Size Category for DS Tables of Active Records  enumValues: 4=Tables > 160 MB,14=Value cannot be maintained manually (Early Watch value),0=Tables < 500K,1=Tables < 1.5 MB,2=Tables < 6.5 MB,3=Tables < 25 MB'
                      enum:
                      - '4'
                      - '14'
                      - '0'
                      - '1'
                      - '2'
                      - '3'
                    ODSADATCLS:
                      type: string
                      maxLength: 5
                      description: Data Class for DS Tables of Active Records
                    ODSMSIZCAT:
                      type: string
                      maxLength: 2
                      description: 'Size Category for DS Activation Queue  enumValues: 4=Tables > 160 MB,14=Value cannot be maintained manually (Early Watch value),0=Tables < 500K,1=Tables < 1.5 MB,2=Tables < 6.5 MB,3=Tables < 25 MB'
                      enum:
                      - '4'
                      - '14'
                      - '0'
                      - '1'
                      - '2'
                      - '3'
                    ODSMDATCLS:
                      type: string
                      maxLength: 5
                      description: Data Class for DS Activation Queue
                    AUTOQUALOKFL:
                      type: string
                      maxLength: 1
                      description: 'Set Quality Status to ''OK'' Automatically  enumValues: ""=false,X=True'
                      enum:
                      - ''
                      - X
                    AUTOCOMPRFL:
                      type: string
                      maxLength: 1
                      description: 'Compress Automatically After Roll-Up (or After Load)  enumValues: ""=false,X=True'
                      enum:
                      - ''
                      - X
                    AUTOACTIVATEFL:
                      type: string
                      maxLength: 1
                      description: 'Activate DataStore Object Data Automatically  enumValues: ""=false,X=True'
                      enum:
                      - ''
                      - X
                    AUTOPROCESSFL:
                      type: string
                      maxLength: 1
                      description: 'Update Data from DataStore Object Automatically  enumValues: ""=false,X=True'
                      enum:
                      - ''
                      - X
                    TSTPNM:
                      type: string
                      maxLength: 12
                      description: Last changed by
                    TIMESTMP:
                      type: integer
                      format: int64
                      description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                    READMODE:
                      type: string
                      maxLength: 1
                      description: 'Read Mode  enumValues: A=Query to Read All Data At Once,X=Query to Read Data During Navigation,H=Query to Read When You Navigate or Expand Hierarchies'
                      enum:
                      - A
                      - X
                      - H
                    OBJSTAT:
                      type: string
                      maxLength: 3
                      description: 'Object Status  enumValues: OFF=Switched off,INA=Inactive, not executable,ACT=Active, executable,PRO=Productive'
                      enum:
                      - 'OFF'
                      - INA
                      - ACT
                      - PRO
                    ACTIVFL:
                      type: string
                      maxLength: 1
                      description: 'Active and revised version do not agree  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    LANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    TEXTLONG:
                      type: string
                      maxLength: 60
                      description: Long description
                    UOM_IOBJNM:
                      type: string
                      maxLength: 30
                      description: Reference InfoObject for Quantity Conversion
                    NOEDSFL:
                      type: string
                      maxLength: 1
                      description: 'Flag: Do Not Generate Export DataSource  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    INSERTONLY:
                      type: string
                      maxLength: 1
                      description: 'Overwriting data records not permitted  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    KEY_NOT_UNIQUE:
                      type: string
                      maxLength: 1
                      description: 'Semantic DataStore Key is not Unique (Flag)  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                INDEXES:
                  type: array
                  items:
                    type: object
                    properties:
                      ODSOBJECT:
                        type: string
                        maxLength: 30
                        description: DataStore Object
                      INDEXID:
                        type: string
                        maxLength: 3
                        description: Unique Index ID in a Table
                      UNIQUEFLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag for UNIQUE indexes  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                INDEXESINFOOBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      ODSOBJECT:
                        type: string
                        maxLength: 30
                        description: DataStore Object
                      INDEXID:
                        type: string
                        maxLength: 3
                        description: Unique Index ID in a Table
                      POSIT:
                        type: integer
                        format: int64
                        description: Position of the Field in the Structure / Table
                      INFOOBJECT:
                        type: string
                        maxLength: 30
                        description: InfoObject
                INFOOBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      ODSOBJECT:
                        type: string
                        maxLength: 30
                        description: DataStore Object
                      POSIT:
                        type: integer
                        format: int64
                        description: Position of the Field in the Structure / Table
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                        enum:
                        - X
                        - ''
                      INFOOBJECT:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      IOBJTP:
                        type: string
                        maxLength: 3
                        description: 'Type of an InfoObject  enumValues: DPA=Data packet characteristic,KYF=Key figure,UNI=Unit of measurement,CHA=Characteristic,TIM=Time characteristic'
                        enum:
                        - DPA
                        - KYF
                        - UNI
                        - CHA
                        - TIM
                NAVIGATIONATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ODSOBJECT:
                        type: string
                        maxLength: 30
                        description: DataStore Object
                      ATRNAVNM:
                        type: string
                        maxLength: 30
                        description: Name of Navigation Attribute (in Reporting Structure)
                      ATTRINM:
                        type: string
                        maxLength: 30
                        description: Master data attribute
                      CHANM:
                        type: string
                        maxLength: 30
                        description: Characteristic
              required:
              - DETAILS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ODSOBJECT:
                    type: string
                    maxLength: 30
                    description: DataStore Object
                  INDEXES:
                    type: array
                    items:
                      type: object
                      properties:
                        ODSOBJECT:
                          type: string
                          maxLength: 30
                          description: DataStore Object
                        INDEXID:
                          type: string
                          maxLength: 3
                          description: Unique Index ID in a Table
                        UNIQUEFLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag for UNIQUE indexes  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                  INDEXESINFOOBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        ODSOBJECT:
                          type: string
                          maxLength: 30
                          description: DataStore Object
                        INDEXID:
                          type: string
                          maxLength: 3
                          description: Unique Index ID in a Table
                        POSIT:
                          type: integer
                          format: int64
                          description: Position of the Field in the Structure / Table
                        INFOOBJECT:
                          type: string
                          maxLength: 30
                          description: InfoObject
                  INFOOBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        ODSOBJECT:
                          type: string
                          maxLength: 30
                          description: DataStore Object
                        POSIT:
                          type: integer
                          format: int64
                          description: Position of the Field in the Structure / Table
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                          enum:
                          - X
                          - ''
                        INFOOBJECT:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        IOBJTP:
                          type: string
                          maxLength: 3
                          description: 'Type of an InfoObject  enumValues: DPA=Data packet characteristic,KYF=Key figure,UNI=Unit of measurement,CHA=Characteristic,TIM=Time characteristic'
                          enum:
                          - DPA
                          - KYF
                          - UNI
                          - CHA
                          - TIM
                  NAVIGATIONATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ODSOBJECT:
                          type: string
                          maxLength: 30
                          description: DataStore Object
                        ATRNAVNM:
                          type: string
                          maxLength: 30
                          description: Name of Navigation Attribute (in Reporting Structure)
                        ATTRINM:
                          type: string
                          maxLength: 30
                          description: Master data attribute
                        CHANM:
                          type: string
                          maxLength: 30
                          description: Characteristic
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
