Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

upload from clipboard

Former Member
0 Likes
2,817

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,577

Hi shah,

1. CLPB_IMPORT

CLPB_EXPORT

regards,

amit m.

Read only

0 Likes
1,577

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

Read only

Former Member
0 Likes
1,577

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.

Read only

0 Likes
1,577

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,

Read only

0 Likes
1,577

Hi again,

1. SE24 is the tcode.

regards,

amit m.

Read only

0 Likes
1,577

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 ?

Read only

0 Likes
1,577

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

Read only

0 Likes
1,577

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.

Read only

0 Likes
1,577

Hi amit,

This exactlly what I tried before posting my post, but when I enter CLIPBOARD and press f4, no list appred

Read only

Former Member
0 Likes
1,577

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