openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/KCD_SENDERSTRUC_READ:
    post:
      tags:
      - KCD2
      summary: Import sender structure from Dictionary to structure KCDS_STRUC
      operationId: /rfc/KCD_SENDERSTRUC_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_REPID:
                  type: string
                  maxLength: 40
                I_TABNM:
                  type: string
                  default: ' '
                  maxLength: 30
                E_SSTRUC:
                  type: array
                  items:
                    type: object
                    properties:
                      SFELD:
                        type: string
                        maxLength: 30
                        description: Sender field
                      TNAME:
                        type: string
                        maxLength: 30
                        description: Table name of sender field
                      POSIT:
                        type: integer
                        format: int64
                        description: Position of sender fields
                      ITYPE:
                        type: string
                        maxLength: 1
                        description: Data type (ABAP type) of sender field
                      DTYPE:
                        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
                      ILENG:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      DECIM:
                        type: integer
                        format: int64
                        description: No. of places after decimal point (Dictionary)
                      RFTAB:
                        type: string
                        maxLength: 30
                        description: Table for reference field
                      RFFIE:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      ROLNM:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      FTEXT:
                        type: string
                        maxLength: 20
                        description: 'Data transfer: description'
                      LOWCS:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
              required:
              - I_REPID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_STRUC_TTEXT:
                    type: string
                    maxLength: 60
                  E_TABNM:
                    type: string
                    maxLength: 30
                  E_SSTRUC:
                    type: array
                    items:
                      type: object
                      properties:
                        SFELD:
                          type: string
                          maxLength: 30
                          description: Sender field
                        TNAME:
                          type: string
                          maxLength: 30
                          description: Table name of sender field
                        POSIT:
                          type: integer
                          format: int64
                          description: Position of sender fields
                        ITYPE:
                          type: string
                          maxLength: 1
                          description: Data type (ABAP type) of sender field
                        DTYPE:
                          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
                        ILENG:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        DECIM:
                          type: integer
                          format: int64
                          description: No. of places after decimal point (Dictionary)
                        RFTAB:
                          type: string
                          maxLength: 30
                          description: Table for reference field
                        RFFIE:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        ROLNM:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        FTEXT:
                          type: string
                          maxLength: 20
                          description: 'Data transfer: description'
                        LOWCS:
                          type: string
                          maxLength: 1
                          description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
