openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDOC_ERROR_WORKFLOW_START_R:
    post:
      tags:
      - EDIW
      operationId: /rfc/IDOC_ERROR_WORKFLOW_START_R
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EVENTN:
                  type: string
                  maxLength: 14
                  description: Task ID
                G_WI_TYPE:
                  type: string
                  maxLength: 1
                  description: Work Item Type
                PRIORITY:
                  type: integer
                  format: int64
                  description: Priority of a Work Item
                SECONDARY_METHODS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_ID:
                        type: string
                        maxLength: 90
                        description: Object ID
                      METHOD:
                        type: string
                        maxLength: 32
                        description: Method
                      LEAD_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag for method type  enumValues: B=Before method (synchronously before main method),X=Main method,""=Secondary method (parallel to main method),A=After method (synchronously after main method)'
                        enum:
                        - B
                        - X
                        - ''
                        - A
                      ASYNC_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag if method is called asynchronously  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                WI_CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      TAB_INDEX:
                        type: integer
                        format: int64
                        description: Index for table element
                      ELEMLENGTH:
                        type: integer
                        format: int64
                        description: Length of the field in bytes
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP Type of element  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string (old
                          Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Character value
              required:
              - EVENTN
              - G_WI_TYPE
              - PRIORITY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SECONDARY_METHODS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_ID:
                          type: string
                          maxLength: 90
                          description: Object ID
                        METHOD:
                          type: string
                          maxLength: 32
                          description: Method
                        LEAD_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag for method type  enumValues: B=Before method (synchronously before main method),X=Main method,""=Secondary method (parallel to main method),A=After method (synchronously after main method)'
                          enum:
                          - B
                          - X
                          - ''
                          - A
                        ASYNC_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag if method is called asynchronously  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                  WI_CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        TAB_INDEX:
                          type: integer
                          format: int64
                          description: Index for table element
                        ELEMLENGTH:
                          type: integer
                          format: int64
                          description: Length of the field in bytes
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'ABAP Type of element  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                            (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                          enum:
                          - N
                          - s
                          - h
                          - y
                          - l
                          - b
                          - P
                          - T
                          - u
                          - I
                          - F
                          - v
                          - V
                          - X
                          - C
                          - g
                          - r
                          - D
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Character value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
