openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRTT_GET_COUNT_BEFORE_KEY_RFC:
    post:
      tags:
      - SRTT
      operationId: /rfc/SRTT_GET_COUNT_BEFORE_KEY_RFC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CHARLEN:
                  type: integer
                  format: int32
                I_CODE_PAGE:
                  type: integer
                  format: int64
                  description: SAP character set identification
                I_KEY:
                  type: string
                  format: byte
                  description: 'Table analysis: For external table data up to length 1024'
                I_NFORM:
                  type: integer
                  format: int64
                  description: SAP character set identification
                I_TABLE_NAME:
                  type: string
                  maxLength: 30
                I_NTAB_CMP:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      VARIANT:
                        type: string
                        maxLength: 14
                        description: 'extended table maintenance: Name of a selection variant'
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      TXTFIELD:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      FOFFSET:
                        type: integer
                        format: int64
                        description: Offset of a field
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      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
                      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
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                        enum:
                        - X
                        - ''
                      PRTFRKYFLD:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      CLI_FIELD:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Table Name
                      REFTABLE:
                        type: string
                        maxLength: 30
                        description: Table for reference field
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      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
                      FLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      FIELDTEXT:
                        type: string
                        maxLength: 60
                        description: Short Description of Repository Objects
                      REPTEXT:
                        type: string
                        maxLength: 55
                        description: Heading
                      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
                      TEXT:
                        type: string
                        maxLength: 55
                        description: Heading
                      WIDTH:
                        type: integer
                        format: int64
                        description: Output Length
                      WIDTH_CUST:
                        type: integer
                        format: int64
                        description: Output Length
                      NT_INDEX:
                        type: integer
                        format: int32
                        description: Iternal table index
                      CMP_FLAG:
                        type: string
                        maxLength: 2
                        description: Version Number Component
                      COMPARE:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      ADJUST:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      VISIBLE:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      FIELD_POS:
                        type: integer
                        format: int64
                        description: Position of the field in the table
              required:
              - I_CHARLEN
              - I_CODE_PAGE
              - I_KEY
              - I_NFORM
              - I_TABLE_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_COUNT_STAR:
                    type: integer
                    format: int32
                    description: Internal tables, current number of lines
                  E_FIELD1:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  E_FIELD2:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  E_FIELD3:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  E_FIELD4:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  E_FINISHED:
                    type: string
                    maxLength: 1
                    description: Yes/No (X/ )
                  E_KEY:
                    type: string
                    format: byte
                    description: 'Table analysis: For external table data up to length 1024'
                  I_NTAB_CMP:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        VARIANT:
                          type: string
                          maxLength: 14
                          description: 'extended table maintenance: Name of a selection variant'
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        TXTFIELD:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        FOFFSET:
                          type: integer
                          format: int64
                          description: Offset of a field
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        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
                        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
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: 'Identifies a key field of a table  enumValues: X=Key field,""=No key field'
                          enum:
                          - X
                          - ''
                        PRTFRKYFLD:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        CLI_FIELD:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Table Name
                        REFTABLE:
                          type: string
                          maxLength: 30
                          description: Table for reference field
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        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
                        FLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                        FIELDTEXT:
                          type: string
                          maxLength: 60
                          description: Short Description of Repository Objects
                        REPTEXT:
                          type: string
                          maxLength: 55
                          description: Heading
                        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
                        TEXT:
                          type: string
                          maxLength: 55
                          description: Heading
                        WIDTH:
                          type: integer
                          format: int64
                          description: Output Length
                        WIDTH_CUST:
                          type: integer
                          format: int64
                          description: Output Length
                        NT_INDEX:
                          type: integer
                          format: int32
                          description: Iternal table index
                        CMP_FLAG:
                          type: string
                          maxLength: 2
                          description: Version Number Component
                        COMPARE:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        ADJUST:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        VISIBLE:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        FIELD_POS:
                          type: integer
                          format: int64
                          description: Position of the field in the table
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
