cancel
Showing results for 
Search instead for 
Did you mean: 

any limitation of data while reading with READ_TEXT.

Former Member
0 Kudos

hi Technical pals,

I am using READ_TEXT for reading sales order shipping instruction text , after some data, it is not reading . Is there any limitation.

please suggest me.

balaji.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

srinu, phani, RICH ,

Thank you for your fast response. There is some limitation .after 230 characters , it is not reading the data.

please check from your side also.

Have u ever faced this problem?

please suggest.

balaji.

Former Member
0 Kudos

The structure TLINE is itself limited to 132, but if a line exceeds this, then another record will be added to this internal table with a formatting character(TDFORMAT) value of continuous line. See if your data is in the next record.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I know for a fact that it can handle more than that. Can you post your code, we can take a look.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi Balaji,

How many lines are you reading with the read_text??

Former Member
0 Kudos

srinivas,

i am concatenateing the with text_line of 1080 character length.

plz suggest.

Former Member
0 Kudos

In debugging, after your call to READ_TEXT, what do you see in the internal table TLINE? Do you see all the data or some text missing?

I did not understand your 'concatenation' part. What are you concatenating and how is that related to READ_TEXT?

Message was edited by: Srinivas Adavi

Former Member
0 Kudos

stxl_id-tdobject = 'VBBK'.

stxl_id-tdname = wa_vbfa-vbelv.

stxl_id-tdid = '0012'.

stxl_id-tdspras = 'EN'.

DATA: BEGIN OF tlines OCCURS 10.

INCLUDE STRUCTURE tline.

DATA: END OF tlines.

  • clear: i_text.

*DATA : l_text(120) TYPE c,

DATA : l_text(1050) TYPE c,

v_tline LIKE tline-tdline.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = stxl_id-tdid

language = stxl_id-tdspras

name = stxl_id-tdname

object = stxl_id-tdobject

archive_handle = 0

local_cat = ' '

  • IMPORTING

  • HEADER =

TABLES

lines = tlines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

LOOP AT tlines.

CONCATENATE l_text tlines-tdline INTO l_text SEPARATED BY space.

ENDLOOP.

-


New Delhi, Jan. 9 (PTI): In a move that could trigger a stand-off between Parliament and the judiciary, the Delhi High Court today

issued notices to the Lok Sabha and Rajya Sabha 1111 1111111 secretariats,Election Commission and the Centre on petitions by 12 eight of the 11 expelled MPs challenging their expulsion in the wake of "cash for query" scam.

-


hi friends,

i am getting upto centre.

thanks in advance.

balaji.

Former Member
0 Kudos

this is text in sales order

-


New Delhi, Jan. 9 (PTI): In a move that could trigger a stand-off between Parliament and the judiciary, the Delhi High Court today

issued notices to the Lok Sabha and Rajya Sabha 1111 1111111 secretariats,Election Commission and the Centre on petitions by 12 eight of the 11 expelled MPs challenging their expulsion in the wake of "cash for query" scam.

-


RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Make l_text as type string.

Regards,

Rich Heilman

Former Member
0 Kudos

RICH, I need to display in script, suppose i specify this one as STRING, it it dumping(SHOTDUMP) BOSS.

PLZ SUGGEST.

BALAJI.

Former Member
0 Kudos

I don't see any diffenrece between the text you concatenated and the text, you said is on the sales order. Also, why are you concatenating all that text into one line? Why not just loop at the internal table and write the line as it is?

As I see it, the problem is not in the READ_TEXT, it is in the logic after that and the length of your variable.

Former Member
0 Kudos

<b><i>> RICH, I need to display in script, </i></b>

That is the most important piece of information that you missed out. Showing these lines in a script vs showing it in list output are two entirely different beasts.

Former Member
0 Kudos

Srini,

i specified this one as field in variable window. suppose ,i specify variable window in loop. it is not displaying the data.

problem BOSS.

BALAJI.

Former Member
0 Kudos

Hi Balaji,

Loop at Tlines.

call the window & in the window write &tlines-tdline&.

endloop.

If you are using in a script,You can simply call the include..

/: Include wa_vbfa-vbelv OBJECT VBBK ID 0012 LANGUAGE EN PARAGRAPH <ZZ>.

Message was edited by: Phani Kiran Nudurupati

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I've never had a problem with it. How much data are you reading, how many lines? What are the last few visible lines?

REgards,

Rich Heilman

Former Member
0 Kudos

Hi Balaji,

There wil be no limitations to reading the lines.

Former Member
0 Kudos

I don't think so, what do you mean by 'after some time'? After some number of lines(how many approx)?

Srinivas