06-16-2011 10:18 AM
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?
06-16-2011 10:38 AM
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
09-12-2013 7:18 AM
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
04-30-2014 6:58 PM
This worked for me Prabhu, thanks for your help. Hopefully you get your points.