Some customers have requirement to deactivate "release to accounting" function in VF02.
As you may know, there is no standard way to make 'release to accounting' icon grayed out.
For release to accounting, standard SAP provides 2 authorization objects :
1. V_VBRK_FKA - Billing: Authorization for Billing Types
2. V_VBRK_VKO - Billing: Authorization for Sales Organizations
So to fulfill this requirement, you may consider creating transaction variant via SHD0. The following steps are for your reference:
1)Start SHD0, enter transaction name & Z_variant_name click on "Create button"
2) Initial screen of VF02 will appear, just click "ReleaseToAccounting" button
3) In the next screen, click "Menu Functions" button
4) Expand "menu bar"->"Billing document" and select FKFR(ReleaseToAccounting) line and click "deactivate" button.
5) Enter screen variant name and click "Exit and Save button"
6) Save the variant
7) Activate this variant
Then when you run VF02, you will see ReleaseToAcounting button is deactivated.