openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UPSIFMW_CALL_OBJECT_SEND_MSG:
    post:
      tags:
      - UPSIFMW
      operationId: /rfc/UPSIFMW_CALL_OBJECT_SEND_MSG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IM_OUTHDR:
                  type: object
                  properties:
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Packet: Distribution Direction  enumValues: 1=Outbound,2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: 'ALE Distribution Packet: Partner'
                    UPSNAM:
                      type: string
                      maxLength: 20
                      description: 'ALE Distribution Packet: Name'
                    OWNER:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Packet : Owner  enumValues: L=Local System,R=Partner'
                      enum:
                      - L
                      - R
                    DOCNUM:
                      type: string
                      maxLength: 32
                      description: Message Number
                    UPSTYP:
                      type: string
                      maxLength: 10
                      description: 'ALE Distribution Packet: Packet Type'
                    UPSMODE:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Packet : Packet Type  enumValues: O=Original,C=Correction'
                      enum:
                      - O
                      - C
                    TEXT:
                      type: string
                      maxLength: 80
                      description: 'ALE Distribution Packet : Description'
                    ORGNAM:
                      type: string
                      maxLength: 20
                      description: 'ALE Distribution Packet : Original Packet Name'
                    ORGOWN:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Packet : Owner of Original Packet  enumValues: L=Local System,R=Partner'
                      enum:
                      - L
                      - R
                    PRENAM:
                      type: string
                      maxLength: 20
                      description: 'ALE Distribution Packet :  Name of Predecessor Packet'
                    PREOWN:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Packet :  Owner of Predecessor Packet  enumValues: L=Local System,R=Partner'
                      enum:
                      - L
                      - R
                    UPSSTAT:
                      type: string
                      maxLength: 5
                      description: 'ALE Distribution Packet: Status  enumValues: I8807=UPRJ - Refused,I8803=UPRL - Released,I8808=UPER - Errors,I8811=UPSP - Partially Sent,I8810=UPIN - Partially Posted,I8812=UPSE - Errors on Sending,I8801=UPNW - Created,I8802=UPSV - Saved,I8805=UPRC - Received,I8804=UPSD - Distributed,I8806=UPAP - Approved,I8809=UPPO - Posted'
                      enum:
                      - I8807
                      - I8803
                      - I8808
                      - I8811
                      - I8810
                      - I8812
                      - I8801
                      - I8802
                      - I8805
                      - I8804
                      - I8806
                      - I8809
                    ICON:
                      type: string
                      maxLength: 4
                      description: 'ALE Distribution Packet : Status Icon'
                    STSTXT04:
                      type: string
                      maxLength: 4
                      description: 'ALE Distribution Packet : Status'
                    STSTXT30:
                      type: string
                      maxLength: 30
                      description: 'ALE Distribution Packet : Description'
                    JOBCNT:
                      type: string
                      maxLength: 8
                      description: Job ID
                    JOBNAME:
                      type: string
                      maxLength: 32
                      description: Background job name
                    LOCKED:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Package: Change Lock'
                    STATUS:
                      type: string
                      maxLength: 10
                      description: Message Status
                    STATXT:
                      type: string
                      maxLength: 70
                      description: Message Status Text
                    CREDAT:
                      type: string
                      format: date
                      description: Date
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Time
                    CRENAM:
                      type: string
                      maxLength: 12
                      description: User Name
                    CNGDAT:
                      type: string
                      format: date
                      description: Date
                    CNGTIM:
                      type: string
                      maxLength: 6
                      description: Time
                    CNGNAM:
                      type: string
                      maxLength: 12
                      description: User Name
                IM_OUTITM:
                  type: object
                  properties:
                    OBJTYP:
                      type: string
                      maxLength: 10
                      description: 'ALE Distribution Packet: Object Type'
                    OBJID:
                      type: string
                      maxLength: 120
                      description: 'ALE Distribution Packet: Object Key'
                    OBJVAL:
                      type: string
                      maxLength: 20
                      description: 'ALE Distribution Package: Object Validity'
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: 'Activity of Object Status  enumValues: DEL=Deletion,MOD=Maintenance'
                      enum:
                      - DEL
                      - MOD
                    DOCNUM:
                      type: string
                      maxLength: 32
                      description: Message Number
                    SNDDOC:
                      type: string
                      maxLength: 32
                      description: 'ALE Distribution Packet: IDoc Number in Sender'
                    HIELEV:
                      type: integer
                      format: int64
                      description: 'ALE Distribution Package: Object Type Serialization'
                    INSLEV:
                      type: integer
                      format: int64
                      description: 'ALE Distribution Package: Object Instance Serialization'
                    SUBLEV:
                      type: integer
                      format: int64
                      description: 'ALE Distrib. Package: Object Validity Status Serialization'
                    FUNCTION:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Packet : Function of Object Entry  enumValues: D=Remove object from distribution packet  (correction packet),""=Object belongs to distribution packet  (correction packet),U=Object distributed by distribution packet again,I=Add object to distribution packet (correction packet),-=Cancel object changes in packet (delta changes)'
                      enum:
                      - D
                      - ''
                      - U
                      - I
                      - '-'
                    DSCRPT:
                      type: string
                      maxLength: 80
                      description: 'ALE Distribution Package: Description of Object Instance'
                    STATUS:
                      type: string
                      maxLength: 10
                      description: Message Status
                    EXISTS:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Package: Object Instance Exists  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    STATXT:
                      type: string
                      maxLength: 70
                      description: Message Status Text
                    VALID:
                      type: string
                      maxLength: 1
                      description: 'ALE Distribution Unit: Object Valid?  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                EX_MESSAGES:
                  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
              required:
              - IM_OUTHDR
              - IM_OUTITM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EX_IDOCS_CRE:
                    type: integer
                    format: int32
                  EX_OUTITM:
                    type: object
                    properties:
                      OBJTYP:
                        type: string
                        maxLength: 10
                        description: 'ALE Distribution Packet: Object Type'
                      OBJID:
                        type: string
                        maxLength: 120
                        description: 'ALE Distribution Packet: Object Key'
                      OBJVAL:
                        type: string
                        maxLength: 20
                        description: 'ALE Distribution Package: Object Validity'
                      MESCOD:
                        type: string
                        maxLength: 3
                        description: 'Activity of Object Status  enumValues: DEL=Deletion,MOD=Maintenance'
                        enum:
                        - DEL
                        - MOD
                      DOCNUM:
                        type: string
                        maxLength: 32
                        description: Message Number
                      SNDDOC:
                        type: string
                        maxLength: 32
                        description: 'ALE Distribution Packet: IDoc Number in Sender'
                      HIELEV:
                        type: integer
                        format: int64
                        description: 'ALE Distribution Package: Object Type Serialization'
                      INSLEV:
                        type: integer
                        format: int64
                        description: 'ALE Distribution Package: Object Instance Serialization'
                      SUBLEV:
                        type: integer
                        format: int64
                        description: 'ALE Distrib. Package: Object Validity Status Serialization'
                      FUNCTION:
                        type: string
                        maxLength: 1
                        description: 'ALE Distribution Packet : Function of Object Entry  enumValues: D=Remove object from distribution packet  (correction packet),""=Object belongs to distribution packet  (correction packet),U=Object distributed by distribution packet again,I=Add object to distribution packet (correction packet),-=Cancel object changes in packet (delta changes)'
                        enum:
                        - D
                        - ''
                        - U
                        - I
                        - '-'
                      DSCRPT:
                        type: string
                        maxLength: 80
                        description: 'ALE Distribution Package: Description of Object Instance'
                      STATUS:
                        type: string
                        maxLength: 10
                        description: Message Status
                      EXISTS:
                        type: string
                        maxLength: 1
                        description: 'ALE Distribution Package: Object Instance Exists  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      STATXT:
                        type: string
                        maxLength: 70
                        description: Message Status Text
                      VALID:
                        type: string
                        maxLength: 1
                        description: 'ALE Distribution Unit: Object Valid?  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                  EX_MESSAGES:
                    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.
