on 07-11-2013 2:54 AM
Hi all,
How can I copy data to client's clipboard via Web Dyn Pro for Abap?
Best Regards,
Samnang.
Hi Samnang,
We have function modules for to transfer/download the data to clipboards in abap.
CLPB_EXPORT: Send Text Table to Presentation Server Clipboard
CLPB_IMPORT:Load Text Table from Presentation Server Clipboard
For your requirement get the data form webdynpro ui which is data you want to save to clipboard and fill to internal table. finally pass the internal table to below function module and follow below sample code.
eg;
types: ty_tab(200) type c.
Data: wa_tab type ty_tab,
int_tab type table of ty_tab.
Move: 'This is line 1' to wa_tab.
append wa_tab to int_tab.
clear wa_tab.
Move: 'This is line 2' to wa_tab.
append wa_tab to int_tab.
clear wa_tab.
CALL FUNCTION 'CLPB_EXPORT'
TABLES
DATA_TAB = int_tab
EXCEPTIONS
CLPB_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanks & regards,
Kishorekumar SVS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Kishorekumar SVS,
Hi Kishorekumar SVS.
Thank for your reply.
Actually, I've also used to test that function. It worked fine and correctly at the Application Program(SE 38), but when I start used it in Web Dynpro, it becoming not worked with some detail below.
SY-SUBRC = 1.
SY-MSGID = DH.
SY-MSGTY = S.
SY-MSGNO = 804.
do you how to fix it?
Thank you
Best regard,
Samnang.
Hi,
We cannot use GUI functions in Web Dynpro ABAP. GUI functions are for SAP GUI only. There is no such feature to copy clip board data to Web Dynpro ABAP till Netweaver 7.0 Ehp3.
From Netweaver 7.0 Ehp3 this feature is available. You can refer to my article inthis link http://scn.sap.com/docs/DOC-37714
Hope this helps u.,
Regards,
Kiran
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.