openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SOLAR_RFC_REFOBJ_GET_SAPSCRIPT:
    post:
      tags:
      - S_SOLAR_RFC_00
      operationId: /rfc/SOLAR_RFC_REFOBJ_GET_SAPSCRIPT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                I_REF_ID:
                  type: string
                  maxLength: 70
                  description: Deneric Assignment Object ID
                I_REF_TYPE:
                  type: string
                  maxLength: 4
                  description: Object Type
                I_RFC_DESTINATION:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Logical Destination (Specified in Function Call)
                E_DOC_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - I_REF_ID
              - I_REF_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_DOC_HEADER:
                    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
                  E_MESSAGE:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      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
                      MSGTXT:
                        type: string
                        maxLength: 256
                        description: Text, 256 Characters
                      OBJECTTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJECTID:
                        type: string
                        maxLength: 32
                        description: GUID for Structure
                      OBJECTTEXT:
                        type: string
                        maxLength: 100
                        description: Name
                      SCRTEXT:
                        type: string
                        maxLength: 20
                        description: Medium Field Label
                      ERRORCLASS:
                        type: string
                        maxLength: 10
                        description: 'Error class repository API  enumValues: ERR_AUTH=Authorization error,ERR_INT=Internal error,ERR_TRLOCK=Long-term lock on object,ERR_CONSIS=Object is inconsistent,ERR_LANGU=Object has other master language,ERR_PARAM=Function module incorrectly parameterized,ERR_ENQ=Temporary lock on object,ERR_EXIST=Object does not exist,ERR_DOUBLE=Object already exists'
                        enum:
                        - ERR_AUTH
                        - ERR_INT
                        - ERR_TRLOCK
                        - ERR_CONSIS
                        - ERR_LANGU
                        - ERR_PARAM
                        - ERR_ENQ
                        - ERR_EXIST
                        - ERR_DOUBLE
                  E_DOC_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
