I have modified the FBL3N standard Zprogram RFITEMGL to add some fields for display in the report. I have changed the input parameters for the Function Module FI_ITEMS_DISPLAY in RFITEMGL like it_items = My_table_item to display modified table values. But when I try to append the field catlog gt_fieldcat using the following code I am not able to see these fields in the report layout but I have it in My_table_item.
gt_fieldcat-TABNAME = 'IT_POS1'.
gt_fieldcat-FIELDNAME = 'NAME1'.
gt_fieldcat-OUTPUTLEN = '20'.
gt_fieldcat-SELTEXT_L = 'Vendor Name'.
APPEND GT_FIELDCAT.
gt_fieldcat-TABNAME = 'IT_POS1'.
gt_fieldcat-FIELDNAME = 'MAKTX'.
gt_fieldcat-OUTPUTLEN = '20'.
gt_fieldcat-SELTEXT_L = 'Material Desc.'.
APPEND GT_FIELDCAT.
What Should I do? Kindly help me