2010 May 19 6:16 AM
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
2010 May 19 6:31 AM
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
2010 May 19 6:27 AM
Yes , you can achieve the same using HIDE.
System fields will automatically pick the values which you have written using hide.
2010 May 19 6:32 AM
Dear Sandeep,
How do I test which field has been clicked on ?
Thank you,
Ashim
2010 May 19 6:31 AM
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
2010 May 19 6:35 AM
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