cancel
Showing results for 
Search instead for 
Did you mean: 

Smart form line types

Former Member
0 Kudos

Hi all,

I am able to create a template and in that i have created two line types. But i am unable to use it it.How line types are used in the form an I am unable to understand how its useful in the form. Can any one help me in this.

Regards,

Lisa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lisa,

In case if you defined a table :

Line type are used in Table defininition.

Example :

Contains Line types : Header , ITeM, Footer

Once you have assigned line type(Example : Header) then system will provide you all the columns in the lone types. Then please create a text elements and add the variables.

In case if you defined a template:

If you define lines in template then you have to assign text elements by column/row.

Examples : If templete defined as

Row1 Col1 Col2

Then define text element with variable and at out put options define Row as 1 and column as 1.

Please check the link

<a href="http://www.sapgenie.com/abap/smartforms_detail.htm">Displaying a static table</a>

Hope this may help you.

Lanka

Former Member
0 Kudos

Hi Lanka,

How to assign line type to the header.

Regards,

Lisa

Former Member
0 Kudos

Hi lanka,

Can you help me how to write it.

Regards,

Lisa

Former Member
0 Kudos

Hi Lisa,

Please do the following :

First define the table layout.Then system create three default line type to it Like HEADER/ITEM/FOOTER.

Then define/Change the Column widths as per ur requirement at the table graphical editor. .

Then select Header:

Then at <u>header</u>--> <u>Options</u> -->assign line type. Then system will create default columns in th Header line under header.

You have to specify the Line Type in your Text elements in the Tabstrips Output options.

Tick the New Line and specify the Line Type for outputting the data.

Declare your output fields in Text elements

Need more help please let me know.

Regards,

Lanka

Former Member
0 Kudos

Hi lanka,

Upto here i have did but the diffrence is i have created a template then there after i am unable to understand how its useful.

Regards,

Lisa

Former Member
0 Kudos

Hi Lisa,

In the output options..there is some thing called line type,you will get a drop down where you can select one line type.

Former Member
0 Kudos

Hi Phani,

I didnt fornd anything like that so can you please explain it clearly.

Regards,

Lisa

Former Member
0 Kudos

Hi Lisa,

Please understand Template is totally different to Table.

Template : is a static --Fixed no. of rows

Table : is dynamic.

IF you defined <u>table</u> :

As I have mentioned in my earlier post.

Check the Options tab at Header and select line type.

If you defined the template--Then there is no need to define table lines.

Step1 : Create Template.

Step2 : Create no. of O/P line in template in Graphical editor.

Exaple : Width of template 70MM

Row Height Column 1 column2

Line1 1 1 1LN 40MM 30 MM

Line1 2 2 1LN 40MM 30 MM

Then Define Text elements under Template by just clicking Right click and assign Text under template.

At Text elements --> Options

To print at First roW1 and Column1

Text element--Options --Row 1 and Column1

Define variable at Text elment

To print at First roW1 and Column2

Text element--Options --Row 1 and Column2

Define variable at Text elment

To print at First roW2 and Column1

Text element--Options --Row 2 and Column1

Define variable at Text elment

To print at First roW2 and Column2

Text element--Options --Row 2 and Column2

Define variable at Text elment

Please check this link:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/30/4fbac42e5f11d5b694006094192fe3/content.htm">Template</a>

Regards,

Lanka

Former Member
0 Kudos

Hi Lanka,

i didnt understand this sentence'Create no. of O/P line in template in Graphical editor.'

Please explain me.

Regards,

Lisa

sorry i understood know

Message was edited by: Lisa Roy

Former Member
0 Kudos

Hi Lisa,

I understand that earlier you have not defined Linetypes in Graphical editor.

You have to define line types in table graphical editor and you can define differnt columns for each line type and borders /shading by selecting patterns.

Once you have define them in the graphical editor then these line types were avialable for assigning to your table lines Header / Item/Footer.

When you assigned your line type to your table Header/Item/Footer then system will create automatically all the columns defined in the table line type.

Then you have to just assign text lines to them and assign variables.

Hope this may help you.

Regards,

Lanka

