Sei sulla pagina 1di 2

System Fields for Details Lists sy-lsind :Index of the list created during the current event (basic

list = 0 ) sy-listi :Index of the list level from which the event was triggered sy-lilli : Absolute number of the line from which the event was triggered sy-lisel : Contents of the line from which the event was triggered sy-curow : Position of the line in the window from which the event was trigg ered (counting starts with 1) sy-cucol : Position of the column in the window from which the event was tri ggered (counting starts with 2) sy-cpage : Page number of the first displayed page of the list from which th e event was triggered sy-staro : Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1). This line may conta in the page header. sy-staco : Number of the first column displayed in the list from which the e vent was triggered (counting starts with 1) sy-ucomm : Function code that triggered the event sy-pfkey : Status of the list currently being displayed.

Different Types of Selection Screens events What is: 1. at selection-screen on field 2. at selection-screen output 3. at selection-screen block 4. at selection-screen on value-request 5. at selection-screen on help-request and their difference? For knowing Selection-screens: First you must have right understanding of Events. - Events are introduced by Event Keyword. They end when again next processs begi ns. Selection-screens are special screen defined in ABAP. - This ABAP at run time only controls the flow logic of Selection-screens. The P BO and PAI triggers the num of. selection-screens. The basic form of the selection screen events is the AT SELECTION-SCREEN event. This event occurs after the runtime environment has passed all input data from t he selection screen to the ABAP program. The other selection screen events allow programmers to modify the selection screen before it is sent and specifically c heck user input. At Selection-screen OUTPUT is trigerred in PBO of selection-screen. - This allows you to modify the Selection-screen, before it is displayed.

At Selection-screen On Field is triggered in PAI of selection-screens. - The input fields can be checked,in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready fo r input again on the selection screen. At Selection-screen On Block is trigerred in PAI event. - You define a block by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK block - END OF BLOCK bloc k. You can use this event block to check the consistency of the input fields in the block. At Selection-screen On value request. - This event is trigerred for F4 help. At Selection-screen On help request . - This event is triggered when the user clicks F1 for help on fileds.

Potrebbero piacerti anche