openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BM_STRUCTURE_VERSION_CREATE:
    post:
      tags:
      - SBM_VERSION
      operationId: /rfc/BM_STRUCTURE_VERSION_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_BATCH:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Data element for Flag - Any use
                I_LANGUAGE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                I_STRUCT_ID:
                  type: string
                  maxLength: 32
                I_SUBSTRUCT_VERSIONS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Data element for Flag - Any use
                I_VERSION_TEXT:
                  type: string
                  maxLength: 75
                  description: Explanatory text
                MESSAGES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGTXT:
                        type: string
                        maxLength: 256
                        description: Text, 256 Characters
                      OBJECTTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJECTID:
                        type: string
                        maxLength: 32
                        description: GUID for Structure
                      OBJECTTEXT:
                        type: string
                        maxLength: 100
                        description: Name
                      SCRTEXT:
                        type: string
                        maxLength: 20
                        description: Medium Field Label
                      ERRORCLASS:
                        type: string
                        maxLength: 10
                        description: Error class repository API
              required:
              - I_STRUCT_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_VERSION_ID:
                    type: string
                    maxLength: 32
                    description: Version ID
                  MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGTXT:
                          type: string
                          maxLength: 256
                          description: Text, 256 Characters
                        OBJECTTYPE:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OBJECTID:
                          type: string
                          maxLength: 32
                          description: GUID for Structure
                        OBJECTTEXT:
                          type: string
                          maxLength: 100
                          description: Name
                        SCRTEXT:
                          type: string
                          maxLength: 20
                          description: Medium Field Label
                        ERRORCLASS:
                          type: string
                          maxLength: 10
                          description: Error class repository API
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
