14/11/2011

Report Generation Formtting Q&A


REPORT GENERATION – FORMATTING



1.      The alignment of a type 'c' field in a report is ______________.
Ø  Left Aligned.

2.      In the statement Write:/ 15 (10) lfa1-lifnr. , what do the numbers 15 and 10 stand for.
Ø  15 stands 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 ' ---
' F ' ---
' N ' ---
' I ' ---
' T ' ---
Ø  Left, Right, Left, Right, Left, Right respectively.

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 zeros of a number field the keywords used are _______.
Ø  NO ZERO.

6.      The total number 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 ________ Command allows for vertical alignment of fields one below the other.
Ø  UNDER.

8.      In order to concatenate strings only for output purposes the command _________ can be used in conjunction with the 'Write' statement.
Ø  NO-GAP.

9.      The no of decimal places for output can be defined within a write statement. ( T /F ).
Ø  TRUE. Write:/ <F> decimals 2.

10. Date can be moved from one field to another using a 'Write:' Statement and stored in the desired format. (TRUE / FALSE).
Ø  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 ( TRUE / FALSE ).
Ø  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 argument (TRUE / FALSE).
Ø  TRUE.

14. The "SKIP TO LINE line number" is dependent on the ____________statement included in the report statement of the program.
Ø  LINE-COUNT.

15. In order to skip columns the command used is __________.
Ø  POSITION <n>.

16. In order to have boldfaced text as output the command used is _____________.
Ø  Write: <f> 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 ". ( TRUE / FALSE ).
Ø  TRUE.

19. Like ULINE the statement VLINE is used to insert vertical lines. (TRUE / FALSE).
Ø  FALSE.

20. Suppressing the number signs (+ / -) is carried out using the addition NO-SIGNS to the Write statement. ( TRUE / FALSE ).
Ø  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 ___________.
Ø  Very simple. Work it out.

23. The fields specified by select-options and parameters statement cannot be grouped together in the selection screen. (TRUE / FALSE).
Ø  FALSE.

24. When calling an external report the parameters or select-options specified in the external report cannot be called. (TRUE / FALSE).
Ø  FALSE.

25. _______________ In the text elements of the program helps in changing the displayed names of variables in the parameters statement.
Ø  Selection Texts.

26. __________ Data type cannot be used to define parameters.
Ø  Type F.

27. Rounding off of values can be carried out using the write statement. (T / F ).
Ø  TRUE.

28. How would you define the exponents for a type ' f ' field ?
Ø  Exponent <e>.

29. How would you format the output as left, centered or right-justified using the write statement.
Ø  Left-justified, Centered, Right-justified.

30. If the same formatting options were used for a WRITE statement that follows the FORMAT statement, which settings would take precedence?
Ø  The settings in the Write Statement.

31. For each new event, the system resets all formatting options to their default values. (TRUE / FALSE).
Ø  TRUE.

32. All formatting options have the default value OFF. (TRUE / FALSE).
Ø  TRUE.

33. How would you set the formatting options statically and dynamically within a report? Statically:
FORMAT <option1> [ON|OFF] <option2> [ON|OFF]....
 Dynamically:
FORMAT <option1> = <var1> <option2> = <var2>....

34. The page footer is defined using the statement _________________.
Ø  END-OF-PAGE.

35. The processing block following END-OF-PAGE is processed only if you reserve lines for the footer in the LINE-COUNT option of the REPORT statement. (T / F ).
Ø  TRUE.

36. To execute a page break under the condition that less than a certain number of lines is left on a page is achieved by ________________________.
Ø  RESERVE n lines.

37. The RESERVE statement only takes effect if output is written to the subsequent page. No blank pages are created and it defines a block of lines that must be output as a whole. ( TRUE / FALSE)
Ø  TRUE.

38. To set the next output line to the first line of a block of lines defined with the RESERVE statement the statement _______________ is used.
Ø  BACK.

39. What is the limit for the length of a page if the page length is not specified in the report statement?
Ø  60,000 Lines.

40. How would you start the printing process from within the program while creating a list?
Ø  NEW-PAGE PRINT ON.

41. You can change the width of pages within list levels triggered by page breaks. (T /F).
Ø  FALSE.

42. Hotspots are special areas of an output list used to trigger events. (TRUE /FALSE).
Ø  TRUE.

43. To designate fields as hotspots at runtime, use _________________.
Ø  FORMAT HOTSPOT = <h>.


44. Horizontal lines created with ULINE and blank lines created with SKIP can be formatted as hotspots. (TRUE / FALSE).
Ø  FALSE.

45. How would you suppress the display of a parameter on the selection screen ?
Ø  Parameters <p> ............. No-Display.

46. Can you assign a matchcode object to a parameter? If so how?
Ø  Yes. PARAMETERS <p> ... MATCHCODE OBJECT <obj> ...

47. For each SELECT-OPTIONS statement, the system creates a selection table. (T /F).
Ø  TRUE.

48. To position a set of parameters or comments on a single line on the selection screen, you must declare the elements in a block enclosed by _______________.
Ø  SELECTION-SCREEN BEGIN OF LINE.
 ...
 SELECTION-SCREEN END OF LINE.

49. How can Symbols or R/3 icons be output on the screen?
Ø  WRITE <symbol-name> AS SYMBOL.
 WRITE <icon-name> AS ICON.

50. In the standard setting, you cannot create empty lines with the WRITE statement alone. (TRUE / FALSE)
TRUE.