2007 Apr 12 6:10 PM
i have an xl file with 2 columns and 300 rows data.i have to copy dat to table control on screen using control v event since it has been copied using cntrl c
how to do dis...?
i have an xl file with 2 columns and 300 rows data.i have to copy dat to table control on screen using control v event since it has been copied using cntrl c
how to do dis...?
2007 Apr 12 6:16 PM
Hi,
You can use class CL_GUI_FRONTEND_SERVICES for that. (method CLIPBOARD_EXPORT)
Hope this helps.
Caglar
2007 Apr 12 6:21 PM
can u help me in providing me with the code .bcoz i dont have ny idea about dis.
thanks a lot
2007 Apr 13 9:20 AM
Hi Nabheet ,
Sorry for the late answer
I think you could do something similar to this,
data : t_tab type standard table of char255. " this will be your line length
CALL METHOD
CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT
IMPORTING
DATA = t_tab
* LENGTH =
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
* others = 4
Hope this helps,
Caglar