11-19-2011 3:22 PM
Hi,
In Tcode QA32 which is in Program RQEEAL10 , I have to add 3 New field for which output is coming in ALV. I have done enhancement in the structure , Though this fields are coming in the internal table yet it is not coming in the fieldcatalog. Please Help.
11-19-2011 5:32 PM
Hi Saurabh,
Have you added those fields in field catalog too.
If no then update field catalog first.
Thanks,
Vijay
11-19-2011 5:32 PM
Hi Saurabh,
Have you added those fields in field catalog too.
If no then update field catalog first.
Thanks,
Vijay
11-20-2011 4:25 PM
Hi,
Actually thats what I was asking ....how to add new fields in the fieldcatalog.
11-20-2011 5:08 PM
Hi Saurabh,
How you add your new fields into internal table.
Like have you append structure "QALS_D02".
If yes then if you see the form "FORM create_fieldcat_l USING tabname TYPE slis_tabname." in program "RQEEAL10".
Program creating the fieldcatalog dynamically by using structure "QALS_D02".
FORM create_fieldcat_l USING tabname TYPE slis_tabname.
DATA h_fieldcat_wa TYPE slis_fieldcat_alv.
DATA h_index LIKE sy-tabix.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = g_repid
i_internal_tabname = 'OBJECT_TAB'
i_structure_name = tabname
i_client_never_display = ' '
CHANGING
ct_fieldcat = g_fieldcat_tab[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
if you see the above form then you come to know that after creating field catalog dynamically by using FM they are doing some changes to fieldcatalog table "g_fieldcat_tab[]" and finally export that table to memory id 'FIELDCATALOG'.
Solution - Create implicit enhancement implementation at the end of above mentioned FORM. Inside implementation do modification for your new added fields and again export that fieldcatalog table to memory.
If you have any doubts feel free to ask.
BR,
Vijay
11-21-2011 10:33 AM
Hi vijay.
I am able to see the new fields in internal table as well as in field catalog... but this field in not visible in the output alv.. . though I have put 'no_out' property of fieldcatalog as blank. I am also getting this in the Change layout properties of ALV in output. But when I try to put it from column set to display column. It is going to dump.
Edited by: Kumar Saurabh on Nov 21, 2011 1:05 PM
01-19-2012 6:22 AM
Hi Sourabh,
May you please share a step by step detailed help on how you did the enhancement.
I want to add a field in the QA32 ALV.
Thanks,
Sakar
12-20-2012 2:22 PM
I had the same requirement. Below are the steps I followed. Might help for others..
* Append Structure for QALS_D02
* Append structure for QALS (If not would give a dump when you select the field)
* Write the enhancement spot as described by Saurabh.
Thanks, Raj
07-17-2013 10:03 AM
08-11-2020 1:27 PM
There are several ways to solve this issue.
Variant 1) Enhancement (see link above)
Variant 2) Exit
Variant 3) Create your own Z-Transaction (I do not recommend this options for small adaptions)
Best Regards,
Sebastian Sav