Applies To:
CPQ
Summary:
This article will show you how to write a CPQ tag to perform a square root function within CPQ.
Details:
Currently, CPQ does not have tag operator to calculate square root value. Therefore, you will need to utilize other CPQ allowed scripting language such as VBScript.
Solution/Workaround:
The best optimal way to perform a square root function in CPQ is to use a VBScript function, SQR(), in a CPQ Eval Tag.
Correct tag to use is below:
<*Eval(SQR("value"))*>
Sample of what tag should look like :
E.g: <*Eval(SQR("4"))*>
Result of the tag in debugger:
![](/sap/support/sapnotes/public/services/embedded_image.htm?iv_guid=00109B36BC961EED86ACE5C6176FD749&iv_key=002075125900001300632022)
Comments:
- The 'SQR' is Visual Basic Function. Click here to find more information about this function.
- VB Function must be used inside of a CPQ Eval (<* Eval(...) *>) tag.