Dear Readers, Welcome to SAP ABAP - Scripts Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of SAP ABAP - Scripts. These SAP ABAP - Scripts Questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular questions during your Job interview and these model questions are asked in the online technical test and interview of many Medical Industry.
Go to the transaction SE71.
Enter the form name.
Choose the menu Utilities->Activate Debugger to enable debugging.
Or call standard program RSTXDBUG.
In the Header screen, in the Language Attributes Option, choose Translate to... Option to translate to other languages
In the transaction SE71, enter the Form name and choose the menu, Utilities->Copy from client to copy SAPscripts from one client to another. Use RSTXSCRP to import/export SAPscripts.
In the SAPscript, Goto -> Header -> Basic Settings
TNAPR or in Scripts Check-->Texts... if we press enter. we can find it
go to basic settings--> you can find a landscape option
99
Yes
&page& and &next-page&
use NACE transaction
Utilities -> Migration -> Import SAPscript Form
Constant windows, variable windows,main windows.
/: BOX XPOS '0' CM YPOS '0.5' CM WIDTH '9.2' CM HEIGHT '3.5' CM FRAME 8 TW
/: POSITION XORIGIN '2' CM YORIGIN '7.5' CM
/: BOX WIDTH '18' CM HEIGHT '1.25' CM INTENSITY 15
Use ,,
You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPscript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose.
Use the Function Module RKD_WORD_WRAP to wrap the text and use this for output.
Create a character format in the SAPscript.
Choose the Bar Code for the character format.
Using se78 or rstxldcm
Protect and endprotect.
Formatting option
Meaning
Comment
&symbol(N)&
Display N first characters of symbol
&symbol(Z)&
Omit leading zeros
&symbol(S)&
Omit leading sign
&symbol(<)&
Display leading sign to the Left (you may also use /: SET SIGN LEFT)
forum: Ignored if the domain has "sign" option disabled (sign is never printed in that case)
&symbol(>)&
Display leading sign to the right (you may also use /: SET SIGN RIGHT)
forum: Ignored if the domain has "sign" option disabled (sign is never printed in that case)
&symbol(C)&
Compress spaces
&symbol(.N)&
Display upto N decimal places
Do not use a field related to a currency code or unit of measure (as these last define the number of decimals), otherwise you'll get error SSFCOMPOSER602 (Field &2: Incorrect formatting option "&1") while outputting the form
&symbol(T)&
Omit thousands separator
&symbol(R)&
Right justified
&symbol(I)&
Suppress output of the initial value
&symbol(K)&
Ignore conversion routine
forum: "K option works only for Character-like variables (char, date, time, numc), string and Integer. It doesn't work for packed, float and other types (see routine CONVERT_SYMBOLVALUE in include LSTXVFCD)"
You may combine options, for example: &symbol(8R)& which means right-aligned inside 8 characters.
&DATE&
Currentdate
&DAY&
Day
&MONTH&
Month
&YEAR&
Year
&TIME&
Time of the day
&HOURS&
Hours
&MINUTES&
Minutes
&SECONDS&
Seconds
&PAGE&
Page
&NEXTPAGE&
Next page number
&SPACE&
Blank
&ULINE&
Underline
&VLINE&
Vertical line
&NAME_OF_MONTH&
Name of the Month
&SAPSCRIPT-FORMPAGES&
Total number of pages in currently formatted layout set
&SAPSCRIPT-JOBPAGES&
Total number of pages in currently formatted print reques
Using SET DATE MASK
Using SET TIME MASK
In box command we use.
You can use the NEW-WINDOW command to call the other main window explicitly in the form, even if the current main window is not full
Using newpage command.
The TOP...ENDTOP and BOTTOM...ENDBOTTOM commands are used to set the header and footer texts in the main window respectively
if and endif,
case and endcase
Call program RSTXSCRP for import and export SAP Script
In PAI, define function code for event and write code for it.
in se71 main window utilites--> convert into original language
SE71 utilities--> copy from client
Script is a word processing tool used to manipulate and display text.
User-friendly and avoids labourious coding.
Scripts is layout based, contains windows and graphics.
Reports is code based contains forms.
SE72
1
In next page option, u need to delcare next page name
Which are not changed frequently like address and name.....
header paragraph formats charecterformats
In basic settings tab
By configruing relevant transaction, calling it from there
NACE
It is the executable program via which we call a script and execute it.
Used to modify script
Not displaying windosws.
Not getting desired output
misplacement of different windows
Using SE78
By using Form Painter