openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DD_INDEX_INTERFACE:
    post:
      tags:
      - SDAP
      summary: 'DD: Create, delete, activate indexes in the ABAP/4 Dictionary'
      operationId: /rfc/DD_INDEX_INTERFACE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: string
                  default: I
                  maxLength: 1
                  description: Insert(I)/Change(U)/Delete(D)
                ACTIVATE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'X: Activate immediately and create in DB'
                INDEX_NAME:
                  type: string
                  maxLength: 3
                  description: Index ID (1 to 3 positions)
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language in which the short text is to be written
                NO_TRANSP_REQUEST:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'X: Activate immediately and create in DB'
                SHORTTEXT:
                  type: string
                  default: ' '
                  maxLength: 60
                  description: Short description
                TABLE_NAME:
                  type: string
                  maxLength: 30
                  description: Table name (4 to 10 positions)
                TRANSPORT_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 20
                  description: Transport/repair request
                UNIQUE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Define index uniquely. (X = unique)
                INDEX_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 30
                        description: Field Name
              required:
              - INDEX_NAME
              - TABLE_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACTFAILED:
                    type: string
                    maxLength: 1
                    description: 'X: Activate immediately and create in DB'
                  INDEX_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 30
                          description: Field Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
