openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_VIEW_INSERT:
    post:
      tags:
      - SIFD
      operationId: /rfc/RPY_VIEW_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEVELOPMENT_CLASS:
                  type: string
                  default: $TMP
                  maxLength: 30
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                TRANSPORT_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 20
                VIEW_HEAD:
                  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
                      - ''
                VIEW_NAME:
                  type: string
                  maxLength: 30
                VIEW_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      VIEWFIELD:
                        type: string
                        maxLength: 30
                        description: 'ABAP Dictionary: Name of view field'
                      VIFIELDPOS:
                        type: integer
                        format: int64
                        description: Position in a repetition group
                      TABLNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                        enum:
                        - X
                        - ''
                      DTELNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      DTELCHANGE:
                        type: string
                        maxLength: 1
                        description: 'Indicator for change to data element  enumValues: ""=No / FALSE,X=Yes / TRUE'
                        enum:
                        - ''
                        - X
                      READONLY:
                        type: string
                        maxLength: 1
                        description: 'Maintenance attribute for view field  enumValues: ""=View field is available as normal,R=View field can only be read,S=View field is used to form subsets,H=View field is not transferred to the maintenance screens'
                        enum:
                        - ''
                        - R
                        - S
                        - H
                      ENQMODE:
                        type: string
                        maxLength: 1
                        description: 'Lock mode  enumValues: E=Write Lock,X=Exclusive, not cumulative,S=Read Lock'
                        enum:
                        - E
                        - X
                        - S
                VIEW_SELCONDS:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Selection condition ID
                      POSITION:
                        type: integer
                        format: int64
                        description: Position in a repetition group
                      TABLNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      NEGATION:
                        type: string
                        maxLength: 3
                        description: 'NOT operator in selection conditions  enumValues: NOT=Negation'
                        enum:
                        - NOT
                      OPERATOR:
                        type: string
                        maxLength: 2
                        description: 'Operator in a selection condition  enumValues: NE=Not equal to,GT=Greater than,LE=less than or equal to,EQ=Equal to,LK=Like mask (allowed meta characters: ''_'' and ''%''),LT=Smaller than,GE=Greater than or equal to'
                        enum:
                        - NE
                        - GT
                        - LE
                        - EQ
                        - LK
                        - LT
                        - GE
                      CONSTANTS:
                        type: string
                        maxLength: 38
                        description: Constant in selection conditions
                      CONTLINE:
                        type: string
                        maxLength: 1
                        description: 'Flag for continuation line in selection conditions  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      AND_OR:
                        type: string
                        maxLength: 3
                        description: 'AND/OR link in a selection condition  enumValues: AND=AND operation,OR=OR operation'
                        enum:
                        - AND
                        - OR
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset within a matchcode field
                VIEW_TABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      TABLNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      TABPOS:
                        type: integer
                        format: int64
                        description: Position in a repetition group
                      FORTABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      FORFIELD:
                        type: string
                        maxLength: 30
                        description: Field Name
                      FORDIR:
                        type: string
                        maxLength: 1
                        description: 'Direction of Foreign Key Dependency  enumValues: I=Import,E=Export'
                        enum:
                        - I
                        - E
              required:
              - VIEW_HEAD
              - VIEW_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  VIEW_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        VIEWFIELD:
                          type: string
                          maxLength: 30
                          description: 'ABAP Dictionary: Name of view field'
                        VIFIELDPOS:
                          type: integer
                          format: int64
                          description: Position in a repetition group
                        TABLNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                          enum:
                          - X
                          - ''
                        DTELNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        DTELCHANGE:
                          type: string
                          maxLength: 1
                          description: 'Indicator for change to data element  enumValues: ""=No / FALSE,X=Yes / TRUE'
                          enum:
                          - ''
                          - X
                        READONLY:
                          type: string
                          maxLength: 1
                          description: 'Maintenance attribute for view field  enumValues: ""=View field is available as normal,R=View field can only be read,S=View field is used to form subsets,H=View field is not transferred to the maintenance screens'
                          enum:
                          - ''
                          - R
                          - S
                          - H
                        ENQMODE:
                          type: string
                          maxLength: 1
                          description: 'Lock mode  enumValues: E=Write Lock,X=Exclusive, not cumulative,S=Read Lock'
                          enum:
                          - E
                          - X
                          - S
                  VIEW_SELCONDS:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Selection condition ID
                        POSITION:
                          type: integer
                          format: int64
                          description: Position in a repetition group
                        TABLNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        NEGATION:
                          type: string
                          maxLength: 3
                          description: 'NOT operator in selection conditions  enumValues: NOT=Negation'
                          enum:
                          - NOT
                        OPERATOR:
                          type: string
                          maxLength: 2
                          description: 'Operator in a selection condition  enumValues: NE=Not equal to,GT=Greater than,LE=less than or equal to,EQ=Equal to,LK=Like mask (allowed meta characters: ''_'' and ''%''),LT=Smaller than,GE=Greater than or equal to'
                          enum:
                          - NE
                          - GT
                          - LE
                          - EQ
                          - LK
                          - LT
                          - GE
                        CONSTANTS:
                          type: string
                          maxLength: 38
                          description: Constant in selection conditions
                        CONTLINE:
                          type: string
                          maxLength: 1
                          description: 'Flag for continuation line in selection conditions  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        AND_OR:
                          type: string
                          maxLength: 3
                          description: 'AND/OR link in a selection condition  enumValues: AND=AND operation,OR=OR operation'
                          enum:
                          - AND
                          - OR
                        OFFSET:
                          type: integer
                          format: int64
                          description: Offset within a matchcode field
                  VIEW_TABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        TABLNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        TABPOS:
                          type: integer
                          format: int64
                          description: Position in a repetition group
                        FORTABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        FORFIELD:
                          type: string
                          maxLength: 30
                          description: Field Name
                        FORDIR:
                          type: string
                          maxLength: 1
                          description: 'Direction of Foreign Key Dependency  enumValues: I=Import,E=Export'
                          enum:
                          - I
                          - E
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
