openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BTF_REPLACE_FIELDS:
    post:
      tags:
      - SBTF
      summary: Field Replacement
      operationId: /rfc/BTF_REPLACE_FIELDS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BEHAVIOUR:
                  type: integer
                  format: int32
                  description: Replacement Behaviour
                CFG_STANDARD:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        description: BTF Configuration Name
                      VALUE:
                        type: string
                        description: BTF Configuration Value
                ENCODING:
                  type: string
                  description: Character Set
                FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        description: Name
                      DESCRIPTOR:
                        type: string
                        description: Description
                      VALUE:
                        type: string
                        description: Replacement Value
                      REPLACE:
                        type: string
                        maxLength: 1
                        description: Replace Yes/No
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                TEXT_IN:
                  type: string
                  format: byte
                  description: Text
              required:
              - BEHAVIOUR
              - CFG_STANDARD
              - ENCODING
              - FIELDS
              - TEXT_IN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TEXT_OUT:
                    type: string
                    format: byte
                    description: Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
