cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent:Tab Space in Smartforms' Textelement

Former Member
0 Kudos

Hi

we use a pair of commas (,,) to represent a TAB in sap script.

Could you please tell me what do we use for smartforms.??

My requirement is to print certain fields in a line separated by tabs.

i have created a paragraph format, ans have specified the starting positions for the different tabs.

At the time of writing a text element , how do i get is done..

eq:

Name First Second Address

data1 name1 name2 add

data2 name1 name2 add.

here, First is at 1st tab

Second is at 2nd tab

Address is at 3rd tab.

Any pointers on the same would be useful.

Thanks n Regards

Pankaj

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi frens

thanks for ur valuable suggestions.

The issue has been solved, i have used conditions(ALTERNATIVE) to print the field values.

If the condition is true then the data is printed , else not.

this maintains the output allignment.

thanks again

pankaj

Former Member
0 Kudos

After creating the table, in the table tab create line types for header and items where in you will declaring the width of each column you want in header and item. after declaring line type keep cursor in the header and right click say create table line here you declare the line type declared for header/main area

Now for each column add one text node and mention the column name. Do the same for line items.

Procedure to create line type:

1. Double click on table

2. Go to table tab --> details

3. Give the table width (width you want to display on the screen should be less than or equal to the window width).

4. Line type --> Divide this into no of column you want to have in header/item.

Note: total length of all columns should be equal to the table width.

5.save.

6. call this line type in the header /main area.

Br,

Laxmi.

Former Member
0 Kudos

Hi

i am using a table to print the dynamic data.

The table fields have to be printed with definite space between them, for this i have

defined a paragraph format as well with positions of TABS.

Now for each entry in the table , i tried to print the table fields using new line and new cell.

Since some of the fields are to be printed conditionally, therefore , there i require TABS to print the data fields.

Could you please suggest some approach.

Regards

pankaj

Former Member
0 Kudos

Hi,

you can use the same in smartforms also. But you in smartforms we two additional facilites:

1. Templates

2. Tables.

It will be easy and flexible to use one among the above. IF the table has constants Make use of Templates . If the table contains variable data then go for TABLES concept.

find the below link to know about templates and tables.

http://help.sap.com/saphelp_47x200/helpdata/EN/4b/83fb4edf8f11d3969700a0c930660b/frameset.htm

Br,

Laxmi

amit_khare
Active Contributor
0 Kudos

Hi,

If data is static use Template else use Table node in the smartform window.

That will automatically take care of the alignments.

Regards,

Amit

Former Member
0 Kudos

Hi!

Within smartforms, you do not have to use tabs, because you can use TABLES, and CELLS within the tables. Make the cells to the right size and your problem is solved.

regards

Tamá