openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWU_TASK_SELECTION:
    post:
      tags:
      - SWU7
      operationId: /rfc/SWU_TASK_SELECTION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language
                OTYPE:
                  type: string
                  default: '*'
                  maxLength: 2
                  description: Object Type
                PLVAR:
                  type: string
                  maxLength: 2
                SEARK:
                  type: string
                  maxLength: 40
                  description: Object Description
                TASKS:
                  type: array
                  items:
                    type: object
                    properties:
                      PLVAR:
                        type: string
                        maxLength: 2
                        description: Plan Version
                      OTYPE:
                        type: string
                        maxLength: 2
                        description: Object Type
                      OBJID:
                        type: integer
                        format: int64
                        description: Object ID
                      BEGDA:
                        type: string
                        format: date
                        description: Start Date
                      ENDDA:
                        type: string
                        format: date
                        description: End Date
                      ISTAT:
                        type: string
                        maxLength: 1
                        description: Planning Status
                      HISTO:
                        type: string
                        maxLength: 1
                        description: Historical Record Flag
                      SHORT:
                        type: string
                        maxLength: 12
                        description: Object Abbreviation
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      REALO:
                        type: string
                        maxLength: 45
                        description: Extended Object ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TASKS:
                    type: array
                    items:
                      type: object
                      properties:
                        PLVAR:
                          type: string
                          maxLength: 2
                          description: Plan Version
                        OTYPE:
                          type: string
                          maxLength: 2
                          description: Object Type
                        OBJID:
                          type: integer
                          format: int64
                          description: Object ID
                        BEGDA:
                          type: string
                          format: date
                          description: Start Date
                        ENDDA:
                          type: string
                          format: date
                          description: End Date
                        ISTAT:
                          type: string
                          maxLength: 1
                          description: Planning Status
                        HISTO:
                          type: string
                          maxLength: 1
                          description: Historical Record Flag
                        SHORT:
                          type: string
                          maxLength: 12
                          description: Object Abbreviation
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        REALO:
                          type: string
                          maxLength: 45
                          description: Extended Object ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
