FAQ for Sap Scripts

Some common Short SAPscript questions and answers:

1. What are smart forms (if candidate worked in SAP 4.6c and above).
Smart forms are equivalent versions of SAP scripts in 4.6c version.

2. What is the program used for downloading the logo into SAP?
The program is RSTXLDMC, the logo needs to be save in .TIF format.

3. How will you transfer forms from one client to other & from development to prod system?
In transaction SE71 follow the menu. UTILITIES -> COPY FROM CLIENT.

4. How many main windows can be placed in a page?
Only one main window.

5. What are function modules associated with SAPscript?
OPEN_FORM; WRITE_FORM; CLOSE_FORM  etc.

What is the difference between a script & a report ?
Script is a form which has a layout set as per the company standards and can be used for external use too.  Generally reports are designed for internal use for in house users

What are the components/elements/layout sets in sap script ?
Layout set and Print program and the layout set has windows in it.

Components of scripts:
Layout sets, SAPScripts text, ABAP print program, symbols, function module like open form, start form, write form, etc....

Layout sets of scripts are:
Header data, paragraph formats, charcter formats, windows, page windows, pages.

Can you create a script with out a main window ?
No

How many main windows can be created for a script ?
99

How can we use tables in sap scripts?
We can access structures and the tables tat are updated during runtime. Else you have to pass the structure values to the table in the print program.

How to print a logo in a sap script?
Upolad in the R3 using Se78 and use the Include statement in the script.

When we need to modify standard scripts (eg:medruck) given by sap?
When the client goes for customization of the form

What is the use of transaction code NACE in sap scripts?
You can track the form and the print program used for that form

What is the table name that will contain all the script form names and print program names?
TNAPR

Can you assign your own form to a standard print program? how? 
Yes. thru NACE

What is the use of PROTECT & ENDPROTECT?
Keeps the block of text in the same page.

How to add extra functionality to a standard print program with out touching the print program?
Thru subroutine programs

What is sub routine pool in sap script? when it is used?
Its an Abap prog of type sub routine pool, it is used for calculating certain variables, eg DUE date for an Invoice. You pass the values from the form thru ITCSY structure intot he prgram.

How to read text in sapscripts?
SO10

What is the difference between paragraph & character format? 
Self explanatory definition

How to use a sapscript for multiple languages ? 
(english, germany etc) Copy the script in each lang or you have an option to click 'TO all Languages'

How to download/upload sapscripts from & to your PC ?
SE78 or RSTXLDMC

What is the difference between scripts & smart forms?
Scripts are client-dependent but SF are client Independent

Sapscripts and abap programs are client dependent or not?  Why?
Scripts are client dependent. / Reports are client Independent.

What is the transaction code for logo uploading?
SE78

What is the standard program used for uploading the logo to script? 
RSTXLDMC FM to upload image in tiff format.

How can you send forms from one client to other?
SE71, Utilities -> Copy from client...

What does open_form, write_form, close_form do?
Again its self-explanatory

What is the diffrence between open_form and close_form?
open_form is used to open the form/initiate the form.
close_form is used to conclude the open_form.

How to convert a sapscript to smart form?
tcode SMARTFORMS, I think its menu Utilities you have an option.. Migrate Scripts to Smartforms.

How to send a smartform result through mail?
I think you have to configure the output type. Not sure..

How to select desired paper size in sapscript?
In Basic settings.

How to print the Page Nos in Forms.  Every page I want to print 1 of 10 , 2 of 10 , 3 of 0 ...etc.
PAGE &PAGE& OF &SAPSCRIPT-FORMPAGES&  *-- Nitin

How to debugg a script? 
This can done in two ways:
In the form Utilities->debugger / RSTXDBUG FM for debugging script

The Procedure for debugging SAP script is:
Generally SAP script contains the Layout and corresponding print program.
First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option.
Now go to SE 38 and enter ur Print Program name and execute the program.
Now you can debug the script Page wise and window wise.

Fast Links:
Other Sap Script Questions
SapScript Question

SAP Books
SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books

SAP Scripts Tips
SAP Sapscripts Tips and Tricks

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.