cancel
Showing results for 
Search instead for 
Did you mean: 

smartform and sapscript..

Former Member
0 Kudos

in which scenario v prefer smartform over sapscripts and in which scenarios sapscript over smartforms?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Usind Scripts or samrtforms is according to the client requirement. Smartforms are developed version in scripts.Moreover Script is client dependant and smartform is client independant.

Check these links.

https://forums.sdn.sap.com/click.jspa?searchID=633950&messageID=883538

/message/635740#635740 [original link is broken]

https://forums.sdn.sap.com/click.jspa?searchID=633950&messageID=2880271

https://forums.sdn.sap.com/click.jspa?searchID=633950&messageID=2847350

Regards,

Priyanka.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Smartforms are better to use than scripts as they provide more facility like color, graphical user interface etc, but scripts are the oldest form of layout available in SAP. There is no advantage of using script over smartform. This entirely depends on the choice in case of new developments. However, if you have to change/customize existing script then you have to deal with scripts only.

Difference with SMARTFORMS vs SapScript(SE71).

a) Multiple page formats are possible in smartforms which is not the case in SAPScripts

b) It is possible to have a smartform without a main window .

c) Smartforms generates a function module when activated.

d) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.

e) In smartforms there is only one main window.

In scripts we can create 99 main windows.

f) Smartforms are client independent. but scripts are client dependent.

g) we can execute smartforms directly without driver program. But it is not possible in script.

h) peform statement is possible in script but not in smartforms.

i) loop statement is possible in smartforms.

In script for every data record controls moves from

script to driver program and to script.

In smrtforms this is not rquired.

In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.

For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.

i) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.

Check the link,

http://www.sap-img.com/smartforms/sap-smart-forms.htm

Conversion of SAPSCRIPT to SMARTFORMS

SAP provides a conversion for SAPscript documents to SMARTforms.

This is basically a function module, called FB_MIGRATE_FORM. You can start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.

You can also do this one-by-one in transaction SMARTFORMS, under

Utilities -> Migrate SAPscript form.

Regards,

Richa

dev_parbutteea
Active Contributor
0 Kudos

Hi,

smartform is suitable to create new forms from scratch due to its user interface

but if you want to create a form whose functionalities is already implemented in a standard sapscript then its better to modify the sapscript!

Hopethat this helps you,

Sooness

Former Member
0 Kudos

a) Multiple page formats are possible in smartforms which is not the case in SAPScripts

b) It is possible to have a smartform without a main window .

c) Labels cannot be created in smartforms.

d) Routines can be written in smartforms tool.

e) Smartforms generates a function module when activated

Former Member
0 Kudos

Hi,

1. Samrt form generated FM and thus client independent.

2. Clored output posible in SF

3. Tables and templates in SF

4. Different pages eg : first page could be portraite while second page cud be landscape in SF

regards,