openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DD_DB_OPERATION:
    post:
      tags:
      - SDDD
      operationId: /rfc/DD_DB_OPERATION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FCT:
                  type: string
                  default: NOP
                  maxLength: 3
                  description: '''CRE'', ''DEL'', ''CNV'', ''MDF'', ''MDF'''
                FORCED:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: '''X'' = function forced; '' '' = with comparator'
                ID_NAME:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Identifier of a view or matchcode ID
                OBJ_NAME:
                  type: string
                  maxLength: 30
                  description: Name of DD object
                OBJ_TYPE:
                  type: string
                  maxLength: 4
                  description: '''TABL'', ''SQLT'', ''INDX'', ''VIEW'''
                OPTIONS:
                  type: object
                  properties:
                    SPACE_CHK:
                      type: string
                      maxLength: 1
                      description: 'Space check for conversion  enumValues: N=Do not perform space check,X=Perform space check online and in transport,F=Force space check (also in upgrade)'
                      enum:
                      - N
                      - X
                      - F
                    METHOD:
                      type: string
                      maxLength: 1
                      description: 'Conversion method  enumValues: S=Force LOAD_SINGLE,L=LOAD/LOAD_SINGLE,""=Any'
                      enum:
                      - S
                      - L
                      - ''
                PRID:
                  type: integer
                  format: int32
                  description: Log ID of the log to be written
                STAT:
                  type: object
                  properties:
                    LNAME:
                      type: string
                      maxLength: 255
                      description: 'DD: Name of a log output channel'
                    LDEVICE:
                      type: string
                      maxLength: 1
                      description: 'Logical type of an ABAP/4 Repository channel  enumValues: F=File system,M=Main memory,T=Database'
                      enum:
                      - F
                      - M
                      - T
                    LMODUS:
                      type: string
                      maxLength: 1
                      description: 'DD: Write mode of a logging channel  enumValues: A=Append,N=New/overwrite'
                      enum:
                      - A
                      - N
                    LFORMAT:
                      type: string
                      maxLength: 1
                      description: 'Definition of the data format  enumValues: S=Data has structure of table SPROT,U=Data is output to the target file as a string,T=SPROT format with internal SPUT interface'
                      enum:
                      - S
                      - U
                      - T
                    LID:
                      type: integer
                      format: int32
                      description: Logical channel address
                    LSTATE:
                      type: string
                      maxLength: 1
                      description: 'Status of an ABAP/4 Repository channel  enumValues: O=Opened,E=Errors,B=Not ready to receive data,C=Closed'
                      enum:
                      - O
                      - E
                      - B
                      - C
                    LANG1:
                      type: string
                      maxLength: 1
                      description: Language selected for ABAP/4 Repository channel
                    LANG2:
                      type: string
                      maxLength: 1
                      description: Substitute language for the ABAP/4 Repository channel
                    LLENGTH:
                      type: integer
                      format: int32
                      description: Logical block length for an ABAP/4 Repository channel
                    LMAXBUF:
                      type: integer
                      format: int32
                      description: Maximum number of buffered blocks or lines
                    LBUF:
                      type: integer
                      format: int32
                      description: Number of blocks or lines actually buffered
                    LEVEL:
                      type: integer
                      format: int32
                      description: Priority of the data in an ABAP/4 Repository channel
                STATUS:
                  type: string
                  default: D
                  maxLength: 1
                  description: '''I'' = inactive nametab, ''D'' = Dictionary'
                USER:
                  type: string
                  default: ' '
                  maxLength: 12
              required:
              - OBJ_NAME
              - OBJ_TYPE
              - PRID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DATA_COPY:
                    type: string
                    maxLength: 1
                    description: Convert with or without data copy
                  SUBRC:
                    type: integer
                    format: int32
                    description: 0 = OK; otherwise error
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
