cancel
Showing results for 
Search instead for 
Did you mean: 

Differences Between Scripts & Smartforms...

Former Member
0 Kudos

Hi,

In my project any one of the Employee should give sessions on any of the topic every week. So i have decided to give on Scripts & Smartforms. Can any one explain in details the difference between Scripts & Smartforms.

Thanks & Regards,

Ramana.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

SAP Script

1.Client Dependent

2. Multiple page formatting is not possible

3. 2 Componets(Print program and LAyoutset)

Smartforms:

1.Client Independent.

2. Multiple page formatting is not possible

3. 3 Componets(Print program, Function module and Layoutset)

whenver u activate a smartform it will create a smartforms

some practical differences are :

*One main difference which is

visibility in the report is TABLES

(in sapscript we cannot design MATRIX like tables,

having grid lines,but in smartforms, it is much possible to design tables, having grid lines, color just

like excel table)

a) sapscript requires

driver program (se38 program)

layout (se71 layout)

smartforms just require

smartform,

(and a program is just required for selection screen purpose)

b) the logic of printing (ie. sequence, flow) is CONTROLLED BY drier program,in case of sapscript.

where as in smartform, it is inbuilt using TABLES element.

c) In sapscript we cannot write our own logic for printing.

where as in smartform,

we can write our own logic for pritning.(we can even write SELECT Statements, DATA statements,and many program lines + logic to suit our requirements)

2 Which we have to use

If we are copying some standard sapscript,

then we have to go for sapscript only.

We can use both. but practically smartforms is easier to

develop.

For more information on the difference between SAPscript & smarform,

kindly check the following links:

http://www.sap-img.com/smartforms/smartform-sapscripts.htm

Smartforms are Purely GUI based .

u can have drag and drop options here.

a FM can be generated when u ativate Smartform

u can have different page formats for different different pages.

The concept of Script and Smartforms is one and the same which are used to create layouts, but in smartforms you will have more options to design the layout than in a script.

Former Member
0 Kudos

HI

Ramana

HI,

Differences between Smartforms and SAPscript

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.

Also a SAPscript form can be migrated to Smartform. A SAPscript form can be migrated into a Smart Form or convert a SAPscript style into a Smart Style.

When converting a SAPscript style into a Smart Style, the system converts all paragraph and character formats with all their properties and attributes without any changes. Thus you can use the converted Smart Style without making any adaptations.

There are subtle but important distinctions.

1) Saving a Smart Form is a step done only in the development client. It commits your form changes and marks its status as inactive. A form should not be transported in this inactive state. When you are making a lot of changes to a form, it may be a good idea to save periodically. This is especially true if you are on an earlier support pack where an ABAP dump can occur sporadically during activation; in this case, all changes since your last save will be lost. Saving is quick since it does not generate any ABAP code.

2) Activating a Smart Form is a step done only in the development client. It switches your form's status from inactive to, well, active. Activation also saves your form and generates an ABAP function module, so it can take a while to complete. (Note: One way to speed up activation is to omit graphics until your form is close to completion.)

3) Generating a Smart Form can be done anywhere. It regenerates the ABAP function module tied to the form based on the latest contents of the form. This ABAP code is what your print program calls when producing output, rather than the form itself. Technically speaking, your print program doesn't even look at the form itself! Generation should be done on an active form. If this code generation does not take place, no ABAP will exist and you won't be able to produce any output. Typically, a one-time generation occurs automatically behind the scenes when you first attempt to produce output in a target system.

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

plzz reward if u found my information usefull to u

for any further quiries my mail id mutyalasunilkumar@gmail.com

plzz dont forget to reward.....

Former Member
0 Kudos

hi

Difference with SMARTFORMS vs. SapScript (SE71)

The Following are the differences :-

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.

Contributed by : SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

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

It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.

In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.

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.

g) 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.

i) The main difference is that SAP script is client-dependant, while smartform is independent. Also there are some advanced and intreractive features available in smartforms.

You can use an External subroutine-call in sapscript editor like:

/: perform <form_name> in program <program_name>

/: using <var1>

/: using <var2>

.

.

/: changing <return1>

/: changing <return2>

/:endperform

i think it will useful for you.

Reward points if useful.

Thanks,

Usha

Former Member
0 Kudos

Difference between scripts vs smartforms

Reward points if useful.