10-16-2006 12:09 PM
Hi all,
I need to add an additional field on the display layout of report RASIMU02. Unfortunately, this field is not offered by SAP so I have to make a copy of the program. But I am having difficulty in tracing the program since it is so difficult. Can anybody tell me where is the data stored in the code just before being displayed on the screen? I need to modify this layout just before the actual display. I guess it must be in some internal table...?
Thanks for any help,
Nelmaz from Mauritius
10-16-2006 12:12 PM
Hi,
The output for this report is via ALV as shown below:
IF NOT GT_OUTTAB[] IS INITIAL.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = G_STATUS_SET
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT[]
IT_EXCLUDING = GT_EXCLUDING
IS_SEL_HIDE = LS_SEL_INFO
I_SAVE = 'A'
I_DEFAULT = 'X'
IT_EVENTS = GT_EVENTS[]
IS_VARIANT = G_VARIANT
TABLES
T_OUTTAB = GT_OUTTAB.
ELSE.
MESSAGE S020(AB).
ENDIF.
The include where this final writeout is happening is RASIMU_CALL_ALV.
So you need to modify some of the internal tables like layout, fieldcatalog and GT_OUTTAB.
Rgds,
HR