openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_DOMAIN_INSERT:
    post:
      tags:
      - SIFD
      operationId: /rfc/RPY_DOMAIN_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEVELOPMENT_CLASS:
                  type: string
                  default: $TMP
                  maxLength: 30
                DOCUTYPE:
                  type: string
                  default: T
                  maxLength: 1
                DOMA_INF:
                  type: object
                  properties:
                    DOMANAME:
                      type: string
                      maxLength: 30
                      description: Domain name
                    LANGUAGE:
                      type: string
                      maxLength: 1
                      description: Language Key
                    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
                    LENGTH:
                      type: integer
                      format: int64
                      description: Length (No. of Characters)
                    OUTPUTLEN:
                      type: integer
                      format: int64
                      description: Output Length
                    DECIMALS:
                      type: integer
                      format: int64
                      description: Number of Decimal Places
                    MASTERLANG:
                      type: string
                      maxLength: 1
                      description: Original Language in Repository objects
                    LOWERCASE:
                      type: string
                      maxLength: 1
                      description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                      enum:
                      - ''
                      - X
                    SIGNFLAG:
                      type: string
                      maxLength: 1
                      description: 'Flag for sign in numerical fields  enumValues: ""=Do not set flag,X=Set flag'
                      enum:
                      - ''
                      - X
                    VALUEEXIST:
                      type: string
                      maxLength: 1
                      description: 'Existence of fixed values  enumValues: ""=Do not set flag,X=Set flag'
                      enum:
                      - ''
                      - X
                    VALUETABLE:
                      type: string
                      maxLength: 30
                      description: Value table
                    CONVEXIT:
                      type: string
                      maxLength: 5
                      description: Conversion Routine
                    SHORTTEXT:
                      type: string
                      maxLength: 60
                      description: Explanatory short text
                    MOD_USER:
                      type: string
                      maxLength: 12
                      description: Last Changed by
                    MOD_DATE:
                      type: string
                      format: date
                      description: Date of Last Change
                    MOD_TIME:
                      type: string
                      maxLength: 6
                      description: Last changed at
                DOMA_NAME:
                  type: string
                  maxLength: 30
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                TRANSPORT_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 20
                WITH_DOCU:
                  type: string
                  default: ' '
                  maxLength: 1
                DOCU_TABLE_TECH:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
                DOCU_TABLE_USER:
                  type: array
                  items:
                    type: object
                    properties:
                      KEY_ID:
                        type: string
                        maxLength: 1
                        description: Line type ID with complex objects
                      OBJLINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
                DOMA_VALUES:
                  type: array
                  items:
                    type: object
                    properties:
                      DOMANAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      VALPOS:
                        type: integer
                        format: int64
                        description: Domain value key
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key
                      DOMVALUE_L:
                        type: string
                        maxLength: 10
                        description: 'Values for Domains: Single Value / Upper Limit'
                      DOMVALUE_H:
                        type: string
                        maxLength: 10
                        description: Values for domains, upper limit
                      DDTEXT:
                        type: string
                        maxLength: 60
                        description: Explanatory short text
                      DOMVAL_LLD:
                        type: string
                        maxLength: 10
                        description: Language-specific values for domains, lower limit
                      DOMVAL_HLD:
                        type: string
                        maxLength: 10
                        description: Language-specific values for domains, upper limit
              required:
              - DOMA_INF
              - DOMA_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DOCU_TABLE_TECH:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
                  DOCU_TABLE_USER:
                    type: array
                    items:
                      type: object
                      properties:
                        KEY_ID:
                          type: string
                          maxLength: 1
                          description: Line type ID with complex objects
                        OBJLINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
                  DOMA_VALUES:
                    type: array
                    items:
                      type: object
                      properties:
                        DOMANAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        VALPOS:
                          type: integer
                          format: int64
                          description: Domain value key
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key
                        DOMVALUE_L:
                          type: string
                          maxLength: 10
                          description: 'Values for Domains: Single Value / Upper Limit'
                        DOMVALUE_H:
                          type: string
                          maxLength: 10
                          description: Values for domains, upper limit
                        DDTEXT:
                          type: string
                          maxLength: 60
                          description: Explanatory short text
                        DOMVAL_LLD:
                          type: string
                          maxLength: 10
                          description: Language-specific values for domains, lower limit
                        DOMVAL_HLD:
                          type: string
                          maxLength: 10
                          description: Language-specific values for domains, upper limit
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
