openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RFC_GET_NAMETAB:
    post:
      tags:
      - RFC1
      operationId: /rfc/RFC_GET_NAMETAB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                TABNAME:
                  type: string
                  maxLength: 30
                  description: Table name
                NAMETAB:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      POSITION:
                        type: string
                        format: byte
                        description: Position number of table field in database
                      FLAG1:
                        type: string
                        format: byte
                        description: Flag 1 length 1 byte for field attributes
                      FLAG2:
                        type: string
                        format: byte
                        description: Flag 2 length 1 byte for field attributes
                      FLAG3:
                        type: string
                        format: byte
                        description: Flag 1 length 1 byte for field attributes
                      FLAG4:
                        type: string
                        format: byte
                        description: Flag 2 length 1 byte for field attributes
                      DBTABPOS:
                        type: string
                        format: byte
                        description: Position number of table field in database
                      FIELDTYPE:
                        type: string
                        format: byte
                        description: ABAP data type (coded)
                      OFFSET:
                        type: string
                        format: byte
                        description: Table field offset
                      DBLENGTH:
                        type: string
                        format: byte
                        description: Length of field in ABAP
                      DBLENGTH2:
                        type: string
                        format: byte
                        description: 'ABAP Dictionary: Length on Database'
                      EXLENGTH:
                        type: string
                        format: byte
                        description: Field output length
                      DECIMALS:
                        type: string
                        format: byte
                        description: Number of decimal places in the field
                      DEPTH:
                        type: string
                        format: byte
                        description: Depth in nested structures
                      FLDALIGN:
                        type: string
                        format: byte
                        description: Alignment of types with different pointer lengths
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      ABTYPE:
                        type: string
                        format: byte
                        description: ABAP data type (nametab interface coded)
                      DTYP:
                        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
                      EXID:
                        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
                      REFTABLE:
                        type: string
                        maxLength: 30
                        description: Table for reference field
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      PRECFIELD:
                        type: string
                        format: byte
                        description: Internal precision
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      MEMORYID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Check table name of the foreign key
                      DIGITS:
                        type: string
                        format: byte
                        description: Dictionary length for DEC, CURR, QUAN types
              required:
              - TABNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  HEADER:
                    type: object
                    properties:
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      DBASE:
                        type: string
                        maxLength: 1
                        description: Internal Name for Database
                      UUID:
                        type: string
                        format: byte
                        description: Global Unique ID for table
                      CRSTAMP:
                        type: string
                        maxLength: 14
                        description: Time of nametab generation
                      ABSTAMP:
                        type: string
                        maxLength: 14
                        description: ABAP Time Stamp
                      DYSTAMP:
                        type: string
                        maxLength: 14
                        description: Screen time stamp
                      FLDCNT:
                        type: string
                        format: byte
                        description: Number of table fields
                      TABLEN:
                        type: string
                        format: byte
                        description: Table length in bytes
                      KEYCNT:
                        type: string
                        format: byte
                        description: Number of key fields in table
                      KEYLEN:
                        type: string
                        format: byte
                        description: Length of Table Key in Bytes
                      CLPOS:
                        type: string
                        format: byte
                        description: Position number of the client field in the table
                      TABTYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of the Dictionary object  enumValues: L=ABAP/4 Dictionary table (not used),P=Physical pooled table,V=View (not used),C=Physical cluster table,A=not used,T=Pooled, cluster, transparent table,J=Table without DB representation, views'
                        enum:
                        - L
                        - P
                        - V
                        - C
                        - A
                        - T
                        - J
                      TABFORM:
                        type: string
                        maxLength: 1
                        description: 'How the Dictionary object is implemented in the database  enumValues: T=Table/view which is stored transparently in the database,C=Table which is stored in a physical cluster,V=Projection view,J=Table/view without implementation in DB,P=Table which is stored in a physical pool'
                        enum:
                        - T
                        - C
                        - V
                        - J
                        - P
                      REFNAME:
                        type: string
                        maxLength: 30
                        description: Name of physical table (for pool/cluster/view)
                      FLAGBYTE:
                        type: string
                        format: byte
                        description: Flag of length 1 byte for table attributes
                      EXROUT:
                        type: string
                        format: byte
                        description: Flag if table to be compressed
                      FLAG3:
                        type: string
                        format: byte
                        description: Flag of length 1 byte for table attributes
                      FLAG4:
                        type: string
                        format: byte
                        description: Flag of length 1 byte for table attributes
                      FLAG5:
                        type: string
                        format: byte
                        description: Flag of length 1 byte for table attributes
                      FLAG6:
                        type: string
                        format: byte
                        description: Flag of length 1 byte for table attributes
                      BUFSTATE:
                        type: string
                        maxLength: 1
                        description: 'Buffering type of table  enumValues: P=''P'': partially buffered,""='' '': not buffered,R=''R'': resident, fully buffered,G=''G'': generic buffering'
                        enum:
                        - P
                        - ''
                        - R
                        - G
                      BUFPARM:
                        type: string
                        format: byte
                        description: Supplementary information in generic buffering
                      ALIGN:
                        type: string
                        format: byte
                        description: Table alignment
                      POINTERLG:
                        type: string
                        format: byte
                        description: Pointer length with which nametab was generated
                      UNICODELG:
                        type: string
                        format: byte
                        description: Unicode length with which runtime object was generated
                      COMPCNT:
                        type: string
                        format: byte
                        description: 'ABAP Dictionary: Number of Fields with Depth 0'
                      LEAFCNT:
                        type: string
                        format: byte
                        description: 'ABAP Dictionary: Leaf Content of Structure'
                  NAMETAB:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        POSITION:
                          type: string
                          format: byte
                          description: Position number of table field in database
                        FLAG1:
                          type: string
                          format: byte
                          description: Flag 1 length 1 byte for field attributes
                        FLAG2:
                          type: string
                          format: byte
                          description: Flag 2 length 1 byte for field attributes
                        FLAG3:
                          type: string
                          format: byte
                          description: Flag 1 length 1 byte for field attributes
                        FLAG4:
                          type: string
                          format: byte
                          description: Flag 2 length 1 byte for field attributes
                        DBTABPOS:
                          type: string
                          format: byte
                          description: Position number of table field in database
                        FIELDTYPE:
                          type: string
                          format: byte
                          description: ABAP data type (coded)
                        OFFSET:
                          type: string
                          format: byte
                          description: Table field offset
                        DBLENGTH:
                          type: string
                          format: byte
                          description: Length of field in ABAP
                        DBLENGTH2:
                          type: string
                          format: byte
                          description: 'ABAP Dictionary: Length on Database'
                        EXLENGTH:
                          type: string
                          format: byte
                          description: Field output length
                        DECIMALS:
                          type: string
                          format: byte
                          description: Number of decimal places in the field
                        DEPTH:
                          type: string
                          format: byte
                          description: Depth in nested structures
                        FLDALIGN:
                          type: string
                          format: byte
                          description: Alignment of types with different pointer lengths
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        ABTYPE:
                          type: string
                          format: byte
                          description: ABAP data type (nametab interface coded)
                        DTYP:
                          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
                        EXID:
                          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
                        REFTABLE:
                          type: string
                          maxLength: 30
                          description: Table for reference field
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        PRECFIELD:
                          type: string
                          format: byte
                          description: Internal precision
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                        MEMORYID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Check table name of the foreign key
                        DIGITS:
                          type: string
                          format: byte
                          description: Dictionary length for DEC, CURR, QUAN types
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
