openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB_DATA_MOVE:
    post:
      tags:
      - SDB2
      summary: 'DD: Copy data with Move Corresponding'
      operationId: /rfc/DB_DATA_MOVE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_MODE:
                  type: string
                  default: M
                  maxLength: 3
                  description: Error gravity for data existence, ' ' = no test
                CLIENT_STATE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Error gravity for data existence, ' ' = no test
                CLI_ADD_TYPE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Error gravity for data existence, ' ' = no test
                COM_SIZE:
                  type: integer
                  format: int32
                  default: 16777216
                  description: Error gravity for data existence, ' ' = no test
                DATA_CHECK:
                  type: string
                  default: W
                  maxLength: 1
                  description: Error gravity for data existence, ' ' = no test
                DDLCH_WA:
                  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
                DDPROF_USE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Error gravity for data existence, ' ' = no test
                DST_TAB:
                  type: string
                  maxLength: 30
                LOADER:
                  type: object
                  properties:
                    CNAME:
                      type: string
                      maxLength: 10
                      description: Cursor name
                    OPENFORM:
                      type: string
                      maxLength: 30
                      description: Form to open cursor
                    OPENREPID:
                      type: string
                      maxLength: 40
                      description: 'DD: Report for including conversion exits'
                    FETCHFORM:
                      type: string
                      maxLength: 30
                      description: Form to fetch cursor
                    FETCHREPID:
                      type: string
                      maxLength: 40
                      description: 'DD: Report for including conversion exits'
                    INSFORM:
                      type: string
                      maxLength: 30
                      description: ''
                    INSREPID:
                      type: string
                      maxLength: 40
                      description: 'DD: Report for including conversion exits'
                    CLOSEFORM:
                      type: string
                      maxLength: 30
                      description: ''
                    CLOSEREPID:
                      type: string
                      maxLength: 40
                      description: 'DD: Report for including conversion exits'
                    MAPFORM:
                      type: string
                      maxLength: 30
                      description: ''
                    MAPREPID:
                      type: string
                      maxLength: 40
                      description: 'ABAP Program: Current Main Program'
                    LOGNAME:
                      type: string
                      maxLength: 40
                      description: 'ABAP/4 Dictionary: name of SDIC log'
                NO_EXEC:
                  type: string
                  default: X
                  maxLength: 1
                PRID:
                  type: integer
                  format: int32
                  default: 0
                SRC_TAB:
                  type: string
                  maxLength: 30
                WITH_LOCK:
                  type: string
                  default: X
                  maxLength: 1
                  description: Error gravity for data existence, ' ' = no test
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 30
                  description: Error gravity for data existence, ' ' = no test
                STATEMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NO_OF_SUB_POOLS:
                    type: integer
                    format: int32
                    description: Error gravity for data existence, ' ' = no test
                  STATISTICS:
                    type: object
                    properties:
                      ROW_CNT:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      INSERT_CNT:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      ARRAY_SIZE:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      DUP_CNT:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      COM_CNT:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      LOCK_FAIL:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      TAB_WIDTH:
                        type: integer
                        format: int32
                        description: Found Location in Byte or Character String
                      TUP_PERMIN:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      SPEED:
                        type: integer
                        format: int32
                        description: Row Number of Internal Tables
                      TOTAL_DATA:
                        type: integer
                        format: int64
                        description: 'DD: Dataset'
                  SCHEMA:
                    type: string
                    default: ''
                    maxLength: 30
                    description: Error gravity for data existence, ' ' = no test
                  STATEMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
