openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RH_TYPE_STRUC_INDEX:
    post:
      tags:
      - RHWH
      operationId: /rfc/RH_TYPE_STRUC_INDEX
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_BEGDA:
                  type: string
                  format: date
                  default: SY-DATUM
                ACT_ENDDA:
                  type: string
                  format: date
                  default: SY-DATUM
                ACT_PLVAR:
                  type: string
                  maxLength: 2
                ACT_SVECT:
                  type: string
                  default: '1234'
                  maxLength: 5
                ACT_WEGID:
                  type: string
                  maxLength: 8
                NO_EXPORT_TO_INDX:
                  type: string
                  maxLength: 1
                NO_UNREL:
                  type: string
                  default: '?'
                  maxLength: 1
                SRK_OTYPE:
                  type: string
                  maxLength: 2
                UPDATE_INDEX:
                  type: string
                  maxLength: 1
                NOT_RELATED_INDEX:
                  type: array
                  items:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                ROOT_OBJECT_INDEX:
                  type: array
                  items:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
              required:
              - ACT_PLVAR
              - ACT_WEGID
              - SRK_OTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NO_INDEX_NEEDED:
                    type: string
                    maxLength: 1
                  NOT_RELATED_INDEX:
                    type: array
                    items:
                      type: object
                      properties:
                        PLVAR:
                          type: string
                          maxLength: 2
                          description: Plan Version
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                  ROOT_OBJECT_INDEX:
                    type: array
                    items:
                      type: object
                      properties:
                        PLVAR:
                          type: string
                          maxLength: 2
                          description: Plan Version
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
