Application Development 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: 

cl_gui_frontend_services=>clipboard_import and strings

rainer_hbenthal
Active Contributor
0 Kudos

Hi,

please have a look at this simple piece of code:

  call method cl_gui_frontend_services=>clipboard_import
    importing
      data                 = it_csv
    exceptions
      cntl_error           = 1
*      ERROR_NO_GUI         = 2
*      NOT_SUPPORTED_BY_GUI = 3
      others               = 4
          .

if it_CSV is declared as


types c4096 type c length 4096.
data   it_csv type standard table of c4096.

everything works well,

but


data   it_csv type standard table of string.

causes a system abend. Can someone confirm this? Bug or Feature?

2 REPLIES 2

Former Member
0 Kudos

Hi,

In the CLIPBOARD_IMPORT, if you look at the Import statment DATA,, it will declare as a STRING, so it will accept only the STRING types.

Regards

Sudheer

0 Kudos

data is declared as STANDARD TABLE, not as string.