Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Code in Sample Report - What does it do?


I'm viewing some of the sample reports available and in one, College Board PSAT 9.0.rpt, there are formula fields that display bullets to indicate numbers/percentages.

One of the formulas is this:


shared numbervar ratio;

local numbervar marmot;

marmot:= int(ratio*Maximum ({@Comp Group}, {SKILL.SKILL_NO}));

"{\rtf1\ansi\ansicpg1252{\fonttbl{\f0\fmodern\fprq1\fcharset0 Lucida Console;}}" +

"\viewkind4\uc1\pard\f0\fs6 " + replicatestring(" ",marmot) + "\fs27\cf1 " + chr(149) + "\par" +


I understand the shared and local variable parts - the taking of the number, but I don't understand what is in between the "".

It seems to serve as a way to place the bullets in the right place (compared to the header), but the only thing I've ever seen like it is web code.

Would anyone be able to explain in layman's terms what the code is doing and/or how it works - what type of code it is?

I've attached a screenshot of the part of the report I'm looking at.

Thank you,


PSAT.JPG (21417 B)
Former Member

Hi Erin,

The code between the double quotes is RTF text code.

I have never written RTF codes however, CR can 'interpret' such codes by setting the field's 'Text Interpretation' to 'RTF Text' (Format Field > Paragraph tab). 


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question