2008 Mar 13 11:53 AM
How to use AT PFn? What numbers we can use instead of n?
How many function keys r used?
2008 Mar 13 11:57 AM
This statemet defines an event block whose event is triggered by the ABAP runtime environment during list display - provided the screen cursor is on a list line and a function is selected using the function code PF##. Here ## stands for a number between 01 and 24. In the= standard list status, these function codes are assigned to the function keys of the input device.
Note
Instead of AT PF## , AT USER-COMMAND should always be used and special function codes should be assigned to the required function keys.
2008 Mar 13 11:59 AM
AT PFn.
Effect Event in interactive reporting
Here, n stands for a numeric value between 0 and 99.
This event is executed whenever the user presses a function key
that contains the function code PFn in the interface
definition. The default status for lists contains some of these
functions.
Otherwise, the effect is as for the variant AT LINE-SELECTION.
The cursor can be on any line.
Notes 1. To ensure that the chosen function is executed only for
valid lines, you can check the current HIDE information.
2. This variant should be used only for test or prototyping
purposes, since the default status is not normally used.
Instead, you should set a program-specific status with SET
PF-STATUS. This should not contain any function codes
2008 Mar 13 12:04 PM
Hi
ATPFn
the n number can be any thing apart from standard keys like
f1-help
f3-back
f4-help
f8-execute
apart from these key words we can use any thing
actuvally ATPF means function keys(ex:F1,F2,F3....)
just write the code what ever you want display after pressing some Function key under ATPFn
n can be 2 5 6 7 9 10 11 12 13 14 15 16 17 18 19 ..
ATPF2
write : 'hi'.
when ever you press F2 it will display that message