cancel
Showing results for 
Search instead for 
Did you mean: 

Smart form vs script

Former Member
0 Kudos

Hi Friends..

I have lot of confusion over that.. why we go to sap script...

smartforms having all the facilities..

what r the main differences between smartform and sap script.

thanks in advance

Gowrishankar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

You are correct that smartforms are better to use than scripts, 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

Former Member
0 Kudos

Hi Thanks to all specially singh..

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

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

f) Easier to debug in Scripts.

SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).

You can create smartforms using transaction SMARTFORMS.

SAPscripts is the standard SAP form design tools for user to developed customized form printing format such as purchase orders, invoices, checks, labels.

You can create scripts in SE71.

<b>Regards,

Jackie..</b>

Former Member
0 Kudos

Hi ,

i need to display data from two tables like BSEG and SKAT and i would have to display in smart-form main window

saknr,txt50 from SKAT

mwskz,qsskz,dmbtr,wrbtr,shkzg are from BSEG

skat-saknr = bseg-hkont

after getting this data how to declare these two tables in smartforms please give me idea iam also using BKPF also for BSEG purpose.

LOOP AT IT_BKPF.

SELECT BUKRS BELNR GJAHR ZUONR QBSHB SGTXT MWSKZ QSSKZ DMBTR WRBTR SHKZG

FROM BSEG

INTO CORRESPONDING FIELDS OF IT_BSEG

WHERE BUKRS IN BUKRS AND BELNR IN BELNR AND GJAHR IN GJAHR .

READ TABLE IT_SKAT WITH KEY SAKNR = IT_BSEG-HKONT.

IF SY-SUBRC = 0.

APPEND IT_BSEG.

CLEAR IT_BSEG.

ENDIF.

ENDSELECT.

ENDLOOP.

and i used this one also check this one and give me correct one how to do this one

*SELECT SINGLE * FROM T001 INTO CORRESPONDING FIELDS OF IT_T001 WHERE BUKRS = BUKRS.

*

*SELECT BUKRS BELNR GJAHR ZUONR QBSHB SGTXT MWSKZ QSSKZ DMBTR WRBTR SHKZG

  • FROM BSEG

  • INTO CORRESPONDING FIELDS OF IT_BSEG WHERE BUKRS = BUKRS

  • AND BELNR = BELNR

  • AND GJAHR = GJAHR.

*

*

  • SELECT SPRAS KTOPL SAKNR TXT50 FROM SKAT INTO CORRESPONDING FIELDS OF TABLE IT_SKAT WHERE SPRAS = SY-LANGU

  • AND KTOPL = T001-KTOPL

  • AND SAKNR = BSEG-HKONT.

*

*ENDSELECT.

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,

Basically 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.

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

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,