Application Development 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: 

VA06- adding extra field in ALV output

Former Member
0 Kudos

Hi Guru's

I got the requirement in VA06 transaction to add extra field in output, I have added field in MONITOR_STATUS_LIST_HEADER structure and created implicit enhancement in

Method : method set_col_head_pos.

ENHANCEMENT 1 ZVA06. "active version *"'ZZDATE' ir_columns->set_column_position( columnname = 'ZZDATE' position = 22 ).

ENDENHANCEMENT. *$*$-End: (1)---------------------------------------------------------------------------------$*$* endmethod.

Method:set_col_head_settings.

ENHANCEMENT 2 ZVA06. "active version *Reg.d.date try. lr_column ?= ir_columns->get_column( 'ZZDATE' ). ls_ddic-field = 'ZZDATE'. ls_ddic-table = 'MONITOR_STATUS_LIST_HEADER'. lr_column->set_ddic_reference( ls_ddic ). catch cx_salv_not_found. "#EC NO_HANDLER endtry.

ENDENHANCEMENT.

But i am not able to see in out put field in VA06.

Please let me know what is missing from my end.


Thank you


1 REPLY 1

Former Member
0 Kudos

Hi Satyanarayana,

Just check for field catalog before the method call set_table_for_first_display.

I think there is miss in catalog for your new field.

Regards,

Ankit Mahajan