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 SELECTION AN AT USER-COMMAND IN ONE REPORT

Former Member
0 Kudos

hiiii friends.....

hw can i go for both at line selection an at user comond in one report....

ie if double click on basic list it should shw sm output an when i choose menu optoin it should perform sm other output......

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

You need to crate a PF-Status and in the PF-staus you need to include some essentials buttons and the button for your list on the USER-COMMAND.

Say,

BACK

EXIT

CANC

PICK ... should be assigned to F2 .. to work with LINE-SELECTION.

NEW_LIST ... for USER-COMMAND

In your report:

START-OF-SELECTION.
  SET PF-STATUS 'Z_OWN'.

AT LINE-SELECTION.
  WRITE : 'I AM LINE SELECTION'.

AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'NEW_LIST'.
       WRITE / 'I AM CALLED FROM USER COMMAND'.
  ENDCASE.

Regards,

Naimesh Patel

Former Member
0 Kudos

hi,

for both to work u need to create one button in application toolbar with name 'PICK' ( its compulsary) and assign F2 function to it.

than both will work...

Reward if useful...

Former Member
0 Kudos

This message was moderated.