2006 Jun 20 10:07 AM
Hello friends,
I have to upload some data from clipboard, into dnypro, what you guys think, can I use one of the following function modules, SWD_CLIPBOARD_PASTE, IB_IBIN_PASTE_CLIPBOARD or CLO0_DDB_PASTE_FROM_CLIP
what you guys think is the good option ??
Many thanks and kind regards
Hello friends,
I have to upload some data from clipboard, into dnypro, what you guys think, can I use one of the following function modules, SWD_CLIPBOARD_PASTE, IB_IBIN_PASTE_CLIPBOARD or CLO0_DDB_PASTE_FROM_CLIP
what you guys think is the good option ??
Many thanks and kind regards
2006 Jun 20 10:10 AM
2006 Jun 20 11:03 AM
Hello Amit,
Thanks for your kind reply, but would be nice if you please let me know why I cant use the fm I mentioned in my post ? ( I have found them in se37...)
Many thanks and kind regards,
Message was edited by: Shah H
2006 Jun 20 11:17 AM
Hi again,
1. I have not used those FM.
2. One can use it, no problem.
3. other alternative is using class concept.
4. Just copy paste in new program.
( u will get text clipboard data in ITAB)
5.
report abc.
data : begin of itab occurs 0,
m(100) type c,
end of itab.
CALL METHOD
CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT
IMPORTING
DATA = itab[]
LENGTH =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
.
break-point.
regards,
amit m.
2006 Jun 20 11:25 AM
Hello,
yaar amit, pls tell me where I can see these classes, like in java we have javadoc, do we have any transcation or stuff like there where I can see and find these usefull classes like the one you mentioned CL_GUI_FRONTEND_SERVICES...
Many thanks,
2006 Jun 20 11:26 AM
2006 Jun 20 11:34 AM
Hello amit,
Many thanks again for your kind reply, but in this transcation I have to first enter something to find, cant be a lits of all classes ?
Any way, can I use ctrl+v funcation key in GUI STATUS if yes, can you help me to figure out, how ?
2006 Jun 20 11:41 AM
can it also be possible to search FM or class from method like I enter clipboard and recieve the corresponding class or fm ?? is it possible
2006 Jun 20 11:44 AM
Hi again,
1. goto se24.
2. enter CLIPBOARD
in the entry field for object type.
3. Press F4
4. u will get a list .
regards,
amit m.
2006 Jun 20 12:14 PM
Hi amit,
This exactlly what I tried before posting my post, but when I enter CLIPBOARD and press f4, no list appred
2006 Jun 20 11:51 AM
Hai Shah
Go through the following Code
DATA: v_rc TYPE I,
l_t_data type standard table of char128,
l_s_data type char128.
l_s_data = 'Hai Sree'.
append l_s_data to l_t_data.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_EXPORT
IMPORTING
DATA = l_t_data
CHANGING
RC = v_rc
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
after execute this code
just paste in any notepad file
this will work fine
Thanks & regards
Sreenivasulu P