Skip to Content


This blog entry stem from this question I asked ( and the response that I got from Jānis B. I think that all the credits should go to him .

I am working for a chemical company and there is a use of chemical characteristic in data tables (e.g chemical formula,).

For example: H<SB>2</>O boil at 100<SP>0</>

This piece of data needs to be printed like this:


We have some old development that use sap script.

Within SAP script form we can define “Character formats” that will intercept the SB,SP tags:

We are in 2015 so the current technologies are Smart forms and Adobe forms and we would like to use those:

The data definition involve is similar for both technologies , we need to add to our internal table a new “field” , this field is actual a table type tline_tab ,

I created a global class (SE24) to put my data type definitions:

The table values:

Look into the internal table :

Smart form implementation:

Import parameter:

Global:(ignore ST_SFLIGHT)


The table loop:

The use of dynamic text:

We are printing the content of the internal table.

The last ingredient is a Smart Style: (for demonstration purpose I also use some color)

The SP tag is identical but uses the superscript .

To control the height of the table row I use the “Paragraph Format” .

The Smart Style as used in the form:

The result:

Adobe form implementation:

(I am a newbie with adobe form and I got a lot of help from a team member Jenya Hondrash )

Data definition:

Form interface:

Form context:

Form layout:


The result:

Phew that was a long one….


To report this post you need to login first.


You must be Logged on to comment or reply to a post.

Leave a Reply