openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CRM_FIELDINFO_GET:
    post:
      tags:
      - CRMT
      operationId: /rfc/CRM_FIELDINFO_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_COUNT_ONLY:
                  type: string
                  maxLength: 1
                I_FIELDNAME:
                  type: string
                  maxLength: 30
                I_TABNAME:
                  type: string
                  maxLength: 30
                TO_TABSTR:
                  type: array
                  items:
                    type: object
                    properties:
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name of Length 30
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      POSITION:
                        type: integer
                        format: int64
                        description: Position of the field in the table
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset of a field
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                        enum:
                        - X
                        - ''
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Role Name
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Check Table
                      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
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'Data Type in SFA ABAP DDIC  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
                      LENG:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain Name
                      SPRASKEY:
                        type: string
                        maxLength: 1
                        description: 'Identifies a Language Field  enumValues: X=Key field,""=No key field'
                        enum:
                        - X
                        - ''
                      SPRASPOS:
                        type: integer
                        format: int64
                        description: Position of Two Character Language Field
                      CURRKEY:
                        type: string
                        maxLength: 1
                        description: Identifies a Currency Field
                      CURRPOS:
                        type: integer
                        format: int64
                        description: Item Currency Field
                      FIELDTEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      COMPTYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      APPLCLASS:
                        type: string
                        maxLength: 4
                        description: Application class for DD objects (not used)
                      DDTEXT:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                      TABCLASS:
                        type: string
                        maxLength: 8
                        description: 'Table category  enumValues: TRANSP=Transparent table,CLUSTER=Cluster table,VIEW=General view structure,APPEND=Append structure,INTTAB=Structure,POOL=Pooled table'
                        enum:
                        - TRANSP
                        - CLUSTER
                        - VIEW
                        - APPEND
                        - INTTAB
                        - POOL
                      LANGUFLAG:
                        type: string
                        maxLength: 1
                        description: 'DD: Indicator for a Language Field  enumValues: X=Field selected as language field,""=Not selected as language field'
                        enum:
                        - X
                        - ''
              required:
              - I_TABNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_TABCOUNT:
                    type: integer
                    format: int32
                  TO_TABSTR:
                    type: array
                    items:
                      type: object
                      properties:
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name of Length 30
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        POSITION:
                          type: integer
                          format: int64
                          description: Position of the field in the table
                        OFFSET:
                          type: integer
                          format: int64
                          description: Offset of a field
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                          enum:
                          - X
                          - ''
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Role Name
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Check Table
                        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
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'Data Type in SFA ABAP DDIC  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
                        LENG:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain Name
                        SPRASKEY:
                          type: string
                          maxLength: 1
                          description: 'Identifies a Language Field  enumValues: X=Key field,""=No key field'
                          enum:
                          - X
                          - ''
                        SPRASPOS:
                          type: integer
                          format: int64
                          description: Position of Two Character Language Field
                        CURRKEY:
                          type: string
                          maxLength: 1
                          description: Identifies a Currency Field
                        CURRPOS:
                          type: integer
                          format: int64
                          description: Item Currency Field
                        FIELDTEXT:
                          type: string
                          maxLength: 60
                          description: Short Description of Repository Objects
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        COMPTYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        APPLCLASS:
                          type: string
                          maxLength: 4
                          description: Application class for DD objects (not used)
                        DDTEXT:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                        TABCLASS:
                          type: string
                          maxLength: 8
                          description: 'Table category  enumValues: TRANSP=Transparent table,CLUSTER=Cluster table,VIEW=General view structure,APPEND=Append structure,INTTAB=Structure,POOL=Pooled table'
                          enum:
                          - TRANSP
                          - CLUSTER
                          - VIEW
                          - APPEND
                          - INTTAB
                          - POOL
                        LANGUFLAG:
                          type: string
                          maxLength: 1
                          description: 'DD: Indicator for a Language Field  enumValues: X=Field selected as language field,""=Not selected as language field'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
