openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_REPPROV_REQUEST:
    post:
      tags:
      - RSCRM_BO_DATAPROVIDER
      summary: .
      operationId: /rfc/BAPI_REPPROV_REQUEST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_REQUESTPARAMS:
                  type: object
                  properties:
                    REQUESTID:
                      type: string
                      maxLength: 32
                      description: UUID in character form
                    EXECMODE:
                      type: string
                      maxLength: 8
                      description: Extraction Mode (TABLE, FILE, FILECSV, CALLBACK)
                    EXTRACTNAME:
                      type: string
                      maxLength: 30
                      description: Name of Requested Extract (Must Start with "ZCRM")
                    INITEXTRACT:
                      type: string
                      maxLength: 1
                      description: 'RSCRM: Flag'
                    INSERTMODE:
                      type: string
                      maxLength: 1
                      description: 'Check for Duplicated Keys  enumValues: 1=Accept Duplicate. Do not Change Existing Records,0=Modify Existing Value,3=Do not Accept Duplicate'
                      enum:
                      - '1'
                      - '0'
                      - '3'
                    SPLITTINGCHAR:
                      type: string
                      maxLength: 30
                      description: Characteristic
                    FUNCTIONNAME:
                      type: string
                      maxLength: 30
                      description: InfoObject
                    DESTINATION:
                      type: string
                      maxLength: 32
                      description: Destination for CALLBACK
                    FILENAME:
                      type: string
                      maxLength: 60
                      description: File Name
                    PATH:
                      type: string
                      maxLength: 255
                      description: Path Name
                    SEPARATOR:
                      type: string
                      maxLength: 1
                      description: Separator in CSV File
                    LANGU_ISO:
                      type: string
                      maxLength: 2
                      description: Language according to ISO 639
                    UNAME:
                      type: string
                      maxLength: 12
                      description: User Name
                    NOBATCHJOB:
                      type: string
                      maxLength: 1
                      description: 'RSCRM: Flag'
                    PACKSIZE:
                      type: integer
                      format: int64
                      description: 'RSCRM: Package Size'
                    EXTRACT_TEXTS:
                      type: string
                      maxLength: 1
                      description: 'RSCRM: Flag'
                SCHEDULEPARAMS:
                  type: object
                  properties:
                    SDLSTRTDT:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    SDLSTRTTM:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    LASTSTRTDT:
                      type: string
                      format: date
                      description: Latest Execution Date for a Background Job
                    LASTSTRTTM:
                      type: string
                      maxLength: 6
                      description: Latest Execution Time for Background Job
                    PREDJOB:
                      type: string
                      maxLength: 32
                      description: Name of previous job
                    PREDJOBCNT:
                      type: string
                      maxLength: 8
                      description: Job ID
                    CHECKSTAT:
                      type: string
                      maxLength: 1
                      description: Job status check indicator for subsequent job start
                    EVENTID:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENTPARM:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    STARTDTTYP:
                      type: string
                      maxLength: 1
                      description: Start date type ID
                    PRDMINS:
                      type: integer
                      format: int64
                      description: Length of Period for a Batch Job
                    PRDHOURS:
                      type: integer
                      format: int64
                      description: Length of Period for a Batch Job
                    PRDDAYS:
                      type: integer
                      format: int64
                      description: Length of Period for a Batch Job
                    PRDWEEKS:
                      type: integer
                      format: int64
                      description: Length of Period for a Batch Job
                    PRDMONTHS:
                      type: integer
                      format: int64
                      description: Length of Period for a Batch Job
                    PERIODIC:
                      type: string
                      maxLength: 1
                      description: Periodic jobs indicator ('X')
                    CALENDARID:
                      type: string
                      maxLength: 2
                      description: Factory calendar ID for background processing
                    PRDBEHAV:
                      type: string
                      maxLength: 1
                      description: Period behavior of jobs on non-workdays
                SESSIONID:
                  type: integer
                  format: int64
              required:
              - I_REQUESTPARAMS
              - SCHEDULEPARAMS
              - SESSIONID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_REQUESTPARAMS:
                    type: object
                    properties:
                      REQUESTID:
                        type: string
                        maxLength: 32
                        description: UUID in character form
                      EXECMODE:
                        type: string
                        maxLength: 8
                        description: Extraction Mode (TABLE, FILE, FILECSV, CALLBACK)
                      EXTRACTNAME:
                        type: string
                        maxLength: 30
                        description: Name of Requested Extract (Must Start with "ZCRM")
                      INITEXTRACT:
                        type: string
                        maxLength: 1
                        description: 'RSCRM: Flag'
                      INSERTMODE:
                        type: string
                        maxLength: 1
                        description: 'Check for Duplicated Keys  enumValues: 1=Accept Duplicate. Do not Change Existing Records,0=Modify Existing Value,3=Do not Accept Duplicate'
                        enum:
                        - '1'
                        - '0'
                        - '3'
                      SPLITTINGCHAR:
                        type: string
                        maxLength: 30
                        description: Characteristic
                      FUNCTIONNAME:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      DESTINATION:
                        type: string
                        maxLength: 32
                        description: Destination for CALLBACK
                      FILENAME:
                        type: string
                        maxLength: 60
                        description: File Name
                      PATH:
                        type: string
                        maxLength: 255
                        description: Path Name
                      SEPARATOR:
                        type: string
                        maxLength: 1
                        description: Separator in CSV File
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      UNAME:
                        type: string
                        maxLength: 12
                        description: User Name
                      NOBATCHJOB:
                        type: string
                        maxLength: 1
                        description: 'RSCRM: Flag'
                      PACKSIZE:
                        type: integer
                        format: int64
                        description: 'RSCRM: Package Size'
                      EXTRACT_TEXTS:
                        type: string
                        maxLength: 1
                        description: 'RSCRM: Flag'
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
