Splitting Clip Board in abap

I am using the CLPB_IMPORT function. to get the clipboard for the internal table. this is normal. I am copying data from two columns. Thus, it fills the table with the separator '#', for example:

  • 4448 # 3000
  • 4449 # 4000
  • 4441 # 5000

But the problem is separating these lines. I'm trying to;

LOOP AT foytab.
    SPLIT foytab-tab  AT '#' INTO temp1 temp2.
ENDLOOP.

But it does not break. it puts the whole line in temp1. I think the delimiter is not what I thought ("#"). Because when I write a line manually with the separator '#', it breaks.

Do you have an idea to share this?

+5
source share
1 answer

Cannot be used CLPB_IMPORTbecause it is clearly marked as outdated. Use instead CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT.

, , #, . . # - , . , CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

enter image description here

+4

All Articles