openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWE_EVENT_LOG_WRITE:
    post:
      tags:
      - SWEL
      operationId: /rfc/SWE_EVENT_LOG_WRITE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DO_COMMIT:
                  type: string
                  default: X
                  maxLength: 1
                EVENT_ID:
                  type: integer
                  format: int64
                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_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  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.
