openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_ECMORD_GET_LIST:
    post:
      tags:
      - ECM_BAPI_ORDER
      summary: Find Engineering Change Orders
      operationId: /rfc/BAPI_ECMORD_GET_LIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IF_STATUS_CLOSED:
                  type: string
                  default: X
                  maxLength: 1
                  description: Find Engineering Change Orders with Status 'Completed'
                IF_STATUS_DISTRIBUTE:
                  type: string
                  default: X
                  maxLength: 1
                  description: Find Engineering Change Orders with Status 'Distributable'
                IF_STATUS_NEW:
                  type: string
                  default: X
                  maxLength: 1
                  description: Find Engineering Change Orders with Status 'New'
                IF_STATUS_RELEASED:
                  type: string
                  default: X
                  maxLength: 1
                  description: Find Engineering Change Orders with Status 'Released'
                ET_ORDER_LIST:
                  type: array
                  items:
                    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
                IT_RANGE_DATE:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        format: date
                        description: Planned Release Date
                      HIGH:
                        type: string
                        format: date
                        description: Planned Release Date
                IT_RANGE_ORDER:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        maxLength: 12
                        description: Change Order
                      HIGH:
                        type: string
                        maxLength: 12
                        description: Change Order
                IT_RANGE_USER:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        maxLength: 12
                        description: Person Responsible
                      HIGH:
                        type: string
                        maxLength: 12
                        description: Person Responsible
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_ORDER_LIST:
                    type: array
                    items:
                      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
                  IT_RANGE_DATE:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          format: date
                          description: Planned Release Date
                        HIGH:
                          type: string
                          format: date
                          description: Planned Release Date
                  IT_RANGE_ORDER:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          maxLength: 12
                          description: Change Order
                        HIGH:
                          type: string
                          maxLength: 12
                          description: Change Order
                  IT_RANGE_USER:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          maxLength: 12
                          description: Person Responsible
                        HIGH:
                          type: string
                          maxLength: 12
                          description: Person Responsible
                  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.
