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

Interactive Report

Former Member
0 Likes
620

Hi

Can't i use At line-selection and At user-command events in one report program. Bcoz when i am trying to use these 2 events in one program the cursor is going to At user-command only. At line-selection is not getting triggerred. When i use them individually they are working fine.

Regards

Haritha.

6 REPLIES 6
Read only

Former Member
0 Likes
599

Hi,

for using at line selection you have to define 2 fields

v_field and v_value.

now you have to write the case statement on v_field and use the value of that field stored in v_value.

for using this command you have to HIDE the field just after the write statement for the previous screen.

try out now i think you will get it.

reward if helpful

vivekanand

Read only

franois_henrotte
Active Contributor
0 Likes
599

at user-command is more generic and will handle all actions including line selection

you just have to check if sy-ucomm = 'PICK' to detect if action was line selection

Read only

Former Member
0 Likes
599

hi, you can use the two event the same time.

I think you use a custom STATUS bar in your report.

If so, you should active F2 in your STATUS bar, Fcode is 'PICK'. Because it has the same effect as double-clicking the mouse.

After that, the AT LINE-SELECTION and AT USER-COMMAND will be effective in the same time.

Regards

Vasu

Read only

Former Member
0 Likes
599

Hi François

I have checked with value 'PICK' but still its not working. It is taking the value of the user command of the pushbutton only.

Regards

Haritha.

Read only

Former Member
0 Likes
599

Hi Vasu,

I have one pushbutton in my application toolbar. Could u please tell me how to activate the F2 in the status bar.

Regards

Haritha.

Read only

0 Likes
599

hi,

when it ask for short cut key, you have to give F2