openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_TDPROVIDER_GET_COLUMNS:
    post:
      tags:
      - RSOB
      summary: Delivers a List of Columns (Columns Rowset)
      operationId: /rfc/BAPI_TDPROVIDER_GET_COLUMNS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CAT_NAM:
                  type: string
                  maxLength: 32
                  description: 'Restriction: Catalog Name (not currently used)'
                COL_NAM:
                  type: string
                  maxLength: 70
                  description: 'Restrcition: Table Type'
                TAB_NAM:
                  type: string
                  maxLength: 24
                  description: 'Restriction: Table Name'
                COLUMNS:
                  type: array
                  items:
                    type: object
                    properties:
                      CAT_NAM:
                        type: string
                        maxLength: 32
                        description: CATALOG to which the CUBE belongs
                      TAB_NAM:
                        type: string
                        maxLength: 24
                        description: 'SAP Query (S): InfoSet'
                      COL_NAM:
                        type: string
                        maxLength: 70
                        description: 'SAP Query (S): Field name (table field)'
                      COL_UID:
                        type: string
                        maxLength: 25
                        description: UUID in compressed form
                      COL_ORDINAL:
                        type: integer
                        format: int64
                        description: General reference field for numbering
                      COL_HASDFLT:
                        type: string
                        maxLength: 1
                        description: 'Boolean  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      COL_DFLT:
                        type: string
                        maxLength: 60
                        description: 'Dim: Field for a User-Defined Characteristic Value'
                      COL_FLAGS:
                        type: integer
                        format: int64
                        description: Column flags
                      IS_NULLABLE:
                        type: string
                        maxLength: 1
                        description: 'Boolean  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      DATA_TYPE:
                        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
                      CHR_MAX_LEN:
                        type: string
                        maxLength: 3
                        description: Maximum length of a value in characters or bytes
                      CHR_OCT_LEN:
                        type: string
                        maxLength: 3
                        description: Maximum length (in bytes) of an attribute value if char.
                      NUM_PREC:
                        type: string
                        maxLength: 1
                        description: 'StrMember: Number of places after decimal point for output  enumValues: 0=0,1=0.0,6=0.000000,5=0.00000,8=0.00000000,2=0.00,3=0.000,""=Not defined,4=0.0000,7=0.0000000,9=0.000000000'
                        enum:
                        - '0'
                        - '1'
                        - '6'
                        - '5'
                        - '8'
                        - '2'
                        - '3'
                        - ''
                        - '4'
                        - '7'
                        - '9'
                      NUM_SCALE:
                        type: string
                        maxLength: 1
                        description: 'StrMember: Scaling factor of a number  enumValues: 1=in 10,3=in 1,000,5=in 100,000,0=in 1,6=in 1,000,000,8=in 100,000,000,""=Not defined,2=in 100,4=in 10,000,7=in 10,000,000,9=in 1,000,000,000'
                        enum:
                        - '1'
                        - '3'
                        - '5'
                        - '0'
                        - '6'
                        - '8'
                        - ''
                        - '2'
                        - '4'
                        - '7'
                        - '9'
                      DATETIME_PREC:
                        type: string
                        maxLength: 1
                        description: 'StrMember: Number of places after decimal point for output  enumValues: 0=0,1=0.0,6=0.000000,5=0.00000,8=0.00000000,2=0.00,3=0.000,""=Not defined,4=0.0000,7=0.0000000,9=0.000000000'
                        enum:
                        - '0'
                        - '1'
                        - '6'
                        - '5'
                        - '8'
                        - '2'
                        - '3'
                        - ''
                        - '4'
                        - '7'
                        - '9'
                      DSCRPTN:
                        type: string
                        maxLength: 60
                        description: 'SAP Query (S): Long text for a field'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  COLUMNS:
                    type: array
                    items:
                      type: object
                      properties:
                        CAT_NAM:
                          type: string
                          maxLength: 32
                          description: CATALOG to which the CUBE belongs
                        TAB_NAM:
                          type: string
                          maxLength: 24
                          description: 'SAP Query (S): InfoSet'
                        COL_NAM:
                          type: string
                          maxLength: 70
                          description: 'SAP Query (S): Field name (table field)'
                        COL_UID:
                          type: string
                          maxLength: 25
                          description: UUID in compressed form
                        COL_ORDINAL:
                          type: integer
                          format: int64
                          description: General reference field for numbering
                        COL_HASDFLT:
                          type: string
                          maxLength: 1
                          description: 'Boolean  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        COL_DFLT:
                          type: string
                          maxLength: 60
                          description: 'Dim: Field for a User-Defined Characteristic Value'
                        COL_FLAGS:
                          type: integer
                          format: int64
                          description: Column flags
                        IS_NULLABLE:
                          type: string
                          maxLength: 1
                          description: 'Boolean  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        DATA_TYPE:
                          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
                        CHR_MAX_LEN:
                          type: string
                          maxLength: 3
                          description: Maximum length of a value in characters or bytes
                        CHR_OCT_LEN:
                          type: string
                          maxLength: 3
                          description: Maximum length (in bytes) of an attribute value if char.
                        NUM_PREC:
                          type: string
                          maxLength: 1
                          description: 'StrMember: Number of places after decimal point for output  enumValues: 0=0,1=0.0,6=0.000000,5=0.00000,8=0.00000000,2=0.00,3=0.000,""=Not defined,4=0.0000,7=0.0000000,9=0.000000000'
                          enum:
                          - '0'
                          - '1'
                          - '6'
                          - '5'
                          - '8'
                          - '2'
                          - '3'
                          - ''
                          - '4'
                          - '7'
                          - '9'
                        NUM_SCALE:
                          type: string
                          maxLength: 1
                          description: 'StrMember: Scaling factor of a number  enumValues: 1=in 10,3=in 1,000,5=in 100,000,0=in 1,6=in 1,000,000,8=in 100,000,000,""=Not defined,2=in 100,4=in 10,000,7=in 10,000,000,9=in 1,000,000,000'
                          enum:
                          - '1'
                          - '3'
                          - '5'
                          - '0'
                          - '6'
                          - '8'
                          - ''
                          - '2'
                          - '4'
                          - '7'
                          - '9'
                        DATETIME_PREC:
                          type: string
                          maxLength: 1
                          description: 'StrMember: Number of places after decimal point for output  enumValues: 0=0,1=0.0,6=0.000000,5=0.00000,8=0.00000000,2=0.00,3=0.000,""=Not defined,4=0.0000,7=0.0000000,9=0.000000000'
                          enum:
                          - '0'
                          - '1'
                          - '6'
                          - '5'
                          - '8'
                          - '2'
                          - '3'
                          - ''
                          - '4'
                          - '7'
                          - '9'
                        DSCRPTN:
                          type: string
                          maxLength: 60
                          description: 'SAP Query (S): Long text for a field'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