Former Member
0 Kudos

Hi lanka,

I have created the lines in the graphical editor the there after i created two text nodes and then you are explaining to assign and all.Can you please help me how can i do that.

And you are explaining the line types to assign to the header how can i do that.

And alo you said there is option where is it.

Regards,

Lisa

Message was edited by: Lisa Roy

Message was edited by: Lisa Roy

Former Member
0 Kudos

Hi Lisa,

Select the table and selct HEADER --Right Click and create a table lne as header_text

--Select Header_text > in the output options of Header_text> you can specify the OUTPUT table LINE TYPE as you defined in the graphical editor. There is a pull down menu to select line type.

Then system will create columns under Header_text.

Then define text elements under each column and assign variables to them.

Regards,

Lanka

Former Member
0 Kudos

Hi lanka,

I have created a template not table then there no option line header.I dont know whether i am going wrong are you are going wrong.Some one has to realize the mistake other wise this problem will not be solved.

In your previous post you said, no need to define lines if i define a template then what i have to do.

Know i understood u r always explaining table by keepin mind.

At the scratch of my post itself i have defined that i have created template.Please find out.

Regards,

Lisa

Regards,

Lisa

Message was edited by: Lisa Roy

Former Member
0 Kudos

Hi Lisa,

Ok. You have created Template. No more confusion.

You have finished the steps 1 and 2 and please proceed from Step3.

Step1 : Create Template.

Step2 : Create no. of O/P line in template in Graphical editor.

Exaple : Width of template 70MM

Row Height Column 1 column2

Line1 1 1 1LN 40MM 30 MM

Line1 2 2 1LN 40MM 30 MM

<u>Step 3:</u>

Then Define Text elements under Template by just clicking Right click and assign Text under template.

At Text elements --> Options

To print at First row1(Line1) and Column1

Text element--Options --Row1(Line1) and Column1

Define variable at Text elment

To print at First roW1(Line1) and Column2

Text element--Options --Row1(Line1) and Column2

Define variable at Text elment

To print at First roW2(Line2) and Column1

Text element--Options --Row2(Line2) and Column1

Define variable at Text elment

To print at First roW2(Line2) and Column2

Text element--Options --Row2(Line2) and Column2

Define variable at Text elment

Regards,

Lanka

Message was edited by: Lanka Murthy

Former Member
0 Kudos

Hi lanka,

As you are mentioning that

At text elements-> options.

I am unable to find out 'options'.

These are the following steps i have did.

I have created a text node of type text element then what else i have to do.

Regards,

Lisa

Former Member
0 Kudos

Hi Lisa,

I think <b>Output</b>tab and not options tab as mentione in my earlier posts.

You have to define the Row/Column for your text element ro create O/P at the particular cell defined in the template.

Regards,

Lanka

Former Member
0 Kudos

Hi Lanka,

In the output tab there is no button or anything like options.Help me in this.

But in the text node i hav e written like this &wa_sbook-carrid& &wa_sbook-connid&.

I am getting output.

But what you have said i didnt found.

Regards,

Lisa.

Former Member
0 Kudos

Hi Lisa,

When you press Output tab of Text element at the bottom you will find Row and column.

Please be sure you have to create Text element under Template not out side of Template.

May be you have created out side the template. Please check that.

I think you have defined Only one column and one row and you are getting O/P. If you have more rows and columns in a template then you have to define rows/columns at Output.

Lanka

Former Member
0 Kudos

Hi Lanka,

Than you very much for helping with lot of patience

Regards,

Lisa

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Lisa,

Line types can be used to handle to lines in the window,mainly the main window.Like your heading should be of one line type,& the details of one line type.

For example...

Header is nothing but text headings which is character types.But your item details might contain data of text type,or currency type,date type etc etc..so when you want the data in a tabled manner,the character writes from the left side & currency writes from the right side ,so now now you need to write that currency field not at the same location as the heading,you need to move little left while writing.thats where you use the line type.

suresh_datti
Active Contributor
0 Kudos

Hi Lisa,

Linetype is used to set the field width of fields to be displayed in the output.

Check this

Regards,

Suresh Datti