Wednesday, December 11, 2013

SAP ABAP Interview Questions and Answers - 9

REPORT GENERATION – FORMATTING
1. The alignment of a type 'c' field in a report is left Aligned.
2. In the statement Write:/15(10) Ofal-lifnr. what do the number 15 and 10 stand for15
stand for the offset on the screen and 10 stands for the field length displayed.
3. Specify the default alignment for the following field types:
'D' – Left, 'F'-Right, 'N'-Left, 'I'-Right, 'T'-Left.
4. If s_time has the value '123456' how would you get an output of 12:34:56 with a single
'Write:' statement.
Write:s_time using edit mask'--:--:--'.
5. In order to suppress the leading zeroes of a number field the keywords used are NOZERO.
6. The total no of date formats that can be used to display a date during output is
MM/DD/YY, DD/MM/YY, DD/MM/YYYY, MM/DD/YYYY, MMDDYY, DDMMYY,
YYMMDD.
7. The UNDER Command allows for vertical alignment of fields one below the other.
8. In order to concatenate strings only for output purposes the command NO-GAP can be
used in conjunction with the 'Write' statement.
9. The no of decimal places for output can be defines within a write statement. (T/F).
TRUE. Write:/ decimals 2.
10. Data can be moved from one field to another using a 'Write:' Statement and stored in
the desired format. (T/F).
TRUE. Write: Date_1 to Date_2 format DD/MM/YY.
11. In the statement Write:/15(10) lfa1-lifnr. The values 15 and 11 can also be defined by
variables (T/F).
False.
12. Differentiate between the following two statements if any.
ULINE.
Write: sy-uline.
No-difference. Except that uline is used outside the 'Write' Statement.
13. In order to skip a single line the number of lines need not be given as an assignment
(T/F)
TRUE.
14. The "SKIP TO LINE line number" is dependent on the LINE-COUNT statement
included in the report statement of the program.
15. In order to skip columns the command used is POSITION .
16. In order to have boldfaced text as output the command used is Write:INTENSIFIED.
17. Background and foreground colors can be interchanged using the command Format
Inverse.
18. In order to restore the system defaults for all changes made with the format statement
is Format Reset.
19. Like ULINE the statement VLINE is used to insert vertical lines. (T/F).
False.
20. Suppressing the number signs (+/-) is carried out using the addition NO-SIGNS to the
Write statement. (T/F).
False.
21. If SY-UZEIT has the value 6:34:45 it can be displayed as 063445 using No Edit Mask.
22. If the variable "Text" has the value 'ABCDEF' the output for the statement
"Write:/Text+2(3)" will be "CDE"
23. The fields specified by select-options and parameters statement cannot be grouped
together in the selection screen. (T/F).
False.
24. When calling an external report the parameters or select-options specified in the
external report cannot be called. (T/F)
FALSE.
25. Selection Texts in the text elements of the program helps in changing the displayed
names of variables in the parameters statement.

No comments:

Post a Comment