Hi,
For that you need to create formula variable with replacement path.
Basically you are converting char into kf so that you can use it in your formulas.
Follow this document to get the details on the same.
http://scn.sap.com/docs/DOC-27491
Hope this helps.
Regards,
AL