cancel
Showing results for 
Search instead for 
Did you mean: 

Tabular format for header text

Former Member
0 Kudos

Hi,

Iam using smartform which is having header text.

Is it possible to print the header text displayed in tabular format.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

yes

Former Member
0 Kudos

The issue is Iam having header text which is as follows:

asdf $1234 qwer

wert $2345 poiu

poiu $3456 yuio

wert $4567 erty

pert $2345 poiu

asdf $1234 qwer

So now I want that text to be

asdf $1234 qwer

wert $2345 poiu

poiu $3456 yuio

wert $4567 erty

pert $2345 poiu

asdf $1234 qwer in smartform output...

Is it possible and how?

Former Member
0 Kudos

oh, ok create a paragraph format in your smartstyle or SAP-SCRIPT.

Within the paragraph format declare tabulators on the appropriate tab.

then assign this paragraph format to your header text. Use ,, as tab.

done

Former Member
0 Kudos

lets its having 5 spaces between different values,I want to have only one space between different values in the same line of the header text...then how can we assign formats as its a header text...

Former Member
0 Kudos

i dont really get your requirement, sorry for that.

at first, a header text doesnt differ from any other text from form perspective.

So there is no difference between formatting a header text and any other text.

if you just need 1 space between the values, then you dont even need tabulators, you just need to put out your values separated by space. Tho i would only propose this if your values are all of same length, otherwise it would look much better making use of tabulators.

Former Member
0 Kudos

Hi,

Thankyou for your update.

The issue is Iam having smartform output having one column as description.

In description column Iam displaying the header text info.

In my case there is one header text having 10 lines.

Each line having lets three words.

But now the issue is those 3 words are not in the same vertical line in specific header text having 10 lines.

So is it possible to make all 10 lines in same vertical lines for each word in the line...

Former Member
0 Kudos

put a style (TRX. SMARTSTYLES) and check in the paragraph format your left margin.

hope it helps

MarcinPciak
Active Contributor
0 Kudos

Why don't you use template or table to output each word in separate cell. Then you set aligmnent for each cell which results in same aligmnent of the words occuring there. You repeat the process for each line of the header text.

Regards

Marcin

Former Member
0 Kudos

But is it possible to create a table within table?If yes how?

MarcinPciak
Active Contributor
0 Kudos

No it is not possible to create a nested table/template. But you can use your column by dividing it further into new columns. you simply don't set any grid for these new columns, so the columns will be there but will display as one combined. Then address each new cell individually showing respecitve header text part in each.

Regards

Marcin

Former Member
0 Kudos

Hi,

Thankyou for the update.

lets suppose I want to divide my first column into four columns for text.

Now for first four columns I wont have lines(tab lines) and for remaining three columns I need to have lines in the same table.

This pattern is not there,then how can I set the same?

Former Member
0 Kudos

Got the solution ...Thankyou...

Answers (1)

Answers (1)

Former Member
0 Kudos

if your confused with pragrap-h and charecter format and tabs in smartstyles,,,,just give abap code lines logic

like if it_tab consists of headertext.

loop at it_tab.

concatenate string it_tab into it_tab separated by space.

condense string,.

endloop.

in text element give &string& global variable

it will print based on the templete or itab line cell of text elemt as continuous text

with onespace in between lines,.

hope it may provide u some help.