cancel
Showing results for 
Search instead for 
Did you mean: 

READ_TEXT

Former Member
0 Kudos

Hi Friends,

I am using the READ_TEXT FM to read the texts from VA03,

By this FM the we can only read upto 70 char,I want to get 100 chars from VA03....

what function module do I need to use ....

Please help me out.

Thanks,

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Praveen,

Try this,

in READ_TEXT funciton module u have to pass the parameters

TDID = <textid>.

TDFORMAT = '='. "'This is for continous text

TDOBJECT = <text object>.

Regards,

Vinai. K

if helpfull, rewards it.

Former Member
0 Kudos

Thanks...

I tried with Read_Text.

But I am getting only the first 70 Chars, I have to display at least 150 chars.

Please help me out in this.

Thanks,

Praveen

Former Member
0 Kudos

hi praven

r u getting the complete text data in to the LINES table but the printing is of only 75 char... or in the LINES it self u r not getting the comple data...chec in debugging

if complete data is comeing once check the window have enough space to print the data

 CALL FUNCTION 'READ_TEXT'
    EXPORTING
      ID                      = '0002'
      LANGUAGE                = V_LANGU
      NAME                    = V_TDNAME
      OBJECT                  = 'VBBK'
    TABLES
      LINES                   = IT_TLINE
    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.
    CLEAR IT_TLINE.
  ENDIF.

u have to loop the table IT_TLINE and print the data...

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K

Former Member
0 Kudos

Hi All,

Thanks for your answers.

I used the read_text and passed all the values.

and looped through TLINE table still not getting the data into the script.

In debugging the data is there in TLINE but its not coming into the script form.

so i used the include option.

Thanks,

Praveen

Message was edited by:

Praveen Kumar

Answers (4)

Answers (4)

p244500
Active Contributor
0 Kudos

hai

i wil gv ur to som infomation... try wil u using this

data v_deldt(150).

Then pass the value for the variable(v_deldt)...then u can diclar the funtion.....

call function 'READ_TEXT'

exporting

id = 'A01'

language = sy-langu

name = v_deldt

object = 'EKKO'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = it_lines

exceptions

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8

i think u can useful that information....

regard

nawa

p244500
Active Contributor
0 Kudos

hai

using this example try... i think u can useful this information....

DATA W_NUMBER(150).

........................

call function 'READ_TEXT'

exporting

id = 'Z001'

language = sy-langu

name = W_NUMBER

object = 'VBBP'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

regard

nawa

lines = it_lines

exceptions

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8

former_member480923
Active Contributor
0 Kudos

Hi,

The read text returns you a Table

LINES	LIKE	TLINE ( Compoenent tdline(132 Chars) 

This table can be looped and printed with more than 30 chars at a time. Please check.

Thanks

Anirban m.

Former Member
0 Kudos

Hi Praveen,

Go for tables STXH( header ) and STXL ( item ) and see whether the text required is maintained over there for Sales Order.If maintained select it from the tables.

Regards

Avi....