Skip to end of metadata
Go to start of metadata

Symptom

If you assign an audit object to your audit using transaction PLMD_AUDIT the short text is not displayed for the audit object.
Reproducing the Issue

  1. Call transaction PLMD_AUDIT
  2. Assing a value to your audit object
  3. The short text for the audit object is not displayed

Cause

The description (short text) of the audit objects are determined by the implementations of the BAdi PLM_AUDIT_OBJECT.

The standard BAdI implementations are taking the descriptions for the following audit objects:

1. which are in the customizing for the audit type under 'Permitted Input Values' maintained.
   Customizing path:
   tr. PLMC_AUDIT
   Audit Management --> Audit Definition --> Audit Type --> Z3 Construction Audit --> Permitted Input Values

2. under 'Permitted Input Values' is the data element BU_PARTNER (Business-Partner) or COMT_PRODUCT_ID (Product im CRM) is maintained
  

As described above the BADI PLM_AUDIT_OBJECT, in all delivered implementations the short text can only be read for the audit objects with data element BU_PARTNER and COMT_PRODUCT_ID.
It happens in the method GET_VALUE_SHORT_TEXTS in the function module PLM_AUDIT_OBJECT_GET_TEXT.

*     Get text for object value by field value and data element
***********************************************************************
* Function module is an example used in BAdI PLM_AUDIT_OBJECT
      CALL FUNCTION 'PLM_AUDIT_OBJECT_GET_TEXT'
        EXPORTING
          IS_AUDIT_OBJECT_UI   = LS_AUDIT_OBJECT_UI
          IS_AUDIT_OBJ         = LS_AUDIT_OBJ_CUST
        IMPORTING
          EV_TEXT              = LS_AUDIT_OBJECT_UI-VALUE_TEXT
        EXCEPTIONS
          NO_TEXT              = 0
          OTHERS               = 0.

The in standard delivered implementation is only an example and it is designed only for reading short text of the data elements above.

The relevant coding section:

Function module PLM_AUDIT_OBJECT_GET_TEXT
...
CASE is_audit_obj-data_element

     WHEN 'BU_PARTNER'.
*       Get description from business partner
        DATA:
          lv_bu_partner TYPE bu_partner,
          lv_bu_descrip TYPE bu_descrip.
....
      WHEN 'COMT_PRODUCT_ID'.
....

To get the short text for all other object type (e.g. with data element PS_PSP_PNR,PS_POSID, MATNR..) you should use an own implementation with own programs.

Resolution

For all other objects (as e.g. vendor) a customer own implementation is necessary. The delivered BADI implementation is only an example which can be used as reference for the own implementations.

Customizing path:

Transaction PLMC_AUDIT
Audit Management --> System Adjustment --> Business Add-Ins (BAdIs) -->BAdIs for Audit Objects and Audit Valuations -->Definition and Structure of an Audit Object (PLM_AUDIT_OBJECT)

1. A filter type must be specified when the BAdI is implemented
2. The method GET_VALUE_SHORT_TEXTS should help in your case

  • No labels