openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPLSCR_PLCR_SAVE:
    post:
      tags:
      - RSPLSCR
      operationId: /rfc/RSPLSCR_PLCR_SAVE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_DO_DEQUEUE:
                  type: string
                  maxLength: 1
                I_INFOPROV:
                  type: string
                  maxLength: 30
                I_S_CR_ALL:
                  type: object
                  properties:
                    HEAD:
                      type: object
                      properties:
                        OBJSTAT:
                          type: string
                          maxLength: 3
                          description: 'Object Status  enumValues: OFF=Switched off,INA=Inactive, not executable,ACT=Active, executable,PRO=Productive'
                          enum:
                          - 'OFF'
                          - INA
                          - ACT
                          - PRO
                        OWNER:
                          type: string
                          maxLength: 12
                          description: Owner (Person Responsible)
                        BWAPPL:
                          type: string
                          maxLength: 10
                          description: BW Application (Namespace)
                        ACTIVFL:
                          type: string
                          maxLength: 1
                          description: 'Active and revised version do not agree  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                    PROP:
                      type: object
                      properties:
                        DATETO:
                          type: string
                          format: date
                          description: 'Characteristic Relationships: Validity Date'
                        DATETO_OPT:
                          type: string
                          maxLength: 1
                          description: 'Key Date Is Variable, Fixed or System Date  enumValues: V=Variable Key Date,F=Fixed Key Date,U=Undefined (for Example, no Char. Relationship Object Exists),S=Key Date Is System Date'
                          enum:
                          - V
                          - F
                          - U
                          - S
                        DATETO_VARUID:
                          type: string
                          maxLength: 25
                          description: 'BW: Unequivocal ID in room and time (numbers and letters)'
                        MAX_ROWS_CREATE:
                          type: integer
                          format: int32
                          description: 'Generate Combinations: Maximum Number of Combinations'
                        EXITCLASS_EV:
                          type: string
                          maxLength: 30
                          description: Exit Class for Input Validation
                    T_RANGE:
                      type: array
                      items:
                        type: object
                        properties:
                          STEP:
                            type: integer
                            format: int64
                            description: Number of the Characteristic Relationship
                          IOBJNM:
                            type: string
                            maxLength: 30
                            description: InfoObject
                          ENUM:
                            type: integer
                            format: int64
                            description: Sequence Number
                          SELTP:
                            type: integer
                            format: int64
                            description: Selection type
                          SIGN:
                            type: string
                            maxLength: 1
                            description: SIGN field in creation of SELECT-OPTIONS tables
                          OPT:
                            type: string
                            maxLength: 2
                            description: Operator in Select Options and other Expressions
                          LOWINT:
                            type: string
                            maxLength: 60
                            description: 'Dim: Field for a User-Defined Characteristic Value'
                          LOWEXT:
                            type: string
                            maxLength: 70
                            description: Field for any characteristic value (external display)
                          HIGHINT:
                            type: string
                            maxLength: 60
                            description: 'Dim: Field for a User-Defined Characteristic Value'
                          HIGHEXT:
                            type: string
                            maxLength: 70
                            description: Field for any characteristic value (external display)
                          LOWFLAG:
                            type: integer
                            format: int64
                            description: Flag for 'typing' an entry
                          SHIFTLOW:
                            type: string
                            maxLength: 10
                            description: 'RFC: Shifting of the variable (&VAR+n)'
                          HIGHFLAG:
                            type: integer
                            format: int64
                            description: Flag for 'typing' an entry
                          SHIFTHIGH:
                            type: string
                            maxLength: 10
                            description: 'RFC: Shifting of the variable (&VAR+n)'
                          HIENM:
                            type: string
                            maxLength: 30
                            description: Hierarchy name
                          HIENMFLAG:
                            type: integer
                            format: int64
                            description: Flag for 'typing' an entry
                          VERSION:
                            type: string
                            maxLength: 25
                            description: 'BW: Unequivocal ID in room and time (numbers and letters)'
                          VERSIONVNAM:
                            type: string
                            maxLength: 70
                            description: Field for any characteristic value (external display)
                          VERSIONFLAG:
                            type: integer
                            format: int64
                            description: Flag for 'typing' an entry
                          DATETO:
                            type: string
                            maxLength: 25
                            description: 'BW: Unequivocal ID in room and time (numbers and letters)'
                          DATETOVNAM:
                            type: string
                            maxLength: 70
                            description: Field for any characteristic value (external display)
                          DATETOFLAG:
                            type: integer
                            format: int64
                            description: Flag for 'typing' an entry
                    T_ROLE:
                      type: array
                      items:
                        type: object
                        properties:
                          STEP:
                            type: integer
                            format: int64
                            description: Number of the Characteristic Relationship
                          ROLE:
                            type: string
                            maxLength: 1
                            description: 'Characteristic Relationships: Characteristic Role'
                          CHANM:
                            type: string
                            maxLength: 30
                            description: Characteristic
                    T_STEPS:
                      type: array
                      items:
                        type: object
                        properties:
                          STEP:
                            type: integer
                            format: int64
                            description: Number of the Characteristic Relationship
                          MTYPE:
                            type: string
                            maxLength: 1
                            description: Type of Characteristic Relationship
                          DERIVE:
                            type: string
                            maxLength: 1
                            description: 'Derivation: X = Yes'
                          HIEOPT:
                            type: string
                            maxLength: 1
                            description: Fixed or Variable Hierarchy
                          HIENM:
                            type: string
                            maxLength: 30
                            description: Hierarchy name
                          HIENM_OPT:
                            type: string
                            maxLength: 1
                            description: Name of Hierarchy Is Variable or Fixed
                          HIENM_VARUID:
                            type: string
                            maxLength: 25
                            description: 'BW: Unequivocal ID in room and time (numbers and letters)'
                          HIEVER:
                            type: string
                            maxLength: 3
                            description: Hierarchy version
                          HIEVER_OPT:
                            type: string
                            maxLength: 1
                            description: Hierarchy Version Is Variable or Fixed
                          HIEVER_VARUID:
                            type: string
                            maxLength: 25
                            description: 'BW: Unequivocal ID in room and time (numbers and letters)'
                          DATETO:
                            type: string
                            format: date
                            description: Valid-to date
                          DATETO_OPT:
                            type: string
                            maxLength: 1
                            description: Hierarchy Key Date Fixed, Variable, like Char. Relationships
                          DATETO_VARUID:
                            type: string
                            maxLength: 25
                            description: 'BW: Unequivocal ID in room and time (numbers and letters)'
                          CHANM:
                            type: string
                            maxLength: 30
                            description: Characteristic
                          EXITCLASS:
                            type: string
                            maxLength: 30
                            description: 'Characteristic Relationship: Exit Class'
                          COMBITAB:
                            type: string
                            maxLength: 30
                            description: 'Characteristic Relationships: Data Storage'
                          USED:
                            type: string
                            maxLength: 1
                            description: Relationship Is Being Used 'X' or Ignored ' '
                          TSTPNM:
                            type: string
                            maxLength: 12
                            description: Last changed by
                          TIMESTMP:
                            type: integer
                            format: int64
                            description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                          NO_AUTOVALID:
                            type: string
                            maxLength: 1
                            description: Do not Allow Automat. Valid Combinations (X = Not Allowed)
                I_USE_CR_ALL:
                  type: string
                  maxLength: 1
              required:
              - I_DO_DEQUEUE
              - I_INFOPROV
              - I_S_CR_ALL
              - I_USE_CR_ALL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_RETURN:
                    type: integer
                    format: int32
                  E_T_BAPIRET2:
                    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.
