Below is the syntax to hide ALV field during program run. This setting need to be applied at fieldcatalog level, user can view the field by used the layout setting.
ta_fieldcatalog-no_out = 'X'.
There are 8 bits in a byte. There is No Shortcut to be A Great ABAP Programmer and It's Applies to All.
valamt TYPE p DECIMALS 2,"18.Value Amount
amtpst TYPE p DECIMALS 2,"19.Amt Posted
sapostamt TYPE p DECIMALS 5, "20.Amt Posted in SAP
END OF ty_report.
ta_fieldcatalog-fieldname = 'AMTPST'.
ta_fieldcatalog-seltext_l = 'Amt Posted'.
append ta_fieldcatalog to ta_fieldcatalog.
clear ta_fieldcatalog.
ta_fieldcatalog-fieldname = 'SAPOSTAMT'.
ta_fieldcatalog-seltext_l = 'Amt Posted in SAP'.
append ta_fieldcatalog to ta_fieldcatalog.
clear ta_fieldcatalog.