FUNCTION zca_string_to_clipboard.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(P_EXCEL_STRING) TYPE STRING
*"----------------------------------------------------------------------
DATA: gt_text TYPE STANDARD TABLE OF char255.
SPLIT p_excel_string AT '\n' INTO TABLE gt_text.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = gt_text
CHANGING
rc = gv_rc.
ENDFUNCTION.
var excelStr = session.findById("wnd[0]/usr/ctxtSO_PERNR-LOW").text;
excelStr += '\t'; // Tab
excelStr += session.findById("wnd[0]/usr/ctxtSO_PERNR-HIGH").text;
excelStr += '\n'; // New Line
excelStr += session.findById("wnd[0]/usr/ctxtSO_UNAME-LOW").text;
excelStr += '\t'; // Tab
excelStr += session.findById("wnd[0]/usr/ctxtSO_UNAME-HIGH").text;
excelStr += '\n'; // New Line
excelStr += session.findById("wnd[0]/usr/ctxtPA_DATAM").text;
excelStr += '\t'; // Tab
excelStr += ''; // Empty cell for non-existing field
excelStr += '\n'; // New Line
session.utils.alert(excelStr);
var oRFC = session.createRFC("ZCA_STRING_TO_CLIPBOARD");
oRFC.setParameter("P_EXCEL_STRING", excelStr );
oRFC.send();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |