06-28-2016 2:08 AM
Hi,
I am currently facing a problem wherein if using standard function 'ALSM_EXCEL_TO_INTERNAL_TABLE', im getting an information message saying "There is a large amount of information on the clipboard. Do you want to be able to paste this information into another program later?".
Weird thing is that, for some, this error is not being faced but for most users, we are getting this kind of error.
Note: when debugging it and passing this Call Method of range 'Copy'., it will properly give out the output and wont produce a message just like above.
Thanks,
DF
07-22-2016 1:19 AM
Hi,
For those who are still looking for answers about the same issue, our security team blocked all copying, sending and importing of data from the local PC. Make sure to make an exception to SAP Logon.exe so that it wont block your uploads to SAP.
KR,
DF
06-28-2016 6:50 AM
This pop-up should usually trigger every time more than a hundred cells are in the clopboard.
There is an option in Excel to clear clipboard before closing the sheet : Exit from Cut/Copy mode:
workbook.Application.CutCopyMode = False
that should reduce the frequency of warning, another solution is to copy one single cell before closing sheet
ActiveSheet.Range("A1").Copy
Regards,
Raymond
06-28-2016 7:30 AM
Hi Raymond,
Thank you for your answer.
However, I believe thats not the answer that i am looking for. I am trying to upload an excel file to the SAP database. And to do that, I am using SAP Standard function module ALSM_EXCEL_TO_INTERNAL_TABLE. However, when trying to upload it, we are being blocked by that error/info message.
KR,
DF
06-28-2016 8:04 AM
You might have some older version of function (which is by the way not released).
Check if there is cl_gui_frontend_services=>clipboard_export (it clears clipboard) after clipboard_import and PERFORM separated_to_intern_convert call.
And if there is. Debug it, which sy-subrc it returns and if it really does clear clipboard.
FM version from 27.01.2003 SAP:
* read clipboard into ABAP
CALL METHOD cl_gui_frontend_services=>clipboard_import
IMPORTING
data = excel_tab
EXCEPTIONS
cntl_error = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4
.
IF sy-subrc <> 0.
MESSAGE a037(alsmex).
ENDIF.
PERFORM separated_to_intern_convert TABLES excel_tab intern
USING ld_separator.
* clear clipboard
REFRESH excel_tab.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = excel_tab
CHANGING
rc = ld_rc
EXCEPTIONS
cntl_error = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4
.
06-28-2016 8:21 AM
Hi Tomas,
Thanks! However, the FM version I have has clipboard_export method.
KR,
DF
06-28-2016 9:31 AM
As I see in your first post. You cannot reproduce this message when debugging function? It appears only if you run it without debug?
Try reproduce it with and without opened excel file.
How many cells are selected to clipboard, when this problem happens?
06-28-2016 9:33 AM
07-11-2016 2:08 AM
Hi,
Still havent solved this issue yet. anyone who has experienced same error before? can you share the solution you did? I believe that this is already an excel issue.
KR
07-10-2019 11:40 AM
Hi. Does anybody have a resolution for the above problem? I am getting exactly the same issue. If I debug and step over the line CALL METHOD OF range 'COPY' in the function module ALSM_EXCEL_TO_INTERNAL_TABLE, then the function works and populates the internal table. Otherwise it pops up with the message about data on the clipboard and thendoesn't fill the internal table. My colleague does not seem to have this issue so there must be some settng within excel or the sap gui perhaps?
Can somebody help?
07-22-2016 1:19 AM
Hi,
For those who are still looking for answers about the same issue, our security team blocked all copying, sending and importing of data from the local PC. Make sure to make an exception to SAP Logon.exe so that it wont block your uploads to SAP.
KR,
DF
02-12-2020 11:15 AM
02-12-2021 7:37 AM
Hi,
I also have similar issue.
I only found a quite useless SAP note 2905085 that did not help me in any way...
Regards,
Bartosz
03-12-2022 10:50 PM
I had the same issue. Seems there is not any fm or method for clearing the clipboard properly.
I wrote the code below to try several times. it worked for me.
"Clear Clipboard
DO 10 TIMES.
CLEAR excel_tab.
cl_gui_frontend_services=>clipboard_export( IMPORTING data = excel_tab CHANGING rc = ld_rc ) .
CLEAR excel_tab.
cl_gui_frontend_services=>clipboard_import( IMPORTING data = excel_tab ). "read clipboard
IF excel_tab IS INITIAL.
EXIT .
ENDIF.
WAIT UP TO 1 SECONDS.
ENDDO.
04-10-2023 11:15 AM
10-17-2023 2:20 AM
Solved after new user profile created in my nb.
Before that, I tried create Z FM and add a waiting time after copy -> depending on your data volume
I dont really get the logic of adding that, but it does work for me.
* copy marked area (whole spread sheet) into Clippboard
CALL METHOD OF range 'COPY'.
WAIT UP TO 10 SECONDS.
m_message.