Are you talking about loan fees, which are amortized over the life of the loan, or actual closing cost?
If we are talking about actual closing cost, I am not aware of any that would be allowed on E but not A (if that is what you are saying).
Nondeductible closing cost are capitalized and become part of basis to the property.
IRS seems to agree per https://www.irs.gov/faqs/sale-or-trade-of-business-depreciation-rentals/rental-expenses/rental-expenses :
"Question
I purchased a rental property last year. What closing costs can I deduct?
Answer
Generally, deductible closing costs are those for interest, certain mortgage points and deductible real estate taxes.
Many other settlement fees and closing costs for buying the property become additions to your basis in the property and part of your depreciation deduction, including:
Abstract fees
Charges for installing utility services
Legal fees
Recording fees
Surveys
Transfer taxes
Title insurance
Any amounts the seller owes that you agree to pay (such as back taxes or interest, recording or mortgage fees, sales commissions and charges for improvements or repairs)."