What's the use of AT PF event?

Answer Posted / mishra

When the user chooses a function code PF<nn> (<nn> can be
between 01 and 24), the system always triggers the AT
PF<nn> event. In the standard list status, the function
keys F<nn> that are not reserved for predefined system
functions all have the function code PF<nn> as long as a
corresponding event block is defined in the program.

AT PF<nn>.
<statements>.

These event blocks are executed when the user chooses the
corresponding function key. The position of the cursor in
the list is irrelevant.

If you use these event blocks at all, it should only be for
temporary test versions. In production programs, you should
only use AT USER-COMMAND with a dialog status of your own
to assign function codes to function keys. When you use
your own interfaces, the system displays a function text
explaining what the function does. This does not happen
when you use AT PF<nn> event blocks.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?

762


What are the function modules used in f4 help?

835


While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization

827


Can i Have Some Realtime Examples on Badi ?

8520


How can we decide weather we can enhance the standard infotype or not ? : abap hr

800


How can the standard tables of sap be modified?

841


What is a table attribute? : abap data dictionary

783


What are the pooled and cluster tables?

763


What are the events used in interactive reports?

840


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization

841


How many structures can be created in a Ztable ?

3329


What is the difference between call transaction and session method? : abap bdc

896


Define spool request?

856


What are the different types of work process?

794


What are pooled tables? : abap data dictionary

878