openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSAP_PERFORM_EXTRACTION:
    post:
      tags:
      - RSAP
      operationId: /rfc/RSAP_PERFORM_EXTRACTION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CHABASNM:
                  type: string
                  maxLength: 30
                  description: InfoObject
                I_INFO_IDOC_COUNTER:
                  type: integer
                  format: int32
                I_ISOURCE:
                  type: string
                  maxLength: 30
                  description: InfoSource
                I_S_REQUEST:
                  type: object
                  properties:
                    REQUNR:
                      type: string
                      maxLength: 30
                      description: Request number for the data transfer
                    REQOBJTYPE:
                      type: string
                      maxLength: 1
                      description: 'Type of requested data  enumValues: T=Master data text (language dependent description),D=Transaction data,M=Master data attributes,H=Hierachies'
                      enum:
                      - T
                      - D
                      - M
                      - H
                    IOBJECT:
                      type: string
                      maxLength: 30
                      description: Object of the data import (InfoSource / InfoObject)
                    REQDATE:
                      type: string
                      format: date
                      description: Date on which the data was requested (UTC)
                    REQTIME:
                      type: string
                      maxLength: 6
                      description: Time at which the data was requested (UTC)
                    REQUSER:
                      type: string
                      maxLength: 12
                      description: User Name
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    DATAPAKID:
                      type: integer
                      format: int64
                      description: Data packet number
                    UPDMODE:
                      type: string
                      maxLength: 2
                      description: 'Mode of data update (Full, Delta, etc.)  enumValues: D=Transfer of the deltas since the last request,R=Repetition of the transfer of a data packet,C=Initialization of the delta transfer,I=Transfer of an opening balance for non-cumulative values,F=Transfer of all requested data'
                      enum:
                      - D
                      - R
                      - C
                      - I
                      - F
                    TRSPMODE:
                      type: string
                      maxLength: 2
                      description: 'Mode of data transfer  enumValues: I=ALE/IDoc,F=File Transfer,T=TRFC'
                      enum:
                      - I
                      - F
                      - T
                    BACKGROUND:
                      type: string
                      maxLength: 1
                      description: 'Indicator: Start process in the background  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    IMMEDIATE:
                      type: string
                      maxLength: 1
                      description: 'Flag: Send extracted data at once  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    BENCHMARK:
                      type: string
                      maxLength: 1
                      description: 'ID: Activate benchmarking  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PARALFLG:
                      type: string
                      maxLength: 1
                      description: 'Parallel sending of the data packets (flag)  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                I_S_TIMEINT:
                  type: object
                  properties:
                    DATETO:
                      type: string
                      format: date
                      description: Valid-to date
                    DATEFROM:
                      type: string
                      format: date
                      description: Valid-From Date
                I_T_HIERSEL:
                  type: array
                  items:
                    type: object
                    properties:
                      HIENM:
                        type: string
                        maxLength: 30
                        description: Hierarchy name
                      VERSION:
                        type: string
                        maxLength: 3
                        description: Hierarchy version
                      HCLASS:
                        type: string
                        maxLength: 4
                        description: Hierarchy class
                      DATEFROM:
                        type: string
                        format: date
                        description: Valid-From Date
                      DATETO:
                        type: string
                        format: date
                        description: Valid-to date
                I_T_HIER_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      HIENM:
                        type: string
                        maxLength: 30
                        description: Hierarchy name
                      VERSION:
                        type: string
                        maxLength: 3
                        description: Hierarchy version
                      HCLASS:
                        type: string
                        maxLength: 4
                        description: Hierarchy class
                      DATEFROM:
                        type: string
                        format: date
                        description: Valid-From Date
                      DATETO:
                        type: string
                        format: date
                        description: Valid-to date
                I_T_LANGU:
                  type: array
                  items:
                    type: object
                    properties:
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                I_T_SELECT:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNM:
                        type: string
                        maxLength: 30
                        description: Field name
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Selection criteria: SIGN'
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection criteria: OPTION'
                      LOW:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: From value'
                      HIGH:
                        type: string
                        maxLength: 45
                        description: 'Selection criteria: To value'
              required:
              - I_INFO_IDOC_COUNTER
              - I_S_REQUEST
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  I_T_HIERSEL:
                    type: array
                    items:
                      type: object
                      properties:
                        HIENM:
                          type: string
                          maxLength: 30
                          description: Hierarchy name
                        VERSION:
                          type: string
                          maxLength: 3
                          description: Hierarchy version
                        HCLASS:
                          type: string
                          maxLength: 4
                          description: Hierarchy class
                        DATEFROM:
                          type: string
                          format: date
                          description: Valid-From Date
                        DATETO:
                          type: string
                          format: date
                          description: Valid-to date
                  I_T_HIER_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        HIENM:
                          type: string
                          maxLength: 30
                          description: Hierarchy name
                        VERSION:
                          type: string
                          maxLength: 3
                          description: Hierarchy version
                        HCLASS:
                          type: string
                          maxLength: 4
                          description: Hierarchy class
                        DATEFROM:
                          type: string
                          format: date
                          description: Valid-From Date
                        DATETO:
                          type: string
                          format: date
                          description: Valid-to date
                  I_T_LANGU:
                    type: array
                    items:
                      type: object
                      properties:
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                  I_T_SELECT:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNM:
                          type: string
                          maxLength: 30
                          description: Field name
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Selection criteria: SIGN'
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection criteria: OPTION'
                        LOW:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: From value'
                        HIGH:
                          type: string
                          maxLength: 45
                          description: 'Selection criteria: To value'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
