openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/OSP/GENERATE_REPORT_DOC:
    post:
      tags:
      - /OSP/R3_REPORT
      summary: Report Long Text Information
      operationId: /rfc/OSP/GENERATE_REPORT_DOC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_REPORT_NAME:
                  type: array
                  items:
                    type: string
                    maxLength: 40
                    description: ABAP Program Name
              required:
              - IT_REPORT_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_LONG_DESC:
                    type: array
                    items:
                      type: object
                      properties:
                        REPORT_NAME:
                          type: string
                          maxLength: 40
                          description: Report Name
                        HEADER_INFO:
                          type: object
                          properties:
                            TDOBJECT:
                              type: string
                              maxLength: 10
                              description: 'Texts: application object'
                            TDNAME:
                              type: string
                              maxLength: 70
                              description: Name
                            TDID:
                              type: string
                              maxLength: 4
                              description: Text ID
                            TDSPRAS:
                              type: string
                              maxLength: 1
                              description: Language Key
                            TDTITLE:
                              type: string
                              maxLength: 50
                              description: Title in dialog box
                            TDFORM:
                              type: string
                              maxLength: 16
                              description: Form name
                            TDSTYLE:
                              type: string
                              maxLength: 8
                              description: Style Name
                            TDVERSION:
                              type: integer
                              format: int64
                              description: Version
                            TDFUSER:
                              type: string
                              maxLength: 12
                              description: Created by
                            TDFRELES:
                              type: string
                              maxLength: 4
                              description: Release
                            TDFDATE:
                              type: string
                              format: date
                              description: Date created
                            TDFTIME:
                              type: string
                              maxLength: 6
                              description: Time Created
                            TDLUSER:
                              type: string
                              maxLength: 12
                              description: Last changed by
                            TDLRELES:
                              type: string
                              maxLength: 4
                              description: Last Changed in Release
                            TDLDATE:
                              type: string
                              format: date
                              description: Changed On
                            TDLTIME:
                              type: string
                              maxLength: 6
                              description: Last Changed at
                            TDLINESIZE:
                              type: integer
                              format: int64
                              description: 'Line Width  enumValues: 040='
                              enum:
                              - '040'
                            TDTXTLINES:
                              type: integer
                              format: int64
                              description: Number of Text Lines in Line Table
                            TDHYPHENAT:
                              type: string
                              maxLength: 1
                              description: 'Hyphenation Active  enumValues: ""=No,X=Yes'
                              enum:
                              - ''
                              - X
                            TDOSPRAS:
                              type: string
                              maxLength: 1
                              description: Original language
                            TDTRANSTAT:
                              type: integer
                              format: int64
                              description: Translation status
                            TDMACODE1:
                              type: string
                              maxLength: 16
                              description: Short Title 1
                            TDMACODE2:
                              type: string
                              maxLength: 16
                              description: Short Title 2
                            TDREFOBJ:
                              type: string
                              maxLength: 10
                              description: Object of Referenced Text
                            TDREFNAME:
                              type: string
                              maxLength: 70
                              description: Name of Referenced Text
                            TDREFID:
                              type: string
                              maxLength: 4
                              description: ID of Referenced Text
                            TDTEXTTYPE:
                              type: string
                              maxLength: 6
                              description: 'SAPscript: Format of Text'
                            TDCOMPRESS:
                              type: string
                              maxLength: 1
                              description: 'SAPscript: Text is compressed'
                            MANDT:
                              type: string
                              maxLength: 3
                              description: Client
                            TDOCLASS:
                              type: string
                              maxLength: 4
                              description: 'SAPscript: Object Class'
                            LOGSYS:
                              type: string
                              maxLength: 10
                              description: Logical system
                        LONG_DESC:
                          type: array
                          items:
                            type: object
                            properties:
                              TDFORMAT:
                                type: string
                                maxLength: 2
                                description: Tag column
                              TDLINE:
                                type: string
                                maxLength: 132
                                description: Text Line
                  ET_RETURN:
                    type: array
                    items:
                      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.
