Application Development 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: 

Output tab delimited text to a screen list

mgross1
Participant
0 Kudos
239
WRITE:/ 'ABC', 'DEF'.

This obviously outputs ABC DEF but I want to be able to then copy this text on the screen using CTRL-Y and paste it into a table in SAP so that ABC goes in the first column and DEF goes in the second column. So this needs a TAB between ABC and DEF. I tried different ways to output a TAB to a screen list using ABAP but I just get something like ABC#DEF.

Is there a way to achieve this?

2 REPLIES 2

Sandra_Rossi
Active Contributor
174

Possibly, instead of Ctrl+Y, Ctrl+C or Ctrl+V, use the clipboard methods in CL_GUI_FRONTEND_SERVICES.

Patrice
Participant
0 Kudos
174

Hi,

Tab is considered a non-printable character by SAP and these characters will be displayed with #. You cannot have an actual tab in a program's list processing screen (what is displayed when command WRITE is used) that you could copy and paste.

To achieve this, display an ALV grid instead of using WRITE. This way you'll be able to copy your text from the grid and insert it back in a grid.

I hope this helps.

Patrice