openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_IPAK_CHANGE:
    post:
      tags:
      - RSAB
      summary: Changes InfoPackage
      operationId: /rfc/BAPI_IPAK_CHANGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DESTINATIONS:
                  type: object
                  properties:
                    ONLYENTRANCE:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    ONLYCUBETAB:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    PARALLEL:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    CUBEAFTERODS:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                DETAILS:
                  type: object
                  properties:
                    INFOPACKAGE:
                      type: string
                      maxLength: 30
                      description: Logical InfoPackage variant (ID)
                    INFOSOURCE:
                      type: string
                      maxLength: 30
                      description: InfoSource
                    INFOSOURCETYPE:
                      type: string
                      maxLength: 1
                      description: InfoSource type
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Source system
                    DATASOURCE:
                      type: string
                      maxLength: 30
                      description: InfoSource
                    DATASOURCETYPE:
                      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
                    HIERACT:
                      type: integer
                      format: int64
                      description: 'Activate Hierarchies After Loading  enumValues: 1='
                      enum:
                      - '1'
                    CHAVL_CHECK:
                      type: string
                      maxLength: 1
                      description: Consistency check for characteristic values
                    UPDATEMASTERDATA:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    TEXT:
                      type: string
                      maxLength: 60
                      description: Long description
                    LOAD_STATUS:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    UPDMODE_READ:
                      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
                    WITH_EMPTY_SELFIELDS:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                FILE_PARAMS:
                  type: object
                  properties:
                    LOCATION:
                      type: string
                      maxLength: 1
                      description: 'Type of External System  enumValues: 1=External data from client workstation,0=External data from application server'
                      enum:
                      - '1'
                      - '0'
                    FILENAME:
                      type: string
                      maxLength: 128
                      description: File Name for External Data
                    FILETYPE:
                      type: string
                      maxLength: 1
                      description: 'Type of External File  enumValues: 2=File is Excel-CSV type.,1=File is ASCII file with CR as separator'
                      enum:
                      - '2'
                      - '1'
                    FILESEP:
                      type: string
                      format: byte
                      description: Separator for Excel format
                    ESC:
                      type: string
                      format: byte
                      description: Escape Character for Excel File
                    CHAR1000:
                      type: string
                      maxLength: 1
                      description: Thousand separator
                    DECICHAR:
                      type: string
                      maxLength: 1
                      description: Character for decimal point
                    CURRCONV:
                      type: string
                      maxLength: 1
                      description: 'Currency Conversion for External Systems  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                HIE_PARAMS:
                  type: object
                  properties:
                    HIENM:
                      type: string
                      maxLength: 30
                      description: Customer-defined Name of Hierarchy
                    HIEVERS:
                      type: string
                      maxLength: 3
                      description: Hierarchy version
                    HIEDATETO:
                      type: string
                      format: date
                      description: Valid-to date
                    HIEDATEFROM:
                      type: string
                      format: date
                      description: Valid-From Date
                    HIECLASS:
                      type: string
                      maxLength: 4
                      description: Not More Closely Defined Area, Possibly Used for Patchlevels
                    NEW_HIENAME_ON:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    NEW_HIENM:
                      type: string
                      maxLength: 30
                      description: Hierarchy Name
                INFOPACKAGE:
                  type: string
                  maxLength: 30
                  description: Logical InfoPackage variant (ID)
                SCHEDULING_PARAMS:
                  type: object
                  properties:
                    STARTDTTYP:
                      type: string
                      maxLength: 1
                      description: Start date type ID
                    SDLSTRTDT:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    SDLSTRTTM:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    EVENTID:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENTPARM:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    PERIODIC:
                      type: string
                      maxLength: 1
                      description: Periodic jobs indicator ('X')
                    CANCELPERIOD:
                      type: string
                      maxLength: 10
                      description: Termination according to no. of periods
                    EVENT_ID_OK:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENT_PM_OK:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    EVENT_ID_ER:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENT_PM_ER:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    FUNCTION_CALL:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    EXIT_CALL:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    BATCH_WAIT:
                      type: string
                      maxLength: 1
                      description: Load process waits until all data has been loaded into BI
                    JOBNAME:
                      type: string
                      maxLength: 32
                      description: Background job name
                INFOCUBES:
                  type: array
                  items:
                    type: object
                    properties:
                      INFOCUBE:
                        type: string
                        maxLength: 30
                        description: InfoCube
                      LOADCUBE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      DELETEALLBEFORE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                SELECTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field name
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Selection criteria: SIGN'
                      OPT:
                        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'
                THIRD_PARTY_PARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      RFCFIELDNM:
                        type: string
                        maxLength: 30
                        description: Field name
                      RFCVALUE:
                        type: string
                        maxLength: 128
                        description: Value of Data Input for RFC of Third-Party Tool
                      RFCUSER:
                        type: string
                        maxLength: 32
                        description: User name for logging on to 3rd party tool
                      PASSWORD:
                        type: string
                        maxLength: 8
                        description: Password for logging on to 3rd party tool
              required:
              - INFOPACKAGE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INFOCUBES:
                    type: array
                    items:
                      type: object
                      properties:
                        INFOCUBE:
                          type: string
                          maxLength: 30
                          description: InfoCube
                        LOADCUBE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        DELETEALLBEFORE:
                          type: string
                          maxLength: 1
                          description: Single-Character 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
                  SELECTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field name
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Selection criteria: SIGN'
                        OPT:
                          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'
                  THIRD_PARTY_PARAMS:
                    type: array
                    items:
                      type: object
                      properties:
                        RFCFIELDNM:
                          type: string
                          maxLength: 30
                          description: Field name
                        RFCVALUE:
                          type: string
                          maxLength: 128
                          description: Value of Data Input for RFC of Third-Party Tool
                        RFCUSER:
                          type: string
                          maxLength: 32
                          description: User name for logging on to 3rd party tool
                        PASSWORD:
                          type: string
                          maxLength: 8
                          description: Password for logging on to 3rd party tool
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
