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

difference

Former Member
0 Likes
492

what is the diference between at line selection and at user-command.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

Hi Sandeep,

If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.

This program works with the standard list status. A line selection with the left mouse key causes the event AT LINE-SELECTION and creates details lists.

AT LINE-SELECTION works :

START-OF-SELECTION.

WRITE 'Click me!' COLOR = 5 HOTSPOT.

AT LINE-SELECTION.

WRITE: / 'You clicked list', sy-listi,

/ 'You are on list', sy-lsind.

IF sy-lsind < 20.

SKIP.

WRITE: 'More ...' COLOR = 5 HOTSPOT.

ENDIF.

Yusuf

3 REPLIES 3
Read only

Former Member
0 Likes
472

Hi Sandeep,

If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.

This program works with the standard list status. A line selection with the left mouse key causes the event AT LINE-SELECTION and creates details lists.

AT LINE-SELECTION works :

START-OF-SELECTION.

WRITE 'Click me!' COLOR = 5 HOTSPOT.

AT LINE-SELECTION.

WRITE: / 'You clicked list', sy-listi,

/ 'You are on list', sy-lsind.

IF sy-lsind < 20.

SKIP.

WRITE: 'More ...' COLOR = 5 HOTSPOT.

ENDIF.

Yusuf

Read only

Former Member
0 Likes
471

at line-selection- triggers at the time of a double click on the row(single click in case of hotspot on).

at user-command- triggers at the time when you click the user defined push button

Read only

Former Member
0 Likes
471

At line selection: it basically depends on HIDE command which fields are assigned to HIDE. so when we click on a field value on output list the functionality will redirect to some other details based on the value you clicked. This will work with HIDE command and SET PARAMETER, CALL TRANSACTION whcih will give further details on value using this tranx which you called.

User command: In which it works on push buttons. SET PF-STATUS. set a push button here.

Thanks,

Deepak.