Capital Structure Analysis Ratios 
Capital structure is the balance between debt and equity in a company. These ratios give you insight into the capital structure of your company.
Capital structure analysis ratios include the following:
DR
Calculates the debt ratio (DR), which is total liabilities divided by total assets
*function DR(%TOTALLIAB%,%TOTALASSET%)
iif(%TOTALASSET%=0,Null,round(%TOTALLIAB%/%TOTALASSET%,2))
*endfunction
DTER
Calculates the debt to equity ratio (DTER)
*function DTER(%DEBT%,%EQUITY%)
iif(%EQUITY%=0,Null,round(%DEBT%/%EQUITY%,2))
*endfunction
ICR
Calculates the interest coverage ratio (ICR)
*function ICR(%OPERINCOME%,%PAYINTEREST%)
iif(%PAYINTEREST%=0,Null,round(%OPERINCOME%/%PAYINTEREST%,2))
*endfunction
DCR
Calculates the debt coverage ratio (DCR)
*function DCR(%NETINCOME%,%NONCASHEXP%,%TOTALDEBT%)
iif(%TOTALDEBT%=0,Null,round((%NETINCOME%+%NONCASHEXP%)/%TOTALDEBT%,2))
*endfunction
Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or by its gross negligence.