Tuesday, January 17, 2012

SAPScripts - interview questions & answers



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

What are the components/elements/layout sets in sap script ?
Components of scripts:
Layout sets, ABAP print program.   
Components of layoutset::
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

What is the use of PROTECT & ENDPROTECT?
to give page protection

How to create standard text in sapscripts?
SO10

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

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

How to debug a script? 
This can done in two ways:
  1. In the form Utilities->Activate debugger
  2. Using Report -  RSTXDBUG 
How do you create boxes in sapscript?
BOX XPOS ‘1’ CM YPOS ‘1’ WIDHT ‘10’ CM HEIGHT ‘10’ CM FRAME 10 TW

How to insert symbols in smartform?
Select the Text node.
Go to menu Include->Characters->SAP Symbols

What does READ_TEXT?
Reads a text module and passes it to the specified work areas.

What are the types of windows?
MAINMain window in which continuous text is output.  This is the window used by dialog users of a print program and layout set.  For example the body text of a letter would be entered in MAIN.
VARIABLE – Window with variable contents.  The text can vary on each page in which the window is positioned.  Variable windows are formatted for each page.
CONSTANT – Window with constant contents which is only formatted once.

How do you number pages in sap script layout outputs?
& page &
&next Page &

In what format does  SAP Script store text ?
SAPscript texts are stored in Interchange Text Format (ITF).  SAPscript offers conversion programs for the text file formats Rich Text Format (RTF) and ASCII as an interface to other word processors.

Where do we define Tab space for data in SAPScript?
When defining the paragraph for the text element we can define the TABS then.  There is parameter called TABS to be defined in paragraph definition.

What is difference between Window & a Page Window?
Window: An area that is predefined in the layout set.  Windows are text modules, which are positioned on a document page. We define the window type, Default Paragraph, specify the text elements or a SAPscript text to be included etc in the Windcow Component.
PageWindow: we define the parameters of the earlier defined Window, appearance on the document like left or right margins, Width & Height.

How do we define Text symbols?
Using the control command DEFINE &xy& = ‘100’

How do we set the date, time format?
SET TIME MASK : CONROLS THE TIME FIELD FORMAT.
SET DATE MASK : CONTRLS THE DATE FIELD FORMAT.


No comments:

Post a Comment