openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_PDOTYPE_Q_GETDETAIL:
    post:
      tags:
      - RHPE_PDOTYPE_Q_BAPI
      summary: Attributes of a qualification type
      operationId: /rfc/BAPI_PDOTYPE_Q_GETDETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                KEYDAY:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Reporting key date
                OBJID:
                  type: integer
                  format: int64
                  description: Object ID of qualification type
                PLVAR:
                  type: string
                  maxLength: 2
                  description: Plan version
                ALTERNATIVES:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJ_ID:
                        type: integer
                        format: int64
                        description: Object ID
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Object Name
                      ALTQ_PROZ:
                        type: integer
                        format: int64
                        description: Replacement percentage rate for alternative qualifications
                DESCRIPTION:
                  type: array
                  items:
                    type: object
                    properties:
                      TLINE:
                        type: string
                        maxLength: 79
                        description: Line With Length 79 for Infotype 1002
                      TFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                PROFCYDESCRIPTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      TLINE:
                        type: string
                        maxLength: 79
                        description: Line With Length 79 for Infotype 1002
                      TFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      RATING:
                        type: integer
                        format: int64
                        description: Proficiency of a Quality Scale
                PROFICENCIES:
                  type: array
                  items:
                    type: object
                    properties:
                      RATING:
                        type: integer
                        format: int64
                        description: Proficiency of a Quality Scale
                      RATING_TEXT:
                        type: string
                        maxLength: 40
                        description: Scale Proficiency Text
              required:
              - OBJID
              - PLVAR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BEGDA:
                    type: string
                    format: date
                    description: Valid from date
                  DEPRECIATIONVALIDITY:
                    type: object
                    properties:
                      NYEARS:
                        type: integer
                        format: int64
                        description: Number of years
                      NMONTHS:
                        type: integer
                        format: int64
                        description: Number of Months
                      N_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Flag: ''Depreciation Meter/Validity'' Infotype  enumValues: X=Validity,""=Depreciation Meter'
                        enum:
                        - X
                        - ''
                  ENDDA:
                    type: string
                    format: date
                    description: Valid to date
                  QGROUPTXT:
                    type: string
                    maxLength: 40
                    description: Name of superior group
                  QGROUP_ID:
                    type: integer
                    format: int64
                    description: ID of superior group
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  SCALETXT:
                    type: string
                    maxLength: 40
                    description: Scale name
                  SCALE_ID:
                    type: integer
                    format: int64
                    description: ID of scale
                  STEXT:
                    type: string
                    maxLength: 40
                    description: Name of qualification type
                  ALTERNATIVES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJ_ID:
                          type: integer
                          format: int64
                          description: Object ID
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Object Name
                        ALTQ_PROZ:
                          type: integer
                          format: int64
                          description: Replacement percentage rate for alternative qualifications
                  DESCRIPTION:
                    type: array
                    items:
                      type: object
                      properties:
                        TLINE:
                          type: string
                          maxLength: 79
                          description: Line With Length 79 for Infotype 1002
                        TFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                  PROFCYDESCRIPTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        TLINE:
                          type: string
                          maxLength: 79
                          description: Line With Length 79 for Infotype 1002
                        TFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        RATING:
                          type: integer
                          format: int64
                          description: Proficiency of a Quality Scale
                  PROFICENCIES:
                    type: array
                    items:
                      type: object
                      properties:
                        RATING:
                          type: integer
                          format: int64
                          description: Proficiency of a Quality Scale
                        RATING_TEXT:
                          type: string
                          maxLength: 40
                          description: Scale Proficiency Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
