openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXMI_XMB_WP_LIST_READ:
    post:
      tags:
      - SXMB
      summary: An RFC FM to Read SM50 Information. Transfer to Partner
      operationId: /rfc/SXMI_XMB_WP_LIST_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXTERNAL_USER_NAME:
                  type: string
                  maxLength: 16
                  description: (Non-SAP) User Name (For Example, UNIX User)
                INTERN_RFC_DEST:
                  type: string
                  maxLength: 32
                  description: (Non-SAP) User Name (For Example, UNIX User)
                SRV_LIST_NUMBERS:
                  type: array
                  items:
                    type: object
                    properties:
                      HOSTADR:
                        type: string
                        format: byte
                        description: Host IP address
                      SERVNO:
                        type: string
                        format: byte
                        description: Service port number
                WP_LIST_NAMES:
                  type: array
                  items:
                    type: object
                    properties:
                      WP_NO:
                        type: string
                        maxLength: 2
                        description: Work process no.
                      WP_TYP:
                        type: string
                        maxLength: 3
                        description: Type
                      WP_PID:
                        type: string
                        maxLength: 8
                        description: Process Identification
                      WP_STATUS:
                        type: string
                        maxLength: 7
                        description: Work process status
                      WP_WAITING:
                        type: string
                        maxLength: 5
                        description: Why Work Process is Waiting
                      WP_SEM:
                        type: string
                        maxLength: 2
                        description: Semaphore that the work process is waiting for
                      WP_RESTART:
                        type: string
                        maxLength: 4
                        description: Restart work process after dump?
                      WP_DUMPS:
                        type: string
                        maxLength: 2
                        description: Number of Dumps of the Work Process
                      WP_CPU:
                        type: string
                        maxLength: 8
                        description: CPU
                      WP_ELTIME:
                        type: string
                        maxLength: 6
                        description: Previous Runtime of Request (elapsed)
                      WP_MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      WP_BNAME:
                        type: string
                        maxLength: 12
                        description: User Currently Served
                      WP_REPORT:
                        type: string
                        maxLength: 40
                        description: Report now running
                      WP_ACTION:
                        type: string
                        maxLength: 25
                        description: Current Activity of the Work Process
                      WP_TABLE:
                        type: string
                        maxLength: 30
                        description: DB table last accessed by the work process
                      WP_SERVER:
                        type: string
                        maxLength: 20
                        description: Server Name
                      WP_WAITINF:
                        type: string
                        maxLength: 40
                        description: Additional information about the reason for waiting
                      WP_WAITTIM:
                        type: string
                        maxLength: 8
                        description: Time when waiting started
              required:
              - EXTERNAL_USER_NAME
              - INTERN_RFC_DEST
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMBER_OF_ENTRIES:
                    type: integer
                    format: int32
                    description: (Non-SAP) User Name (For Example, UNIX User)
                  SRV_LIST_NUMBERS:
                    type: array
                    items:
                      type: object
                      properties:
                        HOSTADR:
                          type: string
                          format: byte
                          description: Host IP address
                        SERVNO:
                          type: string
                          format: byte
                          description: Service port number
                  WP_LIST_NAMES:
                    type: array
                    items:
                      type: object
                      properties:
                        WP_NO:
                          type: string
                          maxLength: 2
                          description: Work process no.
                        WP_TYP:
                          type: string
                          maxLength: 3
                          description: Type
                        WP_PID:
                          type: string
                          maxLength: 8
                          description: Process Identification
                        WP_STATUS:
                          type: string
                          maxLength: 7
                          description: Work process status
                        WP_WAITING:
                          type: string
                          maxLength: 5
                          description: Why Work Process is Waiting
                        WP_SEM:
                          type: string
                          maxLength: 2
                          description: Semaphore that the work process is waiting for
                        WP_RESTART:
                          type: string
                          maxLength: 4
                          description: Restart work process after dump?
                        WP_DUMPS:
                          type: string
                          maxLength: 2
                          description: Number of Dumps of the Work Process
                        WP_CPU:
                          type: string
                          maxLength: 8
                          description: CPU
                        WP_ELTIME:
                          type: string
                          maxLength: 6
                          description: Previous Runtime of Request (elapsed)
                        WP_MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        WP_BNAME:
                          type: string
                          maxLength: 12
                          description: User Currently Served
                        WP_REPORT:
                          type: string
                          maxLength: 40
                          description: Report now running
                        WP_ACTION:
                          type: string
                          maxLength: 25
                          description: Current Activity of the Work Process
                        WP_TABLE:
                          type: string
                          maxLength: 30
                          description: DB table last accessed by the work process
                        WP_SERVER:
                          type: string
                          maxLength: 20
                          description: Server Name
                        WP_WAITINF:
                          type: string
                          maxLength: 40
                          description: Additional information about the reason for waiting
                        WP_WAITTIM:
                          type: string
                          maxLength: 8
                          description: Time when waiting started
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
