2010 Sep 06 6:47 PM
Hi,
i have got a PDF-File in a RAW 1022 table and want to convert it into a XString.
I tried to do with SCMS_TEXT_TO_XSTRING, i got a result but a wrong one. My table has 11 lines, so the xstring should have 11424 characters - but it has 15627... Can anyone help to solve this problem?
DATA: file_tab TYPE TABLE OF bapiconten,
file_xstr TYPE xstring.
* [...] PDF into table [...]
CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'
IMPORTING
BUFFER = file_xstr
TABLES
TEXT_TAB = file_tab
.
Hi,
i have got a PDF-File in a RAW 1022 table and want to convert it into a XString.
I tried to do with SCMS_TEXT_TO_XSTRING, i got a result but a wrong one. My table has 11 lines, so the xstring should have 11424 characters - but it has 15627... Can anyone help to solve this problem?
DATA: file_tab TYPE TABLE OF bapiconten,
file_xstr TYPE xstring.
* [...] PDF into table [...]
CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'
IMPORTING
BUFFER = file_xstr
TABLES
TEXT_TAB = file_tab
.
2010 Sep 06 7:05 PM
This should work, you can try something similar to this.
field-symbols: <fs_line> type raw.....( give the correct data type )
<fs_x> type xstring.
assign lv_x to <fs_xc> casting.
assign lv_raw to <fs_line> casting.
<fs_x> = <fs_line>.
2010 Sep 06 7:20 PM
Uh, I forgot to tell you I am doing this in a BSP-Application, so i get the message that <fs_x> and <fs_line> are not convertable in an unicode-program.
2010 Sep 06 7:46 PM
2014 Dec 05 12:25 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |