Skip to Content
0
Former Member
Sep 15, 2005 at 02:18 PM

hi can sum1 help me with the user command

18 Views

START-OF-SELECTION.

WRITE 'Basic List'.

SET USER-COMMAND 'MYCO'.

AT LINE-SELECTION.

WRITE 'Secondary List from LINE-SELECTION,'.

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

SET USER-COMMAND '%SC'.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'MYCO'.

WRITE 'Secondary List from USER-COMMAND,'.

WRITE: 'SY-LSIND', sy-lsind,sy-pfkey.

SET USER-COMMAND 'PF05'.

ENDCASE.

AT pf05.

WRITE 'Secondary List from PF05,'.

WRITE: 'SY-LSIND', sy-lsind,sy-pfkey.

SET CURSOR LINE 1.

SET USER-COMMAND 'PICK'.

in the above program SET USER-COMMAND '%SC' i.e dialog box is displayed first rather than other set user-command. Is it because of '%SC' . i know that when there r several user-commands, the last user-command is set first but even if i change the order it gives me the write in at line-selection. Can Any 1 please explain this code.

Thankyou all.

Santosh.