openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/AKB_GET_LAST_RUN:
    post:
      tags:
      - PA_AKB
      operationId: /rfc/AKB_GET_LAST_RUN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INTERFACE:
                  type: object
                  properties:
                    SERVER:
                      type: string
                      maxLength: 20
                      description: Software Product ID
                    SERVER_REL:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    CLIENT:
                      type: string
                      maxLength: 20
                      description: Software Product ID
                    CLIENT_REL:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    RELATION:
                      type: string
                      maxLength: 1
                      description: 'Relationship Between Products  enumValues: 1=Client Product with Compatibility Guarantee,3=Client Product Without Usage Control,2=Client Product Without Compatibility Guarantee'
                      enum:
                      - '1'
                      - '3'
                      - '2'
                    SERVER_PACKET:
                      type: string
                      maxLength: 30
                      description: Application Package
                    REFERENCE_REL:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    NOTE:
                      type: string
                      description: Long Text
                SYS:
                  type: object
                  properties:
                    PRODUCT_ID:
                      type: string
                      maxLength: 20
                      description: Software Product ID
                    PRODUCT_REL:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    SERVER:
                      type: string
                      maxLength: 20
                      description: Software Product ID
                    SERVER_REL:
                      type: string
                      maxLength: 10
                      description: SAP Release
                    SYSYSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    SYSROLE:
                      type: string
                      maxLength: 1
                      description: 'System Role  enumValues: A=BCB Central System for Product Definition,D=Development or Maintenance System,N=System for Determining Interface,C=Master System,O=Other System,T=Test System,I=System for Monitoring Incompatible Changes'
                      enum:
                      - A
                      - D
                      - N
                      - C
                      - O
                      - T
                      - I
                    RFCDEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    ISUSUPPLIER:
                      type: string
                      maxLength: 1
                      description: Indicator "Actual Supplier for Where-Used List"
                    ACTFLAG:
                      type: string
                      maxLength: 1
                      description: Indicator "Active for BCB Integration"
                    BATCHSIZE:
                      type: integer
                      format: int32
                      description: Number of Table Entries for Each Communcation Process
                    LUSER:
                      type: string
                      maxLength: 12
                      description: User Name
                    LDATE:
                      type: string
                      format: date
                      description: Date
                    AKB_VERSION:
                      type: string
                      maxLength: 10
                      description: SAP Release
              required:
              - INTERFACE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RUN:
                    type: object
                    properties:
                      PRODUCT_ID:
                        type: string
                        maxLength: 20
                        description: Software Product ID
                      PRODUCT_REL:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      SERVER:
                        type: string
                        maxLength: 20
                        description: Software Product ID
                      SERVER_REL:
                        type: string
                        maxLength: 10
                        description: SAP Release
                      RUN_ID:
                        type: integer
                        format: int64
                        description: Four-digit number
                      PROCLEVEL:
                        type: integer
                        format: int64
                        description: 'Processing Level  enumValues: 3=Run results replicated in application user systems,2=Run results transported into BCB master system,1=Run generated, not yet transported'
                        enum:
                        - '3'
                        - '2'
                        - '1'
                      CREDATE:
                        type: string
                        format: date
                        description: Date
                      CRETIME:
                        type: string
                        maxLength: 6
                        description: Time
                      CREOBJECTS:
                        type: integer
                        format: int32
                        description: ''
                      CONSDATE:
                        type: string
                        format: date
                        description: Date
                      CONSTIME:
                        type: string
                        maxLength: 6
                        description: Time
                      CONSINS:
                        type: integer
                        format: int32
                        description: ''
                      CONSUPD:
                        type: integer
                        format: int32
                        description: ''
                      CONSDEL:
                        type: integer
                        format: int32
                        description: ''
                      REPL1DATE:
                        type: string
                        format: date
                        description: Date
                      LREPLDATE:
                        type: string
                        format: date
                        description: Date
                      LREPLTIME:
                        type: string
                        maxLength: 6
                        description: Time
                      LREPLOBJECTS:
                        type: integer
                        format: int32
                        description: ''
                      STATE:
                        type: string
                        maxLength: 1
                        description: 'Purpose of a Data Transfer  enumValues: ""=Updating of Usage Exceptions,T=Determining Interface as Preview'
                        enum:
                        - ''
                        - T
                      LUSER:
                        type: string
                        maxLength: 12
                        description: User Name
                      LMANU_USER:
                        type: string
                        maxLength: 12
                        description: User Name
                      LMANU_OBJECTS:
                        type: integer
                        format: int32
                        description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
