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

Urgent

Former Member
0 Likes
472

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...?

3 REPLIES 3
Read only

Former Member
0 Likes
449

Hi,

You can use class CL_GUI_FRONTEND_SERVICES for that. (method CLIPBOARD_EXPORT)

Hope this helps.

Caglar

Read only

0 Likes
449

can u help me in providing me with the code .bcoz i dont have ny idea about dis.

thanks a lot

Read only

0 Likes
449

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