Application Development 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: 

at line seletion.

Former Member
0 Kudos

hi ... to all..!

this is my simple program..!

how can i trigger at line selection event for my example.

report zuser_command.

start-of-selection.

set pf status 'RAMS'.

write 😕 'Am basic list' sy-lsind.

at line-selection.

write 😕 'am secondary list', sy-lsind.

if sy-lsind = 20.

sy-lsind = 1.

endif.

here when am double clicking on my list ... its not generating

secondary list...

but i can able to generate secondary list using my PF STATUS.

but i want to trigger my at line-selection event.

is it possible or am doing any thing wrong..!

pls suggest mee...!

thanks & regards,

Rajesh

1 ACCEPTED SOLUTION

prasanth_kasturi
Active Contributor
0 Kudos

Hi,

remove the pf status 'RAMS'

and the prog works fine

or

In the FUNCTION KEYS tree

in Recommended Function Key Settings

assign PICK to key F2

i.e wirte PICK in the space provided after F2 and activate

the programm works fine

regards

prasanth

8 REPLIES 8

prasanth_kasturi
Active Contributor
0 Kudos

Hi,

remove the pf status 'RAMS'

and the prog works fine

or

In the FUNCTION KEYS tree

in Recommended Function Key Settings

assign PICK to key F2

i.e wirte PICK in the space provided after F2 and activate

the programm works fine

regards

prasanth

Former Member
0 Kudos

Hi,

Check in you pf-status: if u have assigned PICK to F2 ( under Function keys section).

regards,

madhu

Former Member
0 Kudos

Hi,

Try this

At line selection.

CASE SY-LSIND.

WHEN 1.

perform drill1.

WHEN 2.

perform drill2.

endcase.

Reward points if helpfull.

Thanks & Regards,

Y.R.Prem Kumar

Former Member
0 Kudos

use ABAPDOUC TCode there u will get all

sampl eprogram..................

START-OF-SELECTION.

SET PF-STATUS 'TEST'.

WRITE: 'Basic list, SY-LSIND =', sy-lsind.

AT LINE-SELECTION.

WRITE: 'LINE-SELECTION, SY-LSIND =', sy-lsind.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'TEST'.

WRITE: 'TEST, SY-LSIND =', sy-lsind.

ENDCASE.

this will help u...............

TART-OF-SELECTION.

WRITE: 'Basic List',

/ 'SY-LSIND:', sy-lsind.

TOP-OF-PAGE.

WRITE 'Top-of-Page'.

ULINE.

TOP-OF-PAGE DURING LINE-SELECTION.

CASE sy-pfkey.

WHEN 'TEST'.

WRITE 'Self-defined GUI for Function Codes'.

ULINE.

ENDCASE.

AT LINE-SELECTION.

SET PF-STATUS 'TEST' EXCLUDING 'PICK'.

PERFORM out.

sy-lsind = sy-lsind - 1.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'FC1'.

PERFORM out.

WRITE / 'Button FUN 1 was pressed'.

WHEN 'FC2'.

PERFORM out.

WRITE / 'Button FUN 2 was pressed'.

WHEN 'FC3'.

PERFORM out.

WRITE / 'Button FUN 3 was pressed'.

WHEN 'FC4'.

PERFORM out.

WRITE / 'Button FUN 4 was pressed'.

WHEN 'FC5'.

PERFORM out.

WRITE / 'Button FUN 5 was pressed'.

ENDCASE.

sy-lsind = sy-lsind - 1.

FORM out.

WRITE: 'Secondary List',

/ 'SY-LSIND:', sy-lsind,

/ 'SY-PFKEY:', sy-pfkey.

ENDFORM.

Reward IF,,,,,,,,,,,,,,,,,,,

Regards

Anbu

Edited by: Anbu B on Jul 3, 2008 8:21 AM

Former Member
0 Kudos

assign the PICK command for the key F2. It will work fine.

Former Member
0 Kudos

Hi

if you use set pf status 'RAMS'. it will get your own screen which u define in MENU PAINTER

there is no problem with that.

with out that also u can use AT line-selection.

Former Member
0 Kudos

Hi Rajesh,

You can't use set pf-status and At Line-selection in one program.

If you want to use your own pf-status Use AT user-command instead of using At Line-Selection.

Ex: AT User-command.

CASE sy-ucomm.

WHEN 'FC01'.

.............................

WHEN 'FC02'.

..........................

ENDCASE.

Reward if it helps you.

Regards,

Naren.

Former Member
0 Kudos

thanks to all