‎2010 Oct 13 11:38 AM
Hi all,
Am changing some standarized prog ,and i need to add one more field to the final internal table..
the final internal table is already declarede as field-symbols: <fs_final> type standard table.
now how can i add one more field to <fs_final> internal table..
for example i need to add one more field length type Char1 ....how can i do this? with field-symbol ..is it possible???
Regards
Jack
‎2010 Oct 13 11:45 AM
i'm not sure what is the requirement but can you alter the condition with <fs_final2> type any and do the processing.
but if you have to reflect in the std table/structure then i hope you have to do the addition from source.
‎2010 Oct 13 12:09 PM
Hi ,
thanks for the reply!
ill tell u my exact requirement ...an alv report is generated by the standard program ..and <fs_final> is the final internal output table....this standard program is usind oops technique to generate the output....
now i have to make it as alv editable....i know how to make it as editable....for which i need to add one more column to the final internal table <fs_final> ....if i can add one more column to it...am done..thats all..
Thanks
Regards
Jack
‎2010 Oct 13 12:14 PM
Hello,
If the class being used in CL_GUI_ALV_GRID and the whole ALV Grid needs to be made editable for the user, we can use the IS_LAYOUT structure used in the method SET_TABLE_FOR_FIRST_DISPLAY. In the structure, pass the field EDIT = 'X'.
Regards,
Himanshu
‎2010 Oct 13 12:22 PM
Hi Himanshu,
thanks for the reply!
but not whole alv table ......alll rows but for only for few fields/columns .....
regards
jack
‎2010 Oct 13 2:03 PM
Hi Jack,
Try to figure out where is the code for building fieldcatalog.
You just need to add 1 more column in fieldcatalog of ALV.
While filling dynamic internal table, fill that field also.
Regards,
Nisha Vengal.
‎2010 Oct 13 11:46 AM
Hello Jack,
Whenever an internal table is defined like:
'itab type standard table', it means that the itab does not have a fixed structure and hence a specific column cannot be added/deleted from it.
As per my understanding, somewhere In the standard code, a dynamic internal table might have been created. If yes, then you need to add the new column there in the fielcatalog.
Hope this helps,
Regards,
Himanshu