Tuesday, February 19, 2008

SAP Report Generation - Formatting

The alignment of a type ‘c’ field in a report is left Aligned.
In the statement Write:/15(10) Ofal-lifnr. what do the number 15 and 10 stand for
15 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.
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’--:--:--‘.
In order to suppress the leading zeroes of a number field the keywords used are NO-ZERO.
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.
The UNDER Command allows for vertical alignment of fields one below the other.
In order to concatenate strings only for output purposes the command NO-GAP can be used in conjunction with the ‘Write’ statement.
The no of decimal places for output can be defines within a write statement. (T/F).
TRUE. Write:/ decimals 2.
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.
In the statement Write:/15(10) lfa1-lifnr. The values 15 and 11 can also be defined by variables (T/F). False.
Differentiate between the following two statements if any.
ULINE.
Write: sy-uline.
No-difference. Except that uline is used outside the ‘Write’ Statement.
In order to skip a single line the number of lines need not be given as an assignment (T/F)
TRUE.
The “SKIP TO LINE line number” is dependent on the LINE-COUNT statement included in the report statement of the program.
In order to skip columns the command used is POSITION .
In order to have boldfaced text as output the command used is Write:INTENSIFIED.
Background and foreground colors can be interchanged using the command Format Inverse.
In order to restore the system defaults for all changes made with the format statement is Format Reset.
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.
If SY-UZEIT has the value 6:34:45 it can be displayed as 063445 using No Edit Mask.
If the variable “Text” has the value ‘ABCDEF’ the output for the statement “Write:/Text+2(3)” will be “CDE”
The fields specified by select-options and parameters statement cannot be grouped together in the selection screen. (T/F). False.
When calling an external report the parameters or select-options specified in the external report cannot be called. (T/F)
FALSE.
Selection Texts in the text elements of the program helps in changing the displayed names of variables in the parameters statement.
Type F datatype cannot be used to define parameters.
27. Rounding off of values can be carried out using the write statement. (T/F). TRUE
How would you define the exponents for a type ‘f’ field?
Exponent .
How would you format the output as left, centered or right-justified using the write statement.
Left-justified, Centered, Right-justified.
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.
For each new event, the system resets all formatting options to their default values (T/F)
TRUE.
All formatting options have the default value OFF. (T/F).
TRUE.
How would you set the formatting options statically and dynamically within a report? Statically: FORMAT [ONOFF]….
Dynamically: FORMAT = =….
The page footer is defined using the statement END-OF-PAGE.
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.
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.
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. (T/F). TRUE.
To set the next output line to the first line of a block of lines defined with the RESERVE statement the statement BACK is used.
What is the limit for the length of a page if the page length is not specified in the report statement. 60,000 lines.
How would you start the printing process from within the program while creating a list?
NEW-PAGE PRINT ON.
You can change the width of pages within list levels triggered by page breaks. (T/F).
FALSE.
Hotspots are special areas of an output list used to trigger events. (T/F) TRUE.
To designate fields as hotspots at runtime, use FORMAT HOTSPOT = .
Horizontal lines created with ULINE and blank lines created with SKIP can be formatted as hotspots. (T/F). FALSE.
How would you suppress the display of a parameter on the selection screen?
Parameters

………..No-Display.
Can you assign a matchcode object to a parameter? If so how?
Yes. PARAMETERS

……..MATCHCODE OBJECT ……..
For each SELECT-OPTIONS statement, the system creates a selection table. (T/F)
TRUE.
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.
How can Symbols or R/3 icons be output on the screen?
WRITE AS SYMBOL.
WRITE AS ICON.
In the standard setting, you cannot create empty lines with the WRITE statement alone. (T/F). TRUE.

No comments: