openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TH_WP_DETAIL_INFO:
    post:
      tags:
      - THFB
      summary: Determine detailed information on a work process
      operationId: /rfc/TH_WP_DETAIL_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                WITH_CPU:
                  type: string
                  format: byte
                  default: '1'
                  description: The CPU is to be determined
                WP:
                  type: string
                  default: XX
                  maxLength: 2
                  description: Number of the work process
                WP_INDEX:
                  type: integer
                  format: int32
                  default: 999999
                  description: The CPU is to be determined
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DBSTATREC:
                    type: object
                    properties:
                      EYEON:
                        type: string
                        maxLength: 4
                        description: Eye-Catcher in SAP Statistics Record
                      RECLEN:
                        type: integer
                        format: int32
                        description: int2 Value for SAP Statistics
                      RECTYPE:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      NEXTREC:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      PREVREC:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      CONNECTION_NAME:
                        type: string
                        maxLength: 30
                        description: Name of Database Connection
                      READDIRCNT:
                        type: integer
                        format: int32
                        description: Number of Direct Read Operations
                      READDIRTI:
                        type: number
                        description: Time Taken for Direct Reading in the Database
                      READDIRREC:
                        type: integer
                        format: int32
                        description: Number of Direct Read Records
                      READDIRBUF:
                        type: integer
                        format: int32
                        description: Number of records that were read directly from the buffer
                      READSEQCNT:
                        type: integer
                        format: int32
                        description: Number of Read Operations with Sequential Reading in DB
                      READSEQTI:
                        type: number
                        description: Time Taken for Sequential Reading
                      READSEQREC:
                        type: integer
                        format: int32
                        description: Number of Records Read by Sequential Reading
                      READSEQBUF:
                        type: integer
                        format: int32
                        description: Number of Records Read by Sequential Reading
                      PHYREADCNT:
                        type: integer
                        format: int32
                        description: Number of Physically Read Records
                      INSCNT:
                        type: integer
                        format: int32
                        description: Number of Inserts
                      INSTI:
                        type: number
                        description: Time for Inserts
                      INSREC:
                        type: integer
                        format: int32
                        description: Number of Records with Insert
                      PHYINSCNT:
                        type: integer
                        format: int32
                        description: Records Physically Inserted
                      UPDCNT:
                        type: integer
                        format: int32
                        description: Number of Updates in the Database
                      UPDTI:
                        type: number
                        description: Time Spent on Updates
                      UPDREC:
                        type: integer
                        format: int32
                        description: Number of Changed Records
                      PHYUPDCNT:
                        type: integer
                        format: int32
                        description: Number of Changed Records
                      DELCNT:
                        type: integer
                        format: int32
                        description: Number of Deletions
                      DELTI:
                        type: number
                        description: Time for Delete Operations
                      DELREC:
                        type: integer
                        format: int32
                        description: Number of Deleted Records
                      PHYDELCNT:
                        type: integer
                        format: int32
                        description: Number of Records Physically Deleted in the Database
                      COMMITTI:
                        type: number
                        description: Time for COMMITs
                      DBPROCCNT:
                        type: integer
                        format: int32
                        description: Number of DB Procedures Executed
                      DBPROCTI:
                        type: number
                        description: Time for DB Procedures
                      EYEOFF:
                        type: string
                        maxLength: 4
                        description: Statistics, eye catcher
                  DIAREC:
                    type: object
                    properties:
                      EYEON:
                        type: string
                        maxLength: 4
                        description: Eye-Catcher in SAP Statistics Record
                      RECLEN:
                        type: integer
                        format: int32
                        description: int2 Value for SAP Statistics
                      RECTYPE:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      NEXTREC:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      PREVREC:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      ATTRIBUTES:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      TOTAL_RECL:
                        type: integer
                        format: int32
                        description: int2 Value for SAP Statistics
                      RECNO:
                        type: integer
                        format: int32
                        description: int2 Value for SAP Statistics
                      DATE:
                        type: string
                        format: date
                        description: Date
                      LUW_INFO:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      STARTTIME1:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      STARTTIME2:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      ENDTIME1:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      ENDTIME2:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      RESPTIME:
                        type: number
                        description: Response Time of Dialog Step
                      ROLLED_OUT:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      CPUTIME:
                        type: number
                        description: CPU Time Consumed During Dialog Step
                      QUEUETIME:
                        type: number
                        description: Time the request had to wait in the dispatcher queue
                      GUITIME:
                        type: number
                        description: The time that the request waited for RFCs to the GUI
                      GUICNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      GUINETTIME:
                        type: number
                        description: Time Taken by the Request Data for the Network Transfer
                      L_ENDTIME1:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      L_ENDTIME2:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      RFCTI:
                        type: number
                        description: Double field for statistics
                      RFCCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      HTTPCNT:
                        type: integer
                        format: int32
                        description: Number of HTTP Requests
                      HTTPTIME:
                        type: number
                        description: Time Spent Waiting for HTTP Requests
                      ROLLKEY:
                        type: string
                        format: byte
                        description: Statistics, hex 4 field
                      INPUTLEN:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      OUTPUTLEN:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      MAXROLL:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      MAXPAGE:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      ROLLINCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      ROLLINTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      ROLLOUTCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      ROLLOUTTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      LOCKCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      LOCKTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      READDIRCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      READDIRTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      READDIRREC:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      READDIRBUF:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      READSEQCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      READSEQTI:
                        type: number
                        description: Floating Point - Value (SAP_DOUBLE in C)
                      READSEQREC:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      READSEQBUF:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      PHYREADCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      INSCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      INSTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      INSREC:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      PHYINSCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      UPDCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      UPDTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      UPDREC:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      PHYUPDCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      DELCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      DELTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      DELREC:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      PHYDELCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      COMMITTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      DBPROCCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      DBPROCTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      GENERATETI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      REPLOADTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      CUALOADTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      DYNPLOADTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      SRCLODCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      DSQLCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      QUECNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      QUETI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      DDICTI:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      MEMSUM:
                        type: number
                        description: Memory Consumption of External Session
                      PRIVSUM:
                        type: number
                        description: Occupied Heap Memory (if process is in PRIV mode)
                      USEDBYTES:
                        type: number
                        description: Memory Occupied by Current Internal Session
                      MAXBYTES:
                        type: number
                        description: Maximum Amount of Occupied Memory for Internal Session
                      MAXBYTESDI:
                        type: number
                        description: Maximum Memory of Internal Session in current Diaog Step
                      ADCNT:
                        type: integer
                        format: int32
                        description: Statistics, counter field in raw statistical record
                      ADTIME:
                        type: integer
                        format: int32
                        description: Time value in raw statistics record
                      ABGC_RUN_COUNT:
                        type: integer
                        format: int32
                        description: Number of ABAP Garbage Collector Runs
                      ABGC_TIME:
                        type: number
                        description: Time Required by the ABAP Garbage Collector
                      ABGC_FREED_OBJS:
                        type: integer
                        format: int32
                        description: Number of Objects Released During this ABAP GC Run
                      ABGC_ALLOC_OBJS:
                        type: integer
                        format: int32
                        description: Number of Objects Created Between Two Garbage Collector Runs
                      ABGC_CALLED_EXPL:
                        type: integer
                        format: int32
                        description: Number of GC Runs Started Directly by the Application
                      WPID:
                        type: integer
                        format: int32
                        description: Work process number
                      DISPCNT:
                        type: integer
                        format: int32
                        description: 2 byte count for statistics record
                      TASKTYPE:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      PRIVMODE:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      WPRESTART:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      TABLOAD:
                        type: string
                        format: byte
                        description: Statistics, hex 1 field
                      ACCOUNT:
                        type: string
                        maxLength: 12
                        description: User or account name using a transaction
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client number
                      TRANSID:
                        type: string
                        maxLength: 32
                        description: 'SAP Statistics: Transaction ID'
                      CONTEXT_ID:
                        type: string
                        maxLength: 40
                        description: ID of Context (External Session)
                      DIALOG_STEP:
                        type: integer
                        format: int32
                        description: Dialog Step Number of Session
                      TERMINAL:
                        type: string
                        maxLength: 20
                        description: 'SAP Statistics: Name of Terminal'
                      REPORT:
                        type: string
                        maxLength: 40
                        description: Program Name
                      DYNPRONR:
                        type: string
                        maxLength: 4
                        description: Screen number or transaction name
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Transaction code
                      CUAPRG:
                        type: string
                        maxLength: 40
                        description: Program Name
                      CUAFUNC:
                        type: string
                        maxLength: 20
                        description: Transaction code
                      DIA_FILL_1:
                        type: string
                        maxLength: 4
                        description: 'SAP statistics: Filler'
                      EYEOFF:
                        type: string
                        maxLength: 4
                        description: Statistics, eye catcher
                  MAINPROG:
                    type: string
                    maxLength: 40
                    description: ABAP Program, Caller in External Procedures
                  WPINFO:
                    type: object
                    properties:
                      WP_NO:
                        type: string
                        maxLength: 2
                        description: Work process no.
                      WP_ITYPE:
                        type: integer
                        format: int32
                        description: 'Internal work process type  enumValues: 4=Batch,1=Dialog,6=Update2,0=NO_WP,5=Spool,3=Enqueue,2=Update'
                        enum:
                        - '4'
                        - '1'
                        - '6'
                        - '0'
                        - '5'
                        - '3'
                        - '2'
                      WP_TYP:
                        type: string
                        maxLength: 3
                        description: Type
                      WP_PID:
                        type: string
                        maxLength: 8
                        description: Process Identification
                      WP_ISTATUS:
                        type: integer
                        format: int32
                        description: Work process status
                      WP_STATUS:
                        type: string
                        maxLength: 7
                        description: Work process status
                      WP_IWAIT:
                        type: integer
                        format: int32
                        description: Reason for wait
                      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_IRESTRT:
                        type: integer
                        format: int32
                        description: Restart After Error
                      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_IACTION:
                        type: integer
                        format: int32
                        description: Current activity of the work process
                      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
                      WP_SEMSTAT:
                        type: integer
                        format: int32
                        description: 'Internal work process type  enumValues: 4=Batch,1=Dialog,6=Update2,0=NO_WP,5=Spool,3=Enqueue,2=Update'
                        enum:
                        - '4'
                        - '1'
                        - '6'
                        - '0'
                        - '5'
                        - '3'
                        - '2'
                      WP_INDEX:
                        type: integer
                        format: int32
                        description: Index of Work Process
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
