openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDIT_TEXT_EXIT_TD:
    post:
      tags:
      - SDOC
      summary: Internal - SAPscript editor exit
      operationId: /rfc/EDIT_TEXT_EXIT_TD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHANGED:
                  type: string
                  default: ' '
                  maxLength: 1
                DISPLAY:
                  type: string
                  maxLength: 1
                FCODE:
                  type: string
                  default: DISP
                  maxLength: 70
                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
                MARKED_STRING:
                  type: string
                  default: ' '
                  maxLength: 132
                EXCLUDES:
                  type: array
                  items:
                    type: object
                    properties:
                      UCOM:
                        type: string
                        maxLength: 70
                        description: Function code that PAI triggered
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Message number
                LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - DISPLAY
              - HEADER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXIT:
                    type: string
                    maxLength: 1
                  FUNCTION:
                    type: string
                    maxLength: 1
                  NEWCHANGED:
                    type: string
                    maxLength: 1
                  NEWCURSOR:
                    type: string
                    maxLength: 1
                  NEWDISPLAY:
                    type: string
                    maxLength: 1
                  NEWHEADER:
                    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
                  STRING_TO_DELETE:
                    type: string
                    maxLength: 132
                  STRING_TO_INSERT:
                    type: string
                    maxLength: 132
                  EXCLUDES:
                    type: array
                    items:
                      type: object
                      properties:
                        UCOM:
                          type: string
                          maxLength: 70
                          description: Function code that PAI triggered
                        MSGNR:
                          type: string
                          maxLength: 3
                          description: Message number
                  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.
