openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWE_EVENT_CREATE_INTERNAL:
    post:
      tags:
      - SWEA
      operationId: /rfc/SWE_EVENT_CREATE_INTERNAL
      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
                EVENT:
                  type: string
                  maxLength: 32
                  description: Name of Event
                EVT_GUID_IN:
                  type: string
                  default: ' '
                  maxLength: 32
                EVT_LOG_ID:
                  type: integer
                  format: int64
                  default: 0
                EVT_LOG_SYNCHRON:
                  type: string
                  default: ' '
                  maxLength: 1
                NO_LOGGING:
                  type: string
                  default: ' '
                  maxLength: 1
                OBJKEY:
                  type: string
                  maxLength: 70
                  description: ID (key) of triggering object
                OBJTYPE:
                  type: string
                  maxLength: 10
                  description: Type of triggering object
                RECFB:
                  type: string
                  maxLength: 30
                  description: Receiver Function Module
                RECTYPE:
                  type: string
                  maxLength: 14
                  description: Receiver Type
                RFCDEST:
                  type: string
                  default: ' '
                  maxLength: 32
                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
                LOG_ENTRIES:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      EVENT_ID:
                        type: integer
                        format: int64
                        description: ID of an event instance
                      RECTYPE:
                        type: string
                        maxLength: 14
                        description: Name of Receiver Type
                      RECID:
                        type: string
                        maxLength: 90
                        description: Receiver ID
                      RECFB:
                        type: string
                        maxLength: 30
                        description: Name of Receiver Function Module
                      RFCDEST:
                        type: string
                        maxLength: 32
                        description: Logical Destination (Specified in Function Call)
                      ERROR:
                        type: integer
                        format: int64
                        description: 'Event Trace: Error Number  enumValues: 0003=Check FM is invalid,0051=Linkage marked as "error",0010=Event linkage status "error",0040=Enter Event in Local Buffer,0060=Feedback after error,0050=Event entered in event queue,0004=Receiver FM is invalid,0009=Exception,0000=Receiver started correctly,0002=Receiver type FM without result,0005=Check FM ends with exception,0052=Linkage deactivated,0001=Receiver type FM is invalid,0007=No receiver entered,0008=Combined
                          field restriction has errors,0011=Internal RFC for Method Call,0020=Event deleted'
                        enum:
                        - '0003'
                        - '0051'
                        - '0010'
                        - '0040'
                        - '0060'
                        - '0050'
                        - '0004'
                        - '0009'
                        - '0000'
                        - '0002'
                        - '0005'
                        - '0052'
                        - '0001'
                        - '0007'
                        - '0008'
                        - '0011'
                        - '0020'
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                      EVENT:
                        type: string
                        maxLength: 32
                        description: Event
                      EV_PROGRAM:
                        type: string
                        maxLength: 40
                        description: Calling Program
                      EV_DATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      EV_TIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                      EV_USER:
                        type: string
                        maxLength: 12
                        description: User Name
                      RECGETFB:
                        type: string
                        maxLength: 30
                        description: Name of Receiver Type Function Module
                      CHECKFB:
                        type: string
                        maxLength: 30
                        description: Name of Check Function Module
                      EV_TRFC_ID:
                        type: string
                        maxLength: 24
                        description: TRFC_ID of triggered receiver function module
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
              required:
              - EVENT
              - OBJKEY
              - OBJTYPE
              - RECFB
              - RECTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EVENT_ID:
                    type: integer
                    format: int64
                    description: ID of triggered event
                  EVT_GUID_OUT:
                    type: string
                    maxLength: 32
                  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
                  LOG_ENTRIES:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        EVENT_ID:
                          type: integer
                          format: int64
                          description: ID of an event instance
                        RECTYPE:
                          type: string
                          maxLength: 14
                          description: Name of Receiver Type
                        RECID:
                          type: string
                          maxLength: 90
                          description: Receiver ID
                        RECFB:
                          type: string
                          maxLength: 30
                          description: Name of Receiver Function Module
                        RFCDEST:
                          type: string
                          maxLength: 32
                          description: Logical Destination (Specified in Function Call)
                        ERROR:
                          type: integer
                          format: int64
                          description: 'Event Trace: Error Number  enumValues: 0003=Check FM is invalid,0051=Linkage marked as "error",0010=Event linkage status "error",0040=Enter Event in Local Buffer,0060=Feedback after error,0050=Event entered in event queue,0004=Receiver FM is invalid,0009=Exception,0000=Receiver started correctly,0002=Receiver type FM without result,0005=Check FM ends with exception,0052=Linkage deactivated,0001=Receiver type FM is invalid,0007=No receiver entered,0008=Combined
                            field restriction has errors,0011=Internal RFC for Method Call,0020=Event deleted'
                          enum:
                          - '0003'
                          - '0051'
                          - '0010'
                          - '0040'
                          - '0060'
                          - '0050'
                          - '0004'
                          - '0009'
                          - '0000'
                          - '0002'
                          - '0005'
                          - '0052'
                          - '0001'
                          - '0007'
                          - '0008'
                          - '0011'
                          - '0020'
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        OBJKEY:
                          type: string
                          maxLength: 70
                          description: Object key
                        EVENT:
                          type: string
                          maxLength: 32
                          description: Event
                        EV_PROGRAM:
                          type: string
                          maxLength: 40
                          description: Calling Program
                        EV_DATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        EV_TIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                        EV_USER:
                          type: string
                          maxLength: 12
                          description: User Name
                        RECGETFB:
                          type: string
                          maxLength: 30
                          description: Name of Receiver Type Function Module
                        CHECKFB:
                          type: string
                          maxLength: 30
                          description: Name of Check Function Module
                        EV_TRFC_ID:
                          type: string
                          maxLength: 24
                          description: TRFC_ID of triggered receiver function module
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
