openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_ECMREQ_CREATE:
    post:
      tags:
      - ECM_BAPI_REQUEST
      summary: Create Engineering Change Request
      operationId: /rfc/BAPI_ECMREQ_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_DETAILS:
                  type: object
                  properties:
                    REQUEST:
                      type: string
                      maxLength: 12
                      description: Engineering Change Request
                    REQUEST_GUID:
                      type: string
                      format: byte
                      description: GUID for Engineering Change Request
                    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
                    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
                    REASON:
                      type: string
                      maxLength: 12
                      description: Reason for Triggering
                    PRIORITY:
                      type: string
                      maxLength: 12
                      description: 'Priority of Change  enumValues: B=High,D=Low,A=Very High,C=Medium'
                      enum:
                      - B
                      - D
                      - A
                      - C
                    SUBMITTER:
                      type: string
                      maxLength: 10
                      description: Business Partner Number
                    STATUS_SCHEMA:
                      type: string
                      maxLength: 8
                      description: Status profile
                    PARENT:
                      type: string
                      maxLength: 12
                      description: Engineering Change Request
                REQUEST_NEW:
                  type: string
                  maxLength: 12
                  description: Engineering Change Request
                IT_DESCRIPTIONS_REASON:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key from SAP Logon
                      LANGUAGE_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      DESCRIPTION:
                        type: string
                        maxLength: 40
                        description: Change Number Description
                IT_DESCRIPTIONS_SCOPE:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key from SAP Logon
                      LANGUAGE_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      DESCRIPTION:
                        type: string
                        maxLength: 40
                        description: Change Number Description
                IT_HIERARCHY:
                  type: array
                  items:
                    type: object
                    properties:
                      PARENT:
                        type: string
                        maxLength: 12
                        description: Change Order
                      PARENT_GUID:
                        type: string
                        format: byte
                        description: GUID for General Object in Engineering Change Management
                      PARENT_TYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      CHILD:
                        type: string
                        maxLength: 12
                        description: Change Order
                      CHILD_GUID:
                        type: string
                        format: byte
                        description: GUID for General Object in Engineering Change Management
                      CHILD_TYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                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
              required:
              - IS_DETAILS
              - REQUEST_NEW
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DESCRIPTIONS_REASON:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key from SAP Logon
                        LANGUAGE_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        DESCRIPTION:
                          type: string
                          maxLength: 40
                          description: Change Number Description
                  IT_DESCRIPTIONS_SCOPE:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key from SAP Logon
                        LANGUAGE_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        DESCRIPTION:
                          type: string
                          maxLength: 40
                          description: Change Number Description
                  IT_HIERARCHY:
                    type: array
                    items:
                      type: object
                      properties:
                        PARENT:
                          type: string
                          maxLength: 12
                          description: Change Order
                        PARENT_GUID:
                          type: string
                          format: byte
                          description: GUID for General Object in Engineering Change Management
                        PARENT_TYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        CHILD:
                          type: string
                          maxLength: 12
                          description: Change Order
                        CHILD_GUID:
                          type: string
                          format: byte
                          description: GUID for General Object in Engineering Change Management
                        CHILD_TYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                  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
                  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.
