openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MEREP_SENDER:
    post:
      tags:
      - MEREP_RUNTIME
      summary: Sender
      operationId: /rfc/MEREP_SENDER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FI_MBLID:
                  type: string
                  maxLength: 10
                  description: 'ME Replica: ID of a mobile'
                I_SYNC_MODE:
                  type: string
                  default: A
                  maxLength: 1
                  description: General flag
                I_HANDLER_WORKLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DIRECTION:
                        type: string
                        maxLength: 1
                        description: 'In/Outbound Indicator (Link to Inbox/Outbox)  enumValues: I=INBOUND,O=OUTBOUND'
                        enum:
                        - I
                        - O
                      MBL_ID:
                        type: string
                        maxLength: 10
                        description: Mobile ID
                      SEQNO:
                        type: integer
                        format: int32
                        description: Sequence Number
                      ORIGINAL_SEQ:
                        type: integer
                        format: int32
                        description: Original Sequence Number
                      SCENARIO:
                        type: string
                        maxLength: 10
                        description: SyncBO ID
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Status  enumValues: F=Finished,I=Ignore,P=Partial,R=Received,E=Error,D=Disabled,W=Waiting,S=Sent'
                        enum:
                        - F
                        - I
                        - P
                        - R
                        - E
                        - D
                        - W
                        - S
                      RETRY_COUNT:
                        type: integer
                        format: int64
                        description: 'Retry Count  enumValues: 01=Minimum Value = 1.  Max = 99'
                        enum:
                        - '01'
                      NUMRCD:
                        type: integer
                        format: int32
                        description: Number of Records
                      P_RUNNUM:
                        type: integer
                        format: int64
                        description: Parent Run Number
                      CREATEDTTM:
                        type: integer
                        format: int64
                        description: Date and Time Message was Created
                      CHANGEDTTM:
                        type: integer
                        format: int64
                        description: Date and Time Message was Changed
                      RUNTIME:
                        type: integer
                        format: int64
                        description: Exact Execution Time
                      STRVERS:
                        type: integer
                        format: int64
                        description: Version of Structure
                      DB_OPE:
                        type: string
                        maxLength: 1
                        description: 'DB Operation  enumValues: ""=No operation,R=Recovery,C=Clear'
                        enum:
                        - ''
                        - R
                        - C
                      SYNC_PRI:
                        type: string
                        maxLength: 1
                        description: 'Resolve Synchronization Conflict  enumValues: S=Server,C=Cleint'
                        enum:
                        - S
                        - C
                      SRCSYST:
                        type: string
                        maxLength: 32
                        description: Conversation ID
                      DESTSYS:
                        type: string
                        maxLength: 16
                        description: Synchronization Protocol Type
                      UPAYLOAD:
                        type: string
                        maxLength: 1
                        description: 'Action Flag for Metadata RFC  enumValues: ""=Not active / No,X=Active / Yes'
                        enum:
                        - ''
                        - X
                      UPRIO:
                        type: string
                        maxLength: 1
                        description: 'Synchronous Synchronization  enumValues: ""=Not active / No,X=Active / Yes'
                        enum:
                        - ''
                        - X
                      LANG:
                        type: string
                        maxLength: 2
                        description: Language key
                      APPTRACK:
                        type: string
                        maxLength: 36
                        description: Application Tracking ID
                      MESSAGE_LENGTH:
                        type: integer
                        format: int32
                        description: Sequence Number
                      RECORD_COUNT:
                        type: integer
                        format: int32
                        description: Sequence Number
                      RESULT_CODE:
                        type: integer
                        format: int32
                        description: Return Value of ABAP Statements
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      PARENT_APPTRACK:
                        type: string
                        maxLength: 36
                        description: Application Tracking ID
                      PAYLOAD_TYPE:
                        type: string
                        maxLength: 50
                        description: Short Description
                      REQUIRE_RECEIPT:
                        type: string
                        maxLength: 1
                        description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      SYNC_USER:
                        type: string
                        maxLength: 12
                        description: R/3 User ID
              required:
              - FI_MBLID
              - I_SYNC_MODE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RUNNUM:
                    type: integer
                    format: int64
                    description: 'SAP Mobile: Run Number'
                  I_HANDLER_WORKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DIRECTION:
                          type: string
                          maxLength: 1
                          description: 'In/Outbound Indicator (Link to Inbox/Outbox)  enumValues: I=INBOUND,O=OUTBOUND'
                          enum:
                          - I
                          - O
                        MBL_ID:
                          type: string
                          maxLength: 10
                          description: Mobile ID
                        SEQNO:
                          type: integer
                          format: int32
                          description: Sequence Number
                        ORIGINAL_SEQ:
                          type: integer
                          format: int32
                          description: Original Sequence Number
                        SCENARIO:
                          type: string
                          maxLength: 10
                          description: SyncBO ID
                        STATUS:
                          type: string
                          maxLength: 1
                          description: 'Status  enumValues: F=Finished,I=Ignore,P=Partial,R=Received,E=Error,D=Disabled,W=Waiting,S=Sent'
                          enum:
                          - F
                          - I
                          - P
                          - R
                          - E
                          - D
                          - W
                          - S
                        RETRY_COUNT:
                          type: integer
                          format: int64
                          description: 'Retry Count  enumValues: 01=Minimum Value = 1.  Max = 99'
                          enum:
                          - '01'
                        NUMRCD:
                          type: integer
                          format: int32
                          description: Number of Records
                        P_RUNNUM:
                          type: integer
                          format: int64
                          description: Parent Run Number
                        CREATEDTTM:
                          type: integer
                          format: int64
                          description: Date and Time Message was Created
                        CHANGEDTTM:
                          type: integer
                          format: int64
                          description: Date and Time Message was Changed
                        RUNTIME:
                          type: integer
                          format: int64
                          description: Exact Execution Time
                        STRVERS:
                          type: integer
                          format: int64
                          description: Version of Structure
                        DB_OPE:
                          type: string
                          maxLength: 1
                          description: 'DB Operation  enumValues: ""=No operation,R=Recovery,C=Clear'
                          enum:
                          - ''
                          - R
                          - C
                        SYNC_PRI:
                          type: string
                          maxLength: 1
                          description: 'Resolve Synchronization Conflict  enumValues: S=Server,C=Cleint'
                          enum:
                          - S
                          - C
                        SRCSYST:
                          type: string
                          maxLength: 32
                          description: Conversation ID
                        DESTSYS:
                          type: string
                          maxLength: 16
                          description: Synchronization Protocol Type
                        UPAYLOAD:
                          type: string
                          maxLength: 1
                          description: 'Action Flag for Metadata RFC  enumValues: ""=Not active / No,X=Active / Yes'
                          enum:
                          - ''
                          - X
                        UPRIO:
                          type: string
                          maxLength: 1
                          description: 'Synchronous Synchronization  enumValues: ""=Not active / No,X=Active / Yes'
                          enum:
                          - ''
                          - X
                        LANG:
                          type: string
                          maxLength: 2
                          description: Language key
                        APPTRACK:
                          type: string
                          maxLength: 36
                          description: Application Tracking ID
                        MESSAGE_LENGTH:
                          type: integer
                          format: int32
                          description: Sequence Number
                        RECORD_COUNT:
                          type: integer
                          format: int32
                          description: Sequence Number
                        RESULT_CODE:
                          type: integer
                          format: int32
                          description: Return Value of ABAP Statements
                        TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        PARENT_APPTRACK:
                          type: string
                          maxLength: 36
                          description: Application Tracking ID
                        PAYLOAD_TYPE:
                          type: string
                          maxLength: 50
                          description: Short Description
                        REQUIRE_RECEIPT:
                          type: string
                          maxLength: 1
                          description: 'Flag (X or Blank)  enumValues: ""=Do not set flag,X=Set flag'
                          enum:
                          - ''
                          - X
                        SYNC_USER:
                          type: string
                          maxLength: 12
                          description: R/3 User ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
