openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR40_READ_COMM:
    post:
      tags:
      - STRQ
      summary: Read Requests or Tasks
      operationId: /rfc/TR40_READ_COMM
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_SEL_E070:
                  type: string
                  default: X
                  maxLength: 1
                IV_SEL_E071:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_SEL_E071K:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_SEL_E07T:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_TRKORR:
                  type: string
                  maxLength: 20
                  description: Request number
                TT_E071:
                  type: array
                  items:
                    type: object
                    properties:
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      AS4POS:
                        type: integer
                        format: int64
                        description: Row position
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Pgm ID
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object type
                      OBJ_NAME:
                        type: string
                        maxLength: 120
                        description: Object Name
                      OBJFUNC:
                        type: string
                        maxLength: 1
                        description: Object function
                      LOCKFLAG:
                        type: string
                        maxLength: 1
                        description: Status
                      GENNUM:
                        type: string
                        maxLength: 3
                        description: Language information
                TT_E071K:
                  type: array
                  items:
                    type: object
                    properties:
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      PGMID:
                        type: string
                        maxLength: 4
                        description: Pgm ID
                      OBJECT:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      AS4POS:
                        type: integer
                        format: int64
                        description: Row position
                      MASTERTYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      MASTERNAME:
                        type: string
                        maxLength: 40
                        description: Object Name
                      VIEWNAME:
                        type: string
                        maxLength: 30
                        description: Name of SAP table view
                      OBJFUNC:
                        type: string
                        maxLength: 1
                        description: Function for key entry
                      TABKEY:
                        type: string
                        maxLength: 120
                        description: Object Name
                      SORTFLAG:
                        type: string
                        maxLength: 1
                        description: Indicator
                      FLAG:
                        type: string
                        maxLength: 1
                        description: Indicator
              required:
              - IV_TRKORR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_E070:
                    type: object
                    properties:
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      TRFUNCTION:
                        type: string
                        maxLength: 1
                        description: Function
                      TRSTATUS:
                        type: string
                        maxLength: 1
                        description: Status
                      TARSYSTEM:
                        type: string
                        maxLength: 10
                        description: Transport Target
                      KORRDEV:
                        type: string
                        maxLength: 4
                        description: Category
                      AS4USER:
                        type: string
                        maxLength: 12
                        description: Last Changed by
                      AS4DATE:
                        type: string
                        format: date
                        description: Date of Last Change
                      AS4TIME:
                        type: string
                        maxLength: 6
                        description: Last Changed at
                      STRKORR:
                        type: string
                        maxLength: 20
                        description: Higher-level request
                  ES_E07T:
                    type: object
                    properties:
                      TRKORR:
                        type: string
                        maxLength: 20
                        description: Request/Task
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language
                      AS4TEXT:
                        type: string
                        maxLength: 60
                        description: Short text
                  ES_MSG:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message ID
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message type (E, I, W,...)
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message number
                      MSGTEXT:
                        type: string
                        maxLength: 200
                        description: Log line
                  EV_E07T_DOESNT_EXIST:
                    type: string
                    maxLength: 1
                  EV_EXCEPTION:
                    type: string
                    maxLength: 50
                  TT_E071:
                    type: array
                    items:
                      type: object
                      properties:
                        TRKORR:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        AS4POS:
                          type: integer
                          format: int64
                          description: Row position
                        PGMID:
                          type: string
                          maxLength: 4
                          description: Pgm ID
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: Object type
                        OBJ_NAME:
                          type: string
                          maxLength: 120
                          description: Object Name
                        OBJFUNC:
                          type: string
                          maxLength: 1
                          description: Object function
                        LOCKFLAG:
                          type: string
                          maxLength: 1
                          description: Status
                        GENNUM:
                          type: string
                          maxLength: 3
                          description: Language information
                  TT_E071K:
                    type: array
                    items:
                      type: object
                      properties:
                        TRKORR:
                          type: string
                          maxLength: 20
                          description: Request/Task
                        PGMID:
                          type: string
                          maxLength: 4
                          description: Pgm ID
                        OBJECT:
                          type: string
                          maxLength: 4
                          description: Object Type
                        OBJNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        AS4POS:
                          type: integer
                          format: int64
                          description: Row position
                        MASTERTYPE:
                          type: string
                          maxLength: 4
                          description: Object Type
                        MASTERNAME:
                          type: string
                          maxLength: 40
                          description: Object Name
                        VIEWNAME:
                          type: string
                          maxLength: 30
                          description: Name of SAP table view
                        OBJFUNC:
                          type: string
                          maxLength: 1
                          description: Function for key entry
                        TABKEY:
                          type: string
                          maxLength: 120
                          description: Object Name
                        SORTFLAG:
                          type: string
                          maxLength: 1
                          description: Indicator
                        FLAG:
                          type: string
                          maxLength: 1
                          description: Indicator
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
