openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSWR_DB_BITEMPLATE_GET:
    post:
      tags:
      - RSWRTEMPLATE
      operationId: /rfc/RSWR_DB_BITEMPLATE_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CHECK_AUTH_ONLY:
                  type: object
                  properties:
                    BOOL:
                      type: string
                      maxLength: 1
                      description: 'Boolean  enumValues: X=True,""=False'
                      enum:
                      - X
                      - ''
                I_TMPLID:
                  type: string
                  maxLength: 30
                I_WITH_EXTERNAL_TEXTS:
                  type: string
                  default: ' '
                  maxLength: 30
                E_T_MESSAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTEXT_ID:
                        type: integer
                        format: int32
                        description: Object ID
                      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
                      TEXT:
                        type: string
                        maxLength: 220
                        description: Message Text
                E_T_TMPLTEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      TMPLID:
                        type: string
                        maxLength: 30
                        description: Technical Name of a Template
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      TEXT_KEY:
                        type: string
                        maxLength: 3
                        description: 'BW Web Templates: Text Key'
                      TEXT_ORDNUMC:
                        type: integer
                        format: int64
                        description: CR Textord
                      TEXT:
                        type: string
                        maxLength: 255
                        description: Text of length 255
                I_T_STATISTIC_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      EVENTID:
                        type: integer
                        format: int64
                        description: OLAP Statistics Event (Type NUMC9)
                      HANDLEID:
                        type: integer
                        format: int64
                        description: Internal ID of a Query Runtime Object
                      HANDLETP:
                        type: string
                        maxLength: 4
                        description: Internal Type of Query Runtime Object
                      OBJNAME:
                        type: string
                        maxLength: 30
                        description: OLAP Statistik Object Name  (QueryID, TemplateID,...)
                      EVTIME:
                        type: integer
                        format: int64
                        description: Validity Period
                      EVCOUNT:
                        type: integer
                        format: int64
                        description: 'BW Statistics: Number'
              required:
              - I_TMPLID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_BITEMPLATE:
                    type: string
                  E_MAX_MESSAGE_TYPE:
                    type: string
                    maxLength: 1
                  E_SUBRC:
                    type: integer
                    format: int32
                  E_S_TEMPLATE:
                    type: object
                    properties:
                      TMPLID:
                        type: string
                        maxLength: 30
                        description: Technical Name of a Template
                      TYPE:
                        type: integer
                        format: int64
                        description: 'Type of Template  enumValues: 04=Reusable Row Pattern,01=Building Block (without <head>, <body>),00=HTML Template (Default),02=ReportItem XML (Runtime),03=ReportItem XML (Designtime)'
                        enum:
                        - '04'
                        - '01'
                        - '00'
                        - '02'
                        - '03'
                      VARIABLESCREEN:
                        type: string
                        maxLength: 1
                        description: 'Boolean  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      STATELESS:
                        type: string
                        maxLength: 1
                        description: 'Boolean  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      ITEMLIB:
                        type: string
                        maxLength: 1
                        description: 'Boolean  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      TEXT:
                        type: string
                        maxLength: 60
                        description: Long description
                  E_TEXTS:
                    type: string
                  E_T_MESSAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTEXT_ID:
                          type: integer
                          format: int32
                          description: Object ID
                        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
                        TEXT:
                          type: string
                          maxLength: 220
                          description: Message Text
                  E_T_TMPLTEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        TMPLID:
                          type: string
                          maxLength: 30
                          description: Technical Name of a Template
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        TEXT_KEY:
                          type: string
                          maxLength: 3
                          description: 'BW Web Templates: Text Key'
                        TEXT_ORDNUMC:
                          type: integer
                          format: int64
                          description: CR Textord
                        TEXT:
                          type: string
                          maxLength: 255
                          description: Text of length 255
                  I_T_STATISTIC_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        EVENTID:
                          type: integer
                          format: int64
                          description: OLAP Statistics Event (Type NUMC9)
                        HANDLEID:
                          type: integer
                          format: int64
                          description: Internal ID of a Query Runtime Object
                        HANDLETP:
                          type: string
                          maxLength: 4
                          description: Internal Type of Query Runtime Object
                        OBJNAME:
                          type: string
                          maxLength: 30
                          description: OLAP Statistik Object Name  (QueryID, TemplateID,...)
                        EVTIME:
                          type: integer
                          format: int64
                          description: Validity Period
                        EVCOUNT:
                          type: integer
                          format: int64
                          description: 'BW Statistics: Number'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
