07-03-2008 7:12 AM
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
07-03-2008 7:16 AM
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
07-03-2008 7:16 AM
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
07-03-2008 7:18 AM
Hi,
Check in you pf-status: if u have assigned PICK to F2 ( under Function keys section).
regards,
madhu
07-03-2008 7:18 AM
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
07-03-2008 7:19 AM
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
07-03-2008 7:21 AM
07-03-2008 7:22 AM
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.
07-03-2008 7:23 AM
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.
09-12-2008 8:25 AM