openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DX_LOA_BAPI_THREAD:
    post:
      tags:
      - DX_LOA_BAPI
      operationId: /rfc/DX_LOA_BAPI_THREAD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ERRORFILE:
                  type: string
                  maxLength: 128
                  description: Physical file name
                ERRORS_IN_DB:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: If errors occur generate IDocs in database?
                IGNORE_UNKNOWN_SEGMENTS:
                  type: string
                  maxLength: 1
                  description: 'Checkbox: ''X'' = True, '' '' = False'
                LOADFILE:
                  type: string
                  maxLength: 128
                  description: Physical file name
                MAXERROR:
                  type: integer
                  format: int64
                  default: 1
                  description: Maximum Number of Errors Before Data Transfer is Terminated
                OBJECTTYPE:
                  type: string
                  maxLength: 10
                  description: Object Type
                PCKSIZ:
                  type: integer
                  format: int64
                  default: 1
                  description: Number of objects per LUW
                PROD_RUN:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Delete Input Files
                PROGNAME:
                  type: string
                  maxLength: 40
                  description: Data transfer program/method
                PROGTYPE:
                  type: string
                  maxLength: 4
                  description: Program Type
                PROJECT:
                  type: string
                  maxLength: 15
                  description: Data Transfer Project
                RUNDEF:
                  type: string
                  maxLength: 15
                  description: Data Transfer - Run Definition
                RUNID:
                  type: integer
                  format: int64
                  description: Data Transfer Run
                SHORT_PROTOCOL:
                  type: string
                  maxLength: 1
                  description: 'Checkbox: ''X'' = True, '' '' = False'
                SUBPROJECT:
                  type: string
                  maxLength: 15
                  description: Data Transfer Subproject
                TASK:
                  type: string
                  maxLength: 15
                  description: Data transfer task
                THREAD:
                  type: integer
                  format: int64
                  description: Number of Parallel Threads When Loading via BAPI
              required:
              - LOADFILE
              - OBJECTTYPE
              - PROGNAME
              - PROGTYPE
              - PROJECT
              - RUNDEF
              - RUNID
              - SUBPROJECT
              - TASK
              - THREAD
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NO_OF_ERRORS:
                    type: integer
                    format: int32
                    description: Status of 'Load via BAPI'
                  NO_OF_IDOCS:
                    type: integer
                    format: int32
                    description: Client
                  NO_OF_LINES:
                    type: integer
                    format: int64
                    description: Last record processed when a file was processed
                  RETURN:
                    type: object
                    properties:
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: string
                        maxLength: 3
                        description: Message number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      LOG_HANDLE:
                        type: string
                        maxLength: 22
                        description: 'Application Log: Log Handle'
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Status of data transfer run  enumValues: X=Run finished,A=Task not completed, restart after cause analysed,1=Task completed without errors,2=Task completed with errors, restart after errors analysed,4=Task completed manually,3=Task ended with errors, restart not possible'
                        enum:
                        - X
                        - A
                        - '1'
                        - '2'
                        - '4'
                        - '3'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
