Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

adding fields to field-symbol

Former Member
0 Likes
1,093

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

6 REPLIES 6
Read only

Former Member
0 Likes
795

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.

Read only

0 Likes
795

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

Read only

0 Likes
795

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

Read only

0 Likes
795

Hi Himanshu,

thanks for the reply!

but not whole alv table ......alll rows but for only for few fields/columns .....

regards

jack

Read only

0 Likes
795

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.

Read only

Former Member
0 Likes
795

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