Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding columns to standard report PLM_AUDITMONITOR

Former Member
0 Kudos

I am trying to add columns to the standard ALV report PLM_AUDITMONITOR. I have appended the relevabnt fields to structures PLMT_AUDIT_ALV and PLMT_QUEST_RES_STATISTIC. Howver, whilst these fields show in the data table, they do not output to the ALV report, presumably because they are not declared in the ALV field catalog. I can't find out how to add the required fields to teh catalog.

The report uses the PLM version of the ALV grid using fm PLM_AUDIT_MONITOR_ALV_DISPLAY. This is not something I have come across before and I can't find any information on it at all.

Has anybody done this before and can you point me in the right direction?

3 REPLIES 3

Former Member
0 Kudos

Hi Kevin,

You can check with the Include PLM_AUDIT_MONITOR_FORMS.

In this, from line number 551 onwards, you can see the population of the OUTPUT table for ALV.

**********************************************************************
* 4) prepare output
**********************************************************************

* fill output table
  LOOP AT lt_questions INTO ls_question.

Try to do the modifications here using the IMPLICT enhancment.

Regards

HM

Former Member
0 Kudos

Hello Kevin,

Once you have enhanced the necessary ALV Structure.

Please use the BADI PLM_AUDIT_ALV_GRID. and populate data to your additionally added columns.

Step 1 : IF_EX_PLM_AUDIT_ALV_GRID~IS_OUTTAB_CHANGE_REQUESTED

rv_change_requested = 'X'.

Set this parameter to 'X'.

Step 2: IF_EX_PLM_AUDIT_ALV_GRID~CHANGE_OUTTAB

Use this method to populate data to the Alv output. This method will get triggered for each line in the ALV Output.

ex.

FIELD-SYMBOLS: <ls_action> TYPE PLMT_AUDIT_ACT_ALV.

   IF iv_absolute_name = '\TYPE=PLMT_AUDIT_ACT_ALV'. "

       ASSIGN ir_outtab->* to <ls_action>.

       if <ls_action> is ASSIGNED.

       <ls_action>-ZFIELD1 = 'Field1'.

       <ls_action>-ZField2 = 'Field2'.

       endif.

   endif.

Depending upon your selection input ,the Iv_absolute_name will return the ALV struture .

Based on your requirment, you can handle this.

Hope this helps.

Best regards,

Prabhu

0 Kudos

This worked for me Prabhu, thanks for your help. Hopefully you get your points.