Tuesday, February 9, 2010

REPORTS

Q1)+ How to get the checkboxes side by side/in a single line?
(or)
How to place the selection screen elements in a single line?
Ans:- By default, each selection screen element is placed in a new line, and
More than one element can be placed in the same line also. That is, by
placing them in between the ‘SELECTION SCREEN BEGIN OF LINE’,
‘SELECTION SCREEN END OF LINE’.

Syn., SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
SELECTION-SCREEN BEGIN OF LINE.
*provide the selection screen elements
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.

The elements within the same line loose the selection text by default. And
which can be provided through “SELECTION-SCREEN COMMENT”.

Syn., SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 5(10) TEXT-003.
*provide the selection screen elements
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.

Q2)+ How to create the text for check boxes?
(or)
How to provide user-friendly descriptions for selection screen elements?
Ans:- To provide user-friendly descriptions for selection screen elements,
Path: Go to àText elements à Selection texts
Enter the text, save it & activate it.

Q3)+ How to disable a field on selection screen?
Ans:- We can disable a field on selection screen, by using “AT SELECTION
SCREEN OUTPUT” event. In this event, loop the screen and in the loop,
We have to keep SCREEN-INPUT = ‘0’ for that particular field.

Q4)+ How to validate the entered values of the selection-screen?
Ans:- By using the event “AT SELECTION SCREEN”, we can validate
the entered values of the selection-screen. This event triggers before
leaving the selection-screen and this event is not only used to validate
the input of the selection-screen but also used to display user friendly
messages on the selection-screen itself.

The input is valid when there is at least one record found in
The master data. If a record found, then SY-SUBRC value becomes
‘0’, if recode not found, then its value becomes <> ‘0’. In this way,
we can validate the entered values of the selection-screen.

Q5)+ What are the events in reports?
Ans:- 1) INITIALIZATION
1) AT SELECTION SCREEN
2) AT SELECTION SCREEN OUTPUT
3) AT SELECTION SCREEN ON VALUE REQUEST
4) START OF SELECTION
5) END OF SELECTION
6) TOP-OF-PAGE
7) END-OF-PAGE
10) AT LINE SELECTION
11) AT USER COMMAND

Q6)+ What are the different techniques used in “AT LINE SELECTION”?
Ans:- 1) SY-LISEL
2) HIDE
3) GET CURSOR

Q7)+ How many secondary lists can we create in reports?
Ans:- 20 secondary lists.

Q8)+ How many types of messages we have in reports?
Ans:- 1) Error message (E)
2) Warning message (W)
3) Information message (I)
4) Abort message (X)
5) Termination message (A)
6) Status message (s)

Q9)+ In how many ways, can we display messages?
Ans:- 2 ways.
1) MESSAGE E001(message class).
2) MESSAGE ‘message text’ type ‘E’.

Q10)+How to create message class?
Ans:- We can create message class, by using transaction code SE91.

Q11)+How to validate the group of fields?
Ans:- We can validate the group of fields by using ‘chain’ and ‘endchain’.
That is, If the validation has to be done for more than one field, then, in
That situation, those fields are placed between ‘chain’ and ‘endchain’.
Q12) What are the control break events?
Ans:- 1) AT FIRST: to display the starting text
2) AT LAST: to display the ending text
3) AT NEW: to display the starting text of the subgroup
4) AT END: to display the ending text of the subgroup
5) ON CHANGE OF:

No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

goodsites