Skip to Content
author's profile photo Former Member
Former Member

Convert RAW 1022 to XString

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
.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 06, 2010 at 06: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>.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.