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

at line selection not working

Former Member
0 Likes
2,224

HI,

at line selection is not working in my program after i used set pf-status. please help.

regards,

ravi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,536

Hi Ravi,

double click on ur set pf status 'xxx'.

this will give u a user interface screen.

open the function keys button.

u '' find standard tool bar ,,

Recommended function key settings

freely assigned function keys.

in recommended function key settings just type this for f2

Recommended function key settings

F2 PICK Choose

see that u have the values like this for F2.

save , activate ,

do this ..

regards,

Vijay.

Message was edited by: Vijay

HI,

at line selection is not working in my program after i used set pf-status. please help.

regards,

ravi.

10 REPLIES 10
Read only

Former Member
0 Likes
1,536

Hi,

I believe the SET PF-STATUS will override the standard GUI status...

Instead of AT LINE SELECTION.

You have to use AT USER-COMMAND.

Thanks,

Naren

Read only

Former Member
0 Likes
1,536

hi,

i need to make at line selection work along with the pf status. when the user clicks a line on the report (hotspot) i should be able to support that along with the excel download functionality on the app tool bar which is working fine.

is there any way that i would be able to support this funtionality(triggering another tcode ) when the user clicks on a line.

regards,

ravi.

Read only

0 Likes
1,536

Hi,

In your PF-Status, you need the function code PICK connected with key F2 (=double-click).

If it does not work with AT LINE-SELECTION, use

<pre>

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'PICK'.

ENDCASE.

</pre>

Regards,

Clemens

Read only

Former Member
0 Likes
1,536

If you want to open other transaction by clicking on line item, then u must use 'call transaction 'tcode' mode x.

Read only

Former Member
0 Likes
1,537

Hi Ravi,

double click on ur set pf status 'xxx'.

this will give u a user interface screen.

open the function keys button.

u '' find standard tool bar ,,

Recommended function key settings

freely assigned function keys.

in recommended function key settings just type this for f2

Recommended function key settings

F2 PICK Choose

see that u have the values like this for F2.

save , activate ,

do this ..

regards,

Vijay.

Message was edited by: Vijay

Read only

Former Member
0 Likes
1,536

hi

good

check out the potition where you have given the AT LINE-SELETION at your report, bcz there is no such relationship between between SET PF-STATUS and AT LINE-SELECTION.

though you have not posted here your code, it is quite tough to give you teh exact reply.

thanks

mrutyun^

Read only

Former Member
0 Likes
1,536

Hi ravi,

try to set a BREAK-POINT in AT LINE SELECTION.

Does the Report stop and change in Debug-Mode?

Regards, Dieter

Read only

Former Member
0 Likes
1,536

thanks eveyone. your answers helped me in solving the problem.

however, i still dont understand why at line-selection is not getting triggered if im not including PICK .

regards,

ravi.

here is the code

  • excel funtionality

AT USER-COMMAND.

CASE SY-UCOMM.

WHEN 'EXCEL'.

PERFORM DOWNLOAD_TO_EXCEL.

WHEN 'DETAIL'.

PERFORM DISP_DETAIL.

WHEN 'PICK'.

PERFORM DISP_DETAIL.

ENDCASE.

AT LINE-SELECTION.

PERFORM DISP_DETAIL.

Read only

0 Likes
1,536

Hi Ravi,

a look at the online help may help you to understand why you need PICK - it is defined so by the fathers of ABAP:

Online help (F1 in editor):

AT LINE-SELECTION.

Effect

Event in interactive reporting

This event is processed whenever the user chooses a valid line in the list (i.e. a line generated by statements such as WRITE,ULINE, or SKIP) with the cursor <b>and presses the function key which has the function PICK </b>in the interface definition. This should normally be the function key F2, because it has the same effect as double-clicking the mouse, or clicking once in the case of a hotspot.

Regards,

Clemens

Read only

Former Member
0 Likes
1,536

Three line ans.

goto se41 open ur status

expand function keys tree

against f2 write PICK save and see if the at line-selection works or not!

regards,

santhosh