Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Clipboard to selection screen

Hi Experts

Can we copy values from clipboard to selection screen of the report at initialisation event?

Thanks in advance.

Giri.

Tags:
replied

Hi,

I have not tried in Initialization event.

But this method will help you to import data from clipboard to internal table

TYPES: BEGIN OF YS_EXCEL,
         LINE(4096)               TYPE C,
         END OF YS_EXCEL.

  DATA: LT_EXCEL_CLP TYPE  YT_EXCEL.


  CALL METHOD CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT
     IMPORTING
       DATA                 = LT_EXCEL_CLP
*    LENGTH               =
     EXCEPTIONS
       CNTL_ERROR           = 1
       ERROR_NO_GUI         = 2
       NOT_SUPPORTED_BY_GUI = 3
       OTHERS               = 4
          .

Cheers,

Kothand

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question