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: 
Read only

inter ractive report

Former Member
0 Likes
564

what is the difference between AT USER-COMMAND AND AT PF<NN.>

5 REPLIES 5
Read only

Former Member
0 Likes
538

Check sap documentaion for the at pf## statement:

AT PF##

Syntax

AT PF##.

Effect

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.

Regards,

Ravi

Read only

anversha_s
Active Contributor
0 Likes
538
Read only

former_member404244
Active Contributor
0 Likes
538

Hi,

At PF<nnn> means u r setting the PF status ,at user command is nothing but to handle user actions...Such as 'SAVE','ENTER'.

Regards,

Nagaraj

Read only

Former Member
0 Likes
538

AT PF<nn> IS FIRING FOR PRESSING FUNCTION KEYS LIKE F1,F2 ..

FOR THAT AT PF01 OR AT PF02. YOU HAVE TO CODE.

BUT THAT IS OBSOLETE NOW.

AT USER-COMMAND WILL FIRE WHEN YOU ARE CREATING ANY STATUS AND CLICK ON MENUBAR OR APPLICATION TOOL BAR.

REGARDS

SHIBA DUTTA

Read only

Former Member
0 Likes
538

HI,

AT USER-COMMAND will be triggered when you click on Push Buttons or menu buttons, like BACK, EXIT, CANCEL or any button defined in PF Status.

AT USER-COMMAND Point at which the user presses a function key or enters a command in the command field.

AT PF<nn> Point at which the user presses

the function key with the

function code PF<n>

http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm

Regards,

Laxmi.