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

Multiple hide one 1 screen in an interactive report.

Former Member
0 Likes
679

Dear All,

I wish to do

Hide tab1-fld1.

hide tab1-fld2.

Now when the user clicks on the fld1 my program will pick up data from one table and display it and when the user clicks on fld2 my program will pick up data from 2nd table and display it.

How do i test which fld has been clicked on ? Is hide the right command to do such a thing?

Many thanks,

Ashim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

HI,

You can Know which field was clicked by user

by using Get Cursor Field statement.

It is Better to use SY-LISEL System Field which contains the

clicked line Record on the List and You may also use 'get cursor Value '.

For More Information about Get Cursor and Sy-lisel,

Refer programs,

DEMO_LIST_SY_LISEL

DEMO_LIST_GET_CURSOR


at line-selection.
GET CURSOR FIELD v_field.
"here v_field contains the clicked Field Name

Regards,

Raghava Channooru

Dear All,

I wish to do

Hide tab1-fld1.

hide tab1-fld2.

Now when the user clicks on the fld1 my program will pick up data from one table and display it and when the user clicks on fld2 my program will pick up data from 2nd table and display it.

How do i test which fld has been clicked on ? Is hide the right command to do such a thing?

Many thanks,

Ashim

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
647

Yes , you can achieve the same using HIDE.

System fields will automatically pick the values which you have written using hide.

Read only

0 Likes
647

Dear Sandeep,

How do I test which field has been clicked on ?

Thank you,

Ashim

Read only

Former Member
0 Likes
648

HI,

You can Know which field was clicked by user

by using Get Cursor Field statement.

It is Better to use SY-LISEL System Field which contains the

clicked line Record on the List and You may also use 'get cursor Value '.

For More Information about Get Cursor and Sy-lisel,

Refer programs,

DEMO_LIST_SY_LISEL

DEMO_LIST_GET_CURSOR


at line-selection.
GET CURSOR FIELD v_field.
"here v_field contains the clicked Field Name

Regards,

Raghava Channooru

Read only

Former Member
0 Likes
647

Hi,

You can acheive this using Check box, select the Check boxes and go through the below Links

http://wiki.sdn.sap.com/wiki/display/Snippets/Checkboxfunctionalityininteractiveclassicalreport

http://wiki.sdn.sap.com/wiki/display/Snippets/Interactivereportusingcheckbox

Cheerz

Ram