openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_VIEW_SELECT:
    post:
      tags:
      - SIFD
      operationId: /rfc/RPY_VIEW_SELECT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVATION_TYPE:
                  type: string
                  default: M
                  maxLength: 1
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                VIEW_NAME:
                  type: string
                  default: '*'
                  maxLength: 30
                VIEW_HEAD_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      AGGTYPE:
                        type: string
                        maxLength: 1
                        description: 'Aggregate Type  enumValues: M=Matchcode object,V=View,E=Lock object'
                        enum:
                        - M
                        - V
                        - E
                      READONLY:
                        type: string
                        maxLength: 1
                        description: 'Read-only flag for views  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      ROOTTAB:
                        type: string
                        maxLength: 30
                        description: Primary table of an aggregate
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Last Changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      MOD_TIME:
                        type: string
                        maxLength: 6
                        description: Last changed at
                      DDTEXT:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                      VIEWCLASS:
                        type: string
                        maxLength: 1
                        description: 'View Type  enumValues: ""=,P=Projection view,E=Entity view (no longer supported),C=Maintenance view,H=Help view,D=Database view,V=View variant,A=Append view,S=Structure view, data selection not possible'
                        enum:
                        - ''
                        - P
                        - E
                        - C
                        - H
                        - D
                        - V
                        - A
                        - S
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Original Language in Repository objects
                      DELIVERYCL:
                        type: string
                        maxLength: 1
                        description: 'Delivery class  enumValues: C=Customizing table, maintenance only by cust., not SAP import,G=Customizing table, protected against SAP Upd., only INS all.,A=Application table (master and transaction data),E=Control table, SAP and customer have separate key areas,W=System table, contents transportable via separate TR objects,S=System table, maint. only by SAP, change = modification,L=Table for storing temporary data, delivered empty'
                        enum:
                        - C
                        - G
                        - A
                        - E
                        - W
                        - S
                        - L
                      VIEWGRANT:
                        type: string
                        maxLength: 1
                        description: 'Maintenance status (modif. authorization) for view data  enumValues: M=Time-dependent views: like U, validity data like '' '',U=read and change,R=read only,""=read, change, delete and insert'
                        enum:
                        - M
                        - U
                        - R
                        - ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  VIEW_HEAD_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        AGGTYPE:
                          type: string
                          maxLength: 1
                          description: 'Aggregate Type  enumValues: M=Matchcode object,V=View,E=Lock object'
                          enum:
                          - M
                          - V
                          - E
                        READONLY:
                          type: string
                          maxLength: 1
                          description: 'Read-only flag for views  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        ROOTTAB:
                          type: string
                          maxLength: 30
                          description: Primary table of an aggregate
                        MOD_USER:
                          type: string
                          maxLength: 12
                          description: Last Changed by
                        MOD_DATE:
                          type: string
                          format: date
                          description: Date of Last Change
                        MOD_TIME:
                          type: string
                          maxLength: 6
                          description: Last changed at
                        DDTEXT:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                        VIEWCLASS:
                          type: string
                          maxLength: 1
                          description: 'View Type  enumValues: ""=,P=Projection view,E=Entity view (no longer supported),C=Maintenance view,H=Help view,D=Database view,V=View variant,A=Append view,S=Structure view, data selection not possible'
                          enum:
                          - ''
                          - P
                          - E
                          - C
                          - H
                          - D
                          - V
                          - A
                          - S
                        MASTERLANG:
                          type: string
                          maxLength: 1
                          description: Original Language in Repository objects
                        DELIVERYCL:
                          type: string
                          maxLength: 1
                          description: 'Delivery class  enumValues: C=Customizing table, maintenance only by cust., not SAP import,G=Customizing table, protected against SAP Upd., only INS all.,A=Application table (master and transaction data),E=Control table, SAP and customer have separate key areas,W=System table, contents transportable via separate TR objects,S=System table, maint. only by SAP, change = modification,L=Table for storing temporary data, delivered empty'
                          enum:
                          - C
                          - G
                          - A
                          - E
                          - W
                          - S
                          - L
                        VIEWGRANT:
                          type: string
                          maxLength: 1
                          description: 'Maintenance status (modif. authorization) for view data  enumValues: M=Time-dependent views: like U, validity data like '' '',U=read and change,R=read only,""=read, change, delete and insert'
                          enum:
                          - M
                          - U
                          - R
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
