Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Event

Former Member
0 Kudos
133

How to use AT PFn? What numbers we can use instead of n?

How many function keys r used?

3 REPLIES 3

Former Member
0 Kudos
116

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.

Former Member
0 Kudos
116

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

Former Member
0 Kudos
116

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