openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_VIEW_READ:
    post:
      tags:
      - SIFD
      summary: Read View
      operationId: /rfc/RPY_VIEW_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIVATION_TYPE_I:
                  type: string
                  default: M
                  maxLength: 1
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                VIEW_NAME:
                  type: string
                  maxLength: 30
                  description: Name of the view to be read
                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
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Check table name of the foreign key
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                          accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                          field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                        enum:
                        - NUMC
                        - INT2
                        - DEC
                        - VARC
                        - INT1
                        - RAW
                        - CUKY
                        - QUAN
                        - FLTP
                        - LRAW
                        - PREC
                        - CHAR
                        - ACCP
                        - INT4
                        - RSTR
                        - STRG
                        - LANG
                        - TIMS
                        - UNIT
                        - CLNT
                        - DATS
                        - LCHR
                        - CURR
                        - SSTR
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      SHORTTEXT:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      DOMANAME:
                        type: string
                        maxLength: 30
                        description: Parameter for domain name
                      VALUETAB:
                        type: string
                        maxLength: 30
                        description: Value table
                      LENGTH:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      HEADLENGTH:
                        type: integer
                        format: int64
                        description: Maximum length of heading
                      INTLENGTH:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      INTTYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                          (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      LOGFLAG:
                        type: string
                        maxLength: 1
                        description: 'Indicator for writing change documents  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      PARAMID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      REFTABLE:
                        type: string
                        maxLength: 30
                        description: Table for reference field
                      REPTEXT:
                        type: string
                        maxLength: 55
                        description: Heading
                      DTELNAMEVI:
                        type: string
                        maxLength: 30
                        description: Data element of a view field
                      SCRLEN_S:
                        type: integer
                        format: int64
                        description: Max. length for short field label
                      SCRLEN_M:
                        type: integer
                        format: int64
                        description: Max. length for medium field label
                      SCRLEN_L:
                        type: integer
                        format: int64
                        description: Max. length for long field label
                      SCRTEXT_S:
                        type: string
                        maxLength: 10
                        description: Short Field Label
                      SCRTEXT_M:
                        type: string
                        maxLength: 20
                        description: Medium Field Label
                      SCRTEXT_L:
                        type: string
                        maxLength: 40
                        description: Long Field Label
                      SIGNFLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      VALUEEXIST:
                        type: string
                        maxLength: 1
                        description: 'Existence of fixed values  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                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_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACTIVATION_TYPE_O:
                    type: string
                    maxLength: 1
                  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_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
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Check table name of the foreign key
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'Data Type in ABAP Dictionary  enumValues: NUMC=Character string with only digits,INT2=2-byte integer, only for length field before LCHR or LRAW,DEC=Counter or amount field with comma and sign,VARC=Long character string, no longer supported from Rel. 3.0,INT1=1-byte integer, integer number <= 255,RAW=Uninterpreted sequence of bytes,CUKY=Currency key, referenced by CURR fields,QUAN=Quantity field, points to a unit field with format UNIT,FLTP=Floating point number,
                            accurate to 8 bytes,LRAW=Long byte string, requires preceding INT2 field,PREC=Precision of a QUAN field,CHAR=Character String,ACCP=Posting period YYYYMM,INT4=4-byte integer, integer number with sign,RSTR=Byte String of Variable Length,STRG=Character String of Variable Length,LANG=Language key,TIMS=Time field (hhmmss), stored as char(6),UNIT=Unit key for QUAN fields,CLNT=Client,DATS=Date field (YYYYMMDD) stored as char(8),LCHR=Long character string, requires preceding INT2
                            field,CURR=Currency field, stored as DEC,SSTR=Short Character String of Variable Length'
                          enum:
                          - NUMC
                          - INT2
                          - DEC
                          - VARC
                          - INT1
                          - RAW
                          - CUKY
                          - QUAN
                          - FLTP
                          - LRAW
                          - PREC
                          - CHAR
                          - ACCP
                          - INT4
                          - RSTR
                          - STRG
                          - LANG
                          - TIMS
                          - UNIT
                          - CLNT
                          - DATS
                          - LCHR
                          - CURR
                          - SSTR
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        SHORTTEXT:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        DOMANAME:
                          type: string
                          maxLength: 30
                          description: Parameter for domain name
                        VALUETAB:
                          type: string
                          maxLength: 30
                          description: Value table
                        LENGTH:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        HEADLENGTH:
                          type: integer
                          format: int64
                          description: Maximum length of heading
                        INTLENGTH:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        INTTYPE:
                          type: string
                          maxLength: 1
                          description: 'ABAP data type (C,D,N,...)  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character
                            string (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                          enum:
                          - N
                          - s
                          - h
                          - y
                          - l
                          - b
                          - P
                          - T
                          - u
                          - I
                          - F
                          - v
                          - V
                          - X
                          - C
                          - g
                          - r
                          - D
                        LOGFLAG:
                          type: string
                          maxLength: 1
                          description: 'Indicator for writing change documents  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        PARAMID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        REFTABLE:
                          type: string
                          maxLength: 30
                          description: Table for reference field
                        REPTEXT:
                          type: string
                          maxLength: 55
                          description: Heading
                        DTELNAMEVI:
                          type: string
                          maxLength: 30
                          description: Data element of a view field
                        SCRLEN_S:
                          type: integer
                          format: int64
                          description: Max. length for short field label
                        SCRLEN_M:
                          type: integer
                          format: int64
                          description: Max. length for medium field label
                        SCRLEN_L:
                          type: integer
                          format: int64
                          description: Max. length for long field label
                        SCRTEXT_S:
                          type: string
                          maxLength: 10
                          description: Short Field Label
                        SCRTEXT_M:
                          type: string
                          maxLength: 20
                          description: Medium Field Label
                        SCRTEXT_L:
                          type: string
                          maxLength: 40
                          description: Long Field Label
                        SIGNFLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        VALUEEXIST:
                          type: string
                          maxLength: 1
                          description: 'Existence of fixed values  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                  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.
