on 03-26-2014 3:19 PM
Hi there,
I want to assign different forms for audit based on audit type.
I have read SAP Note 432642 but still not clear what to do with class CL_PLM_AUDIT_FORM_AUDIT.
Is anyone have done this? Please advise.
Hello,
We haven't used that class either, but we handled it by employing conditions within a single smartform. You could try it if this method won't work.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Iohit,
I have implemented my enhancement at the end of the above-mentioned method.
ENHANCEMENT 1 ZIM_PLM_AUDIT_FORM. "active version
DATA: ls_attributes TYPE CGPL_PROJECT,
ls_audit TYPE PLMM_AUDIT.
IF iv_object_type = 'AUO'."audit
CALL METHOD ir_object->get_attributes
IMPORTING
ex_attributes = ls_attributes
* ex_attributes_old =
.
CALL FUNCTION 'PLM_AUDIT_ORDER_READ_DB'
EXPORTING
IV_GUID = ls_attributes-guid
* IT_GUID =
IMPORTING
ES_AUDIT_ORDER_DB = ls_audit
* ET_AUDIT_ORDER_DB =
EXCEPTIONS
PARAMETER_ERROR = 1
RECORD_NOT_FOUND = 2
AT_LEAST_ONE_RECORD_NOT_FOUND = 3
OTHERS = 4
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING failed.
ELSE.
IF ls_audit-audit_type = 'SA'."system audit
ev_formname = 'Z_PLM_AUDIT_1'."new form
ENDIF.
ENDIF.
ENDIF.
ENDENHANCEMENT.
User | Count |
---|---|
107 | |
12 | |
10 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.