openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_XBP_APPL_LOG_CONTENT_GET:
    post:
      tags:
      - SXBP_EXT
      operationId: /rfc/BAPI_XBP_APPL_LOG_CONTENT_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_EXTERNAL_USER_NAME:
                  type: string
                  maxLength: 16
                I_LOGHANDLE:
                  type: string
                  maxLength: 22
                I_MESSAGES_FROM:
                  type: integer
                  format: int32
                  default: 1
                I_MESSAGES_TO:
                  type: integer
                  format: int32
                  default: 1000
              required:
              - I_EXTERNAL_USER_NAME
              - I_LOGHANDLE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_BAL_HEADER:
                    type: object
                    properties:
                      EXTNUMBER:
                        type: string
                        maxLength: 100
                        description: 'Application Log: External ID'
                      OBJECT:
                        type: string
                        maxLength: 20
                        description: 'Application log: Object name (Application code)'
                      SUBOBJECT:
                        type: string
                        maxLength: 20
                        description: 'Application Log: Subobject'
                      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)'
                      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'
                      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'
                      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'
                  E_BAL_STATISTIC:
                    type: object
                    properties:
                      MSG_CNT_AL:
                        type: integer
                        format: int32
                        description: 'Application Log: Total number of messages'
                      MSG_CNT_A:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of A messages'
                      MSG_CNT_E:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of E messages'
                      MSG_CNT_W:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of W messages'
                      MSG_CNT_I:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of I messages'
                      MSG_CNT_S:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of S messages'
                      MSG_MAX_PC:
                        type: string
                        maxLength: 1
                        description: 'Application log: Message problem class  enumValues: 2=important,4=Additional information,1=very important,3=medium,""=Other'
                        enum:
                        - '2'
                        - '4'
                        - '1'
                        - '3'
                        - ''
                      MSG_CNT_P1:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of messages with problem class 1'
                      MSG_CNT_P2:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of messages with problem class 2'
                      MSG_CNT_P3:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of messages with problem class 3'
                      MSG_CNT_P4:
                        type: integer
                        format: int32
                        description: 'Application Log: Number of messages with problem class 4'
                  E_TXT_ALMODE:
                    type: string
                    maxLength: 64
                  E_TXT_ALSTATE:
                    type: string
                    maxLength: 64
                  E_TXT_ALTCODE:
                    type: string
                    maxLength: 64
                  E_TXT_DEL_BEFORE:
                    type: string
                    maxLength: 64
                  E_TXT_OBJECT:
                    type: string
                    maxLength: 64
                  E_TXT_PROBCLASS:
                    type: string
                    maxLength: 64
                  E_TXT_SUBOBJECT:
                    type: string
                    maxLength: 64
                  E_T_MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        BAL_MESSAGE:
                          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'
                        TXT_MSGTY:
                          type: string
                          maxLength: 64
                          description: BAL Text
                        TXT_MSGID:
                          type: string
                          maxLength: 64
                          description: BAL Text
                        TXT_DETLEVEL:
                          type: string
                          maxLength: 64
                          description: BAL Text
                        TXT_PROBCLASS:
                          type: string
                          maxLength: 64
                          description: BAL Text
                        TXT_MSG:
                          type: string
                          maxLength: 255
                          description: ''
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
