05-12-2008 6:14 AM
hi experts can sny one give the answer to this question...
1. how we can say scripts r client dependent and smartforms are client independent?
2. what is the diff b/n template and table in smart forms?
3. where we can declare templates in smart forms?
05-12-2008 6:18 AM
1) When you execute a smartform it willl genetate a function module..FM itself is client independent..
this is not the case at Sap scripts...
when you know the printing data before only(static) , then we will go for Templates..and when you printing data dynamically we will go for tables..
Reward if it is useful...
Regards,
Anand.
05-12-2008 6:25 AM
Hi,
1.why scripts r client dependent and smart forms r client independent.
Because, Sapscripts are saved in ITF format as text in client dependant tables STXH and STXL. smartforms are not saved in client dependant tables and visible across clients.
2.diff. between table and template in smartforms
TABLES=>
In forms of business procedures you usually want to list details such as open items of an invoice. You can use a Smart Form to display this data in a table. You can design the layout of the table independent of the number of lines it will contain. The size of the table depends on how much data the application program passes to the form at runtime (unlike with templates, where you specify the number of columns and lines explicitly). The table can cover one or more pages, depending on the number of lines. This is why you display tables in the main window.
TEMPLATES=>
Use node type Template to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program. For this reason, a template is also called a static table.
To create a template, define a table layout to determine the cell structure for each line. The cells are used to display the contents of the inferior nodes of the template node. This allows you to position text and a graphic side by side (see Displaying Graphics in Templates).
The template node is also suited for label printing.
GO THROUGH THIS LINK
http://help.sap.com/saphelp_nw04/helpdata/en/4b/83fb4edf8f11d3969700a0c930660b/content.htm
3.Template can be created just by right clicking
create---> template
There u can graphically create no of rows and columns u want
goto details and there also u can make any changes to the template
For putting any value in that u have to create text under the template and mention the position where the text will appear.
i.e row and column number
Regards,
Raj.
05-12-2008 6:25 AM
Hi,
For any information on SAP script and smartforms just refer to following link
http://www.erpgenie.com/abap/smartforms_detail.htm
Reward pts if helpfull
Regards,
Dhan
05-12-2008 6:31 AM
Hi,
1-how we can say scripts r client dependent and smartforms are client independent?
Ans: Since smartforms generates FM after designing it where as scripts doesnt.
2. what is the diff b/n template and table in smart forms?
Ans: Template is fixed with size and design(i.e fixed no of columns and rows), where as table can be with varying size and will be used to print contiunes data.
3. where we can declare templates in smart forms?
Ans: Generally we declare templates where need to print fixed no of columns and rows,
Eg: i need to print a window with 3 rows and 2 columns each roow, then we will use template in this window
Reward is useful
Thanks,
Aditya