openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_BUS20350_CHANGE:
    post:
      tags:
      - PLM_BUS20350
      operationId: /rfc/BAPI_BUS20350_CHANGE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AUDIT:
                  type: object
                  properties:
                    EXTERNAL_ID:
                      type: string
                      maxLength: 24
                      description: Key that Indicates an Audit
                    GUID:
                      type: string
                      maxLength: 32
                      description: unique object identifier in Audit Management (CHAR32)
                    AUDIT_TYPE:
                      type: string
                      maxLength: 2
                      description: Audit Type
                    CAUSE:
                      type: string
                      maxLength: 2
                      description: Audit Trigger
                    GROUPING:
                      type: string
                      maxLength: 40
                      description: Grouping
                    SEARCH_FIELD:
                      type: string
                      maxLength: 40
                      description: Search Field
                    AUTH_GROUP:
                      type: string
                      maxLength: 6
                      description: Authorization Group
                    PLANSTARTDATE:
                      type: string
                      format: date
                      description: Planned Start Date
                    PLANSTARTTIME:
                      type: string
                      maxLength: 6
                      description: Planned Start (Time)
                    OK_NOK:
                      type: string
                      maxLength: 1
                      description: 'Overall Assessment  enumValues: 1=Passed,0=Failed,""=Not Assessed'
                      enum:
                      - '1'
                      - '0'
                      - ''
                    SCORE_RES:
                      type: integer
                      format: int64
                      description: Calculated Result
                    RESULT_PERCENT:
                      type: integer
                      format: int64
                      description: Degree of Fulfillment in Percent
                    MIN_RESULT:
                      type: integer
                      format: int64
                      description: Minimum Result That Must Be Reached
                    SCORE_MAX:
                      type: integer
                      format: int64
                      description: Maximum Number of Points Possible
                    AUDIT_CALCULATE:
                      type: string
                      maxLength: 4
                      description: Calculation of the Result and Degree of Fulfillment
                    CLASSIFICATION:
                      type: string
                      maxLength: 2
                      description: Rating Profile
                    CLASSIFI_CODE:
                      type: string
                      maxLength: 2
                      description: Rating Code
                    CONFIDENTIAL:
                      type: string
                      maxLength: 1
                      description: 'Keep Confidential  enumValues: ""='
                      enum:
                      - ''
                    PLANFINISHDATE:
                      type: string
                      format: date
                      description: Planned Finish Date
                    PLANFINISHTIME:
                      type: string
                      maxLength: 6
                      description: Planned Finish (Time)
                    ACTUALSTARTDATE:
                      type: string
                      format: date
                      description: Actual Start Date
                    ACTUALSTARTTIME:
                      type: string
                      maxLength: 6
                      description: Actual start (time)
                    ACTUALFINISHDATE:
                      type: string
                      format: date
                      description: Actual Finish (Date)
                    ACTUALFINISHTIME:
                      type: string
                      maxLength: 6
                      description: Actual Finish (Time)
                    NEXT_AUDIT_DATE:
                      type: string
                      format: date
                      description: Date of Next Audit
                    NEXT_AUDIT_OBLIG:
                      type: string
                      maxLength: 1
                      description: 'Subsequent Audit Required  enumValues: ""='
                      enum:
                      - ''
                    ORIGINAL_LANGU:
                      type: string
                      maxLength: 1
                      description: Language the Audit Component was Created In
                    ORIGINAL_LANGU_ISO:
                      type: string
                      maxLength: 2
                      description: Language according to ISO 639
                    STAT_PROF:
                      type: string
                      maxLength: 8
                      description: Status Profile
                AUDITEDOBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJECT_TYPE:
                        type: string
                        maxLength: 2
                        description: Object Attribute Type
                      GUID:
                        type: string
                        maxLength: 32
                        description: unique object identifier in Audit Management (CHAR32)
                      OBJECT_VALUE:
                        type: string
                        maxLength: 40
                        description: Allowed Object Attribute Value
                LONGTEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      REF_GUID:
                        type: string
                        maxLength: 32
                        description: unique object identifier in Audit Management (CHAR32)
                      EXTERNAL_ID:
                        type: string
                        maxLength: 24
                        description: Object Key
                      TEXT_ID:
                        type: string
                        maxLength: 4
                        description: Text ID
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      FORMAT_COL:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TEXT_LINE:
                        type: string
                        maxLength: 132
                        description: Text Line
                PARTNER:
                  type: array
                  items:
                    type: object
                    properties:
                      ROLE_SORTNR:
                        type: integer
                        format: int32
                        description: Sort Order of Roles for Audit Component
                      GUID:
                        type: string
                        maxLength: 32
                        description: unique object identifier in Audit Management (CHAR32)
                      EXTERNAL_ID:
                        type: string
                        maxLength: 24
                        description: Object Key
                      ROLE:
                        type: string
                        maxLength: 2
                        description: Role in Processing of Investigations (Audits, FMEA,...)
                      PARTNER_ROLE:
                        type: string
                        maxLength: 6
                        description: Business Partner Role
                      RESPONSIBLE_NAME:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      PARTNER_GUID:
                        type: string
                        maxLength: 32
                        description: Business Partner GUID
                TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      REF_GUID:
                        type: string
                        maxLength: 32
                        description: unique object identifier in Audit Management (CHAR32)
                      EXTERNAL_ID:
                        type: string
                        maxLength: 24
                        description: Object Key
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      DESCRIPTION:
                        type: string
                        maxLength: 40
                        description: Language-Dependent Short Text
              required:
              - AUDIT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AUDITEDOBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJECT_TYPE:
                          type: string
                          maxLength: 2
                          description: Object Attribute Type
                        GUID:
                          type: string
                          maxLength: 32
                          description: unique object identifier in Audit Management (CHAR32)
                        OBJECT_VALUE:
                          type: string
                          maxLength: 40
                          description: Allowed Object Attribute Value
                  LONGTEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        REF_GUID:
                          type: string
                          maxLength: 32
                          description: unique object identifier in Audit Management (CHAR32)
                        EXTERNAL_ID:
                          type: string
                          maxLength: 24
                          description: Object Key
                        TEXT_ID:
                          type: string
                          maxLength: 4
                          description: Text ID
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        FORMAT_COL:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TEXT_LINE:
                          type: string
                          maxLength: 132
                          description: Text Line
                  PARTNER:
                    type: array
                    items:
                      type: object
                      properties:
                        ROLE_SORTNR:
                          type: integer
                          format: int32
                          description: Sort Order of Roles for Audit Component
                        GUID:
                          type: string
                          maxLength: 32
                          description: unique object identifier in Audit Management (CHAR32)
                        EXTERNAL_ID:
                          type: string
                          maxLength: 24
                          description: Object Key
                        ROLE:
                          type: string
                          maxLength: 2
                          description: Role in Processing of Investigations (Audits, FMEA,...)
                        PARTNER_ROLE:
                          type: string
                          maxLength: 6
                          description: Business Partner Role
                        RESPONSIBLE_NAME:
                          type: string
                          maxLength: 10
                          description: Business Partner Number
                        PARTNER_GUID:
                          type: string
                          maxLength: 32
                          description: Business Partner GUID
                  RETURN:
                    type: array
                    items:
                      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
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        REF_GUID:
                          type: string
                          maxLength: 32
                          description: unique object identifier in Audit Management (CHAR32)
                        EXTERNAL_ID:
                          type: string
                          maxLength: 24
                          description: Object Key
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        DESCRIPTION:
                          type: string
                          maxLength: 40
                          description: Language-Dependent Short Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
