SAP ABAP Sapscripts Real time Interview Questions and Answers
SAP ABAP Sapscripts Real time Interview Questions and Answers
These are Important SAP ABAP Sapscripts Interview Questions and answers useful for freshers and experienced.
What is the meaning of a SAP Script and what is the role of it?
SAP scripts are using to print the forms ,Ex:Purchase Order ,Invoice etc.
What are Paragraph and Character Formats ?
To format texts in forms, you need paragraph and character formats.
What are Windows and Text Elements ?
Forms usually consist of individual text areas (address, date, footer, and so on). To provide these areas with texts, you must define the areas first as output areas.SAPscript calls such an output area a window.
Frequently used window names in application forms are ADDRESS, SENDER, MAIN, or PAGE.
ou can create each window only once on each page, except the main window, which may appear up to 99 times on each page.
Text Element
Text elements in SAPscript are the individual text components of a form. In the different windows, you can define text elements with different attributes. For printout, the print program accesses them. Text elements can also contain variables (symbols) and SAPscript control statements.
What are Pages in Sapscript?
Different pages of a document may have different layouts. For example, the first page of an invoice contains the customer address and letter text. The subsequent pages contain the actual invoice data, the order number, and so on.
Text elements are related to a window, that is, a print program can call for each window only those text elements that exist in this window.
The length of a text element is unlimited.
Text elements may contain variable symbols.
You can use several different formatting options within one text element.
You can use SAPscript control statements in text elements.
the text elements HEADING and FLIGHTLIST in the window MAIN.
How many Types of windows in Sapscript?
Window Types
When defining a form window, you must select a window type for the window. You can choose between three types:
Constant Windows (CONST)
Variable Windows (VAR)
Main Windows (MAIN)
What is Form Control Driver Program ?
To output SAPscript forms, in the print program you must always start the output with OPEN_FORM and end it with CLOSE_FORM. The function module OPEN_FORM initializes the SAPscript composer and opens the specified form for subsequent output. The system combines all output for this form up to the CLOSE_FORM to one print request. If CLOSE_FORM is missing, nothing will be printed.
To output data in a form, you must use the SAPscript function modules WRITE_FORM, WRITE_FORM_LINES, and CONTROL_FORM. You can use these function modules any number of times in any order between opening and closing a form.
What is Print Program ?
A print program is an application program ( REPORT or MODULE POOL ) that allows you to print documents to which forms are allocated. The print program retrieves the required data from the database and combines them with the data the user entered
What is a Page Window?
A page window is the definition of a rectangular output area on the output medium (for example, DIN A4 paper page), determined by the left upper edge and the hight and width of the area.By defining page windows, you determine which windows you want to appear on a page, their sizes and their positions.
Which are the variables that we can utilize for data output in SAP Script?
&Wa-fields&
What is the meaning of Layout Sets?
In SAP Script Layout Sets are the tools that define the layout of pages (documents). A layout is constructed from many components, The Layout Set maintenance also contains windows, which are places in a page where the text will output in the near future, every Layout Set contains one or multiple windows, iMAIN WINDOW-in this type of window the output of text is made continuously, it is a window type that is common to the dialog users, like the body text of letters.
VARIABLE Window- this type of window contains variable text in every page where the window is found, these windows will be formatted for every page.
CONSTANT Window-this type of window contains constant text so it will be formatted only one time.
We can classify the elements of a Layout Sets
a) The header data- it contains data about the construction and the Layout Set like who made the document, what elements were used etc. This is the start page.
b) The paragraph formats –they are needed for text formatting exactly as in Styles but their usage extends to the processing of text like formatting the text elements as well.
c) The character formats-these can be used for formatting paragraphs and text, they actually format the text from inside paragraphs
d) The windows- they are placed only after their assigning to pages and attributing measurement units.
e) The pages- They give us a beginning and a finish in the formatting of text.
f) The page windows- They bring the pages and the windows together and their measurements are stated.
Can we describe the way in which the Layout Sets are backed up, uploaded and downloaded in SAP Script?
For the SAP Script backup we have go to transaction SE71 and select Utilities then Copy from client then Give source from name then source client (000 default) and Target form name.For downloading ,we must go to transaction SE71 then we must write the name of the form then we select Display, Utilities, form info, List and we hit Save to PC file.
For Upload ,we have to create form with page then window, page window with the downloaded PC file. From the PC file we will have the page window text elements.
What is the way to count pages the SAP Script outputs?
&page&, &nextPage&.How can we classify the SAP Script components?
SAP Script can be classified in:SAP Script text, Layout Set, Symbols, ABAP print program and function modules such as read text, open/close form and others.
What is the way to deposit the text in SAP Script?
For text storage SAO Script uses ITF or the Interchange Text Format but it also has the options to convert RTF or Rich Text Format and also ASCII which are formats for other text processors.How can we describe symbols and what are the main types with example?
A10: The symbol name is enclosed with &. Example: &variable name&, or system symbols like &Date&, &time& an others. Standard symbols are the ones that the user has defined and they are kept in the table TTDTG. Examples of standard symbols: &SGDH& for :”dear sir/madam” and &MFG& for:”yours Faithfully”. The program symbols show ABAP/4 program data that invoked a function for text processing, example: Itab-connid. The text symbols are good for every block type of text to define but it becomes valid just where it has been defined, example: Define &Symbol&=’value’.How can we implement the tab sets in Layout Sets?
We can do this by defining the paragraphs using defined tabs.What is the role of the composer?
For getting a final look of our documents we will combine the Layout Set with the print program.
What is the way to define the text symbols?
We can define the text symbols with the aid of the control command DEFINE &x1&=’56’
What commands are used in ABAP/4 for connecting a Layout Set?
We can use the following: the call functions OPEN-form, WRITE-form or CLOSE-form.Which are the commands mainly used for control?
The main control commands are PROTECT, ENDPROTECT, DEFINE, NEW-PAGE, INCLUDE, IF, ENDIF.How can we introduce a logo in our program and what is the name of the program for logo upload and also what syntax can be used for this in SAP Script?
We can use the “RSTXLDMC” report for uploading a logo and this statement: /:INCLUDE’ZHEX-MACRO-XXX’OBJECTTEXTID ST LANGUAGE’E’.The name of the object is represented by ‘XXX’.
What is the correct syntax used for a box command?
The syntax looks like this one: BOX XPOS 2MM WIDTH 0 CM HEIGHT ‘9.5’ CM FRAME 10 TW.
How do we define variables?
DEFINE &CUST&=’00000021’.
How do we import or use graphics in Sap Script?
For importing graphics in SAP there is the transaction SE78. We may include using Edit, Graphic, Create in the form painter or we can use the statement INCLUDE, case in which we will use the window script editor-Include, Graphic like in this example (with a bitmap):/:BITMAP MYLOGO OBJECT GRAPHIC ID BMAP TYPE BMON.
How are the modifications made?
They exist in the TNAPR table and they are specific for a particular output type; the programs used for output are: view V_TNAPR for entry modification from transaction SE30, for importing or exporting a SAP Script form from a PC file we will use RSTXSCRP, for getting the print application name we will use SD or the TNAPR table (for SD documents).
How can we define and enter a standard text?
ADDRESS DELIVERY PARAGRAPH ADNAME &KNA1-NAME&
STREET & KNA1-STRAS&
POSTCODE&KNA1-PSTLZ&
CITY&KNA1-ORT01&’
COUNTRY &KNA1-LAND1&
FROMCOUNTRY ‘de’
ENDADDRESS.
For pagebreak avoiding in paragraphs :
/:PROTECT
:
:
/:ENDPROTECT.
The lines of text that are to be defended against pagebreaks will be met between the command IF and the command ENDIF, as in every ABAP program like this:
/:IF condition
:
:
/:ENDIF
and
/:IF condition
:
/:ELSE
:
/:ENDIF. An exact expression would be: /: &SPFLI-CITYTO&=”BERLIN” …text… /:ENDIF.
How do we load graphics like logos in SAP Script?
We can load graphics like files with the .tif extension in SAP Script in standard text with the aid of RSTXLDMC.
How can we copy a table from client to client?
We can do this with the aid of RSCLTCOP or SCC1 Transaction Code.SAP ABAP Smartforms Interview Questions
How to debug Sapscripts
Difference Between Scripts and Smartforms
Comments
Post a Comment