openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWE_EVENT_CREATE:
    post:
      tags:
      - SWEA
      summary: Generate an event (public)
      operationId: /rfc/SWE_EVENT_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CREATOR:
                  type: object
                  properties:
                    OTYPE:
                      type: string
                      maxLength: 2
                      description: Object Type
                    OBJID:
                      type: string
                      maxLength: 12
                      description: Agent ID in Organizational Management
                DEBUG_FLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag for debugging in receiver FM
                EVENT:
                  type: string
                  maxLength: 32
                  description: Name of Event
                IDENT:
                  type: integer
                  format: int64
                  description: ID of event (only if previously in queue)
                NO_COMMIT_FOR_QUEUE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Entry in event queue without explicit COMMIT
                NO_LOGGING:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag for no logging
                OBJKEY:
                  type: string
                  maxLength: 70
                  description: ID (key) of triggering object
                OBJTYPE:
                  type: string
                  maxLength: 10
                  description: Type of triggering object
                START_RECFB_SYNCHRON:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag for synchronous call to receiver FM
                START_WITH_DELAY:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag for delayed start of aRFC
                TAKE_WORKITEM_REQUESTER:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Flag for using last WI as requester
                EVENT_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:
              - EVENT
              - OBJKEY
              - OBJTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EVENT_ID:
                    type: integer
                    format: int64
                    description: ID of triggered event
                  EVENT_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.
