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

user command

Former Member
0 Likes
441

Hi,

In my program I don't have any screens , It contains only the selection-screen,

I have putted the PF-status in the program, but what is my problem was The user command is not working for me, is there any other method to use the user command while using the selection screen , Help me

Regards,

Janani Sudhakar.

3 REPLIES 3
Read only

Former Member
0 Likes
415

hi,

IF U ATTACH A PF-STATUS the user command will be store in sy-ucomm.

other wise for selection screen user command will be stored in sscrfields-ucomm.

here sscrfields is a system defined structure.

rgds,

bharat.

Read only

Former Member
0 Likes
415

hi,

try using with AT LINE-SELECTION event or when use AT USER-COMMAND before that u have to assign a screen for that using AT PF-STATUS........

otherwise AT USER-COMMAND command wont work.

if helpful reward some points.

with regards,

suresh.

Read only

Former Member
0 Likes
415

hi,

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'BACK'.

LEAVE PROGRAM.

WHEN 'EXIT'.

LEAVE SCREEN.

WHEN 'CANC'.

LEAVE SCREEN.

when 'pushbutton'.

endcase.

IN UR code while displaying any report use set pf-status before that form.

SET PF-STATUS '0001'.

PERFORM F_DISPLAY.