openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_ECMORD_CREATE:
    post:
      tags:
      - ECM_BAPI_ORDER
      summary: Create Engineering Change Order
      operationId: /rfc/BAPI_ECMORD_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DETAILS:
                  type: object
                  properties:
                    CHANGE_ORDER:
                      type: string
                      maxLength: 12
                      description: Change Order
                    CHANGE_ORDER_GUID:
                      type: string
                      format: byte
                      description: GUID for Engineering Change Order
                    CHANGE_KIND:
                      type: string
                      maxLength: 10
                      description: Change Type
                    ORDER_TYPE:
                      type: string
                      maxLength: 1
                      description: 'Category of Engineering Change Order  enumValues: V=Validity Only,C=Corrections Only,F=Validity As Filter and So On,L=Local Validity,N=Normal'
                      enum:
                      - V
                      - C
                      - F
                      - L
                      - N
                    PRIORITY:
                      type: string
                      maxLength: 12
                      description: 'Priority of Change  enumValues: B=High,D=Low,A=Very High,C=Medium'
                      enum:
                      - B
                      - D
                      - A
                      - C
                    USER_GROUP:
                      type: string
                      maxLength: 30
                      description: User Group
                    RESPONSIBLE:
                      type: string
                      maxLength: 12
                      description: Person Responsible
                    DELETION:
                      type: string
                      maxLength: 1
                      description: 'Deletion Indicator  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                      enum:
                      - X
                      - ''
                    RELEASE_DATE:
                      type: string
                      format: date
                      description: Planned Release Date
                ORDER_NEW:
                  type: string
                  maxLength: 12
                  description: Engineering Change Order
                IT_DESCRIPTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGUAGE_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      DESCRIPTION:
                        type: string
                        maxLength: 40
                        description: Change Number Description
                IT_PARAMETER:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTEXT:
                        type: string
                        maxLength: 30
                        description: Context
                      PARAM_NAME:
                        type: string
                        maxLength: 25
                        description: 'Effectivity: defining parameter'
                      PARAM_LOW:
                        type: string
                        maxLength: 50
                        description: 'Parameter Value: Lower Limit'
                      PARAM_HIGH:
                        type: string
                        maxLength: 50
                        description: 'Parameter Value: Upper Limit'
                      PARAM_COUNT:
                        type: integer
                        format: int32
                        description: Counter
                IT_STATUS:
                  type: array
                  items:
                    type: object
                    properties:
                      STATUS_SYSTEM:
                        type: string
                        maxLength: 5
                        description: Object status
                      STATUS:
                        type: string
                        maxLength: 4
                        description: Individual status of an object (short form)
                      STATUS_DESCR:
                        type: string
                        maxLength: 30
                        description: Object status
                      INACTIVE:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Status Is Inactive  enumValues: ""=Active,X=Not active'
                        enum:
                        - ''
                        - X
                IT_VALIDITY:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTEXT:
                        type: string
                        maxLength: 30
                        description: Context
                      STATUS:
                        type: string
                        maxLength: 4
                        description: Individual status of an object (short form)
                      RELEASED:
                        type: integer
                        format: int64
                        description: Released On
                      DATE_FROM:
                        type: string
                        format: date
                        description: From Date
                      DATE_TO:
                        type: string
                        format: date
                        description: To Date
              required:
              - DETAILS
              - ORDER_NEW
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DESCRIPTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGUAGE_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        DESCRIPTION:
                          type: string
                          maxLength: 40
                          description: Change Number Description
                  IT_PARAMETER:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTEXT:
                          type: string
                          maxLength: 30
                          description: Context
                        PARAM_NAME:
                          type: string
                          maxLength: 25
                          description: 'Effectivity: defining parameter'
                        PARAM_LOW:
                          type: string
                          maxLength: 50
                          description: 'Parameter Value: Lower Limit'
                        PARAM_HIGH:
                          type: string
                          maxLength: 50
                          description: 'Parameter Value: Upper Limit'
                        PARAM_COUNT:
                          type: integer
                          format: int32
                          description: Counter
                  IT_STATUS:
                    type: array
                    items:
                      type: object
                      properties:
                        STATUS_SYSTEM:
                          type: string
                          maxLength: 5
                          description: Object status
                        STATUS:
                          type: string
                          maxLength: 4
                          description: Individual status of an object (short form)
                        STATUS_DESCR:
                          type: string
                          maxLength: 30
                          description: Object status
                        INACTIVE:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Status Is Inactive  enumValues: ""=Active,X=Not active'
                          enum:
                          - ''
                          - X
                  IT_VALIDITY:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTEXT:
                          type: string
                          maxLength: 30
                          description: Context
                        STATUS:
                          type: string
                          maxLength: 4
                          description: Individual status of an object (short form)
                        RELEASED:
                          type: integer
                          format: int64
                          description: Released On
                        DATE_FROM:
                          type: string
                          format: date
                          description: From Date
                        DATE_TO:
                          type: string
                          format: date
                          description: To Date
                  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.
