openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DX_TASK_GET_BALLOG_MSGS:
    post:
      tags:
      - DX_RUN
      summary: Read Application Log for Run
      operationId: /rfc/DX_TASK_GET_BALLOG_MSGS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MSGTYP:
                  type: string
                  maxLength: 1
                  description: 'Application Log: MSGTY Range Table'
                PROJECT:
                  type: string
                  maxLength: 15
                RUNDEF:
                  type: string
                  maxLength: 15
                RUNID:
                  type: integer
                  format: int64
                SUBPROJECT:
                  type: string
                  maxLength: 15
                TASK:
                  type: string
                  maxLength: 15
                  description: Data transfer task
              required:
              - PROJECT
              - RUNDEF
              - RUNID
              - SUBPROJECT
              - TASK
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOG_HANDLES:
                    type: array
                    items:
                      type: string
                      maxLength: 22
                      description: 'Application Log: Log Handle'
                  LOG_HEADERS:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDANT:
                          type: string
                          maxLength: 3
                          description: Client
                        LOGNUMBER:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        OBJECT:
                          type: string
                          maxLength: 20
                          description: 'Application log: Object name (Application code)'
                        SUBOBJECT:
                          type: string
                          maxLength: 20
                          description: 'Application Log: Subobject'
                        EXTNUMBER:
                          type: string
                          maxLength: 100
                          description: 'Application Log: External ID'
                        ALDATE:
                          type: string
                          format: date
                          description: 'Application log: date'
                        ALTIME:
                          type: string
                          maxLength: 6
                          description: 'Application log: time'
                        ALUSER:
                          type: string
                          maxLength: 12
                          description: 'Application log: user name'
                        ALTCODE:
                          type: string
                          maxLength: 20
                          description: 'Application Log: Transaction code'
                        ALPROG:
                          type: string
                          maxLength: 40
                          description: 'Application log: Program name'
                        ALMODE:
                          type: string
                          maxLength: 1
                          description: 'Application Log: Operating mode (Batch,Batch Input,Dialog)'
                        ALTEXT:
                          type: string
                          maxLength: 28
                          description: 'Application log: Standard text'
                        USEREXITP:
                          type: string
                          maxLength: 40
                          description: 'Application Log: Callback: Program name'
                        USEREXITF:
                          type: string
                          maxLength: 30
                          description: 'Application Log: Callback: Routine name'
                        PROBCLASS:
                          type: string
                          maxLength: 1
                          description: 'Application Log: Log problem class'
                        ALDATE_DEL:
                          type: string
                          format: date
                          description: 'Application log: expiry date'
                        DEL_BEFORE:
                          type: string
                          maxLength: 1
                          description: 'Application Log: Keep log until expiry'
                        ALSTATE:
                          type: string
                          maxLength: 1
                          description: 'Application log: processing status'
                        USEREXITT:
                          type: string
                          maxLength: 1
                          description: 'Application Log: Callback: Type (Ext. Perform, FM, etc.)'
                        ALCHDATE:
                          type: string
                          format: date
                          description: 'Application Log: Date of last change'
                        ALCHTIME:
                          type: string
                          maxLength: 6
                          description: 'Application Log: Time of last change'
                        ALCHUSER:
                          type: string
                          maxLength: 12
                          description: 'Application Log: User that changed the log'
                        LOG_HANDLE:
                          type: string
                          maxLength: 22
                          description: 'Application Log: Log Handle'
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: 'Application Log: Context: DDIC structure name'
                        MSG_CNT_AL:
                          type: integer
                          format: int64
                          description: 'Application Log: Total number of messages'
                        MSG_CNT_A:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of A messages'
                        MSG_CNT_E:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of E messages'
                        MSG_CNT_W:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of W messages'
                        MSG_CNT_I:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of I messages'
                        MSG_CNT_S:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of S messages'
                        LAST_MSGNR:
                          type: integer
                          format: int64
                          description: 'ApplicationLog: Last message serial number assigned'
                        TIM_STMP:
                          type: integer
                          format: int64
                          description: 'Application log: Time basis for context nametab'
                        DB_VERSION:
                          type: string
                          maxLength: 4
                          description: 'Application Log: Database repository format'
                        MSG_CNT_P1:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of messages with problem class 1'
                        MSG_CNT_P2:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of messages with problem class 2'
                        MSG_CNT_P3:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of messages with problem class 3'
                        MSG_CNT_P4:
                          type: integer
                          format: int64
                          description: 'Application Log: Number of messages with problem class 4'
                        CLIENT_CRE:
                          type: string
                          maxLength: 3
                          description: 'Application Log: Client in which a log was created'
                        CHAR_SIZE:
                          type: integer
                          format: int64
                          description: 'Application Log: Size of a Character in Bytes'
                  MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        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
                        MSGV1_SRC:
                          type: string
                          maxLength: 15
                          description: 'Application Log: Origin of a message variable'
                        MSGV2_SRC:
                          type: string
                          maxLength: 15
                          description: 'Application Log: Origin of a message variable'
                        MSGV3_SRC:
                          type: string
                          maxLength: 15
                          description: 'Application Log: Origin of a message variable'
                        MSGV4_SRC:
                          type: string
                          maxLength: 15
                          description: 'Application Log: Origin of a message variable'
                        DETLEVEL:
                          type: string
                          maxLength: 1
                          description: 'Application Log: Level of detail'
                        PROBCLASS:
                          type: string
                          maxLength: 1
                          description: 'Application log: Message problem class'
                        ALSORT:
                          type: string
                          maxLength: 3
                          description: 'Application log: Sort criterion/grouping'
                        TIME_STMP:
                          type: integer
                          format: int64
                          description: 'Application Log: Message time stamp'
                        MSG_COUNT:
                          type: integer
                          format: int32
                          description: 'Application Log: Cumulated message count'
                        CONTEXT:
                          type: object
                          properties:
                            TABNAME:
                              type: string
                              maxLength: 30
                              description: 'Application Log: Context: DDIC structure name'
                            VALUE:
                              type: string
                              maxLength: 256
                              description: 'Application Log: Context data'
                        PARAMS:
                          type: object
                          properties:
                            CALLBACK:
                              type: object
                              properties:
                                USEREXITP:
                                  type: string
                                  maxLength: 40
                                  description: 'Application Log: Callback: Program name'
                                USEREXITF:
                                  type: string
                                  maxLength: 30
                                  description: 'Application Log: Callback: Routine name'
                                USEREXITT:
                                  type: string
                                  maxLength: 1
                                  description: 'Application Log: Callback: Type (Ext. Perform, FM, etc.)  enumValues: ""=External perform,F=Function module'
                                  enum:
                                  - ''
                                  - F
                            ALTEXT:
                              type: string
                              maxLength: 28
                              description: 'Application log: Standard text'
                            T_PAR:
                              type: array
                              items:
                                type: object
                                properties:
                                  PARNAME:
                                    type: string
                                    maxLength: 10
                                    description: 'Application log: Parameters'
                                  PARVALUE:
                                    type: string
                                    maxLength: 75
                                    description: 'Application log: Parameter value'
                  MSGTEXTS:
                    type: array
                    items:
                      type: string
                      description: ''
                  MSG_HANDLES:
                    type: array
                    items:
                      type: object
                      properties:
                        LOG_HANDLE:
                          type: string
                          maxLength: 22
                          description: 'Application Log: Log Handle'
                        MSGNUMBER:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
