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

READ_TEXT FM returning LINES table as empty

Hi Experts,

I am using FM 'READ_TEXT' in an ABAP but the FM is not returning LINES table filled with any value. May i know, how can i get the SAP long text value populated in LINES table i.e. i_tl in my case.

Code is as follow -

CALL FUNCTION 'READ_TEXT'

EXPORTING

object = 'BELEG'

name = e_th-tdname

id = '0001'

language = 'R'

IMPORTING

header = e_th

TABLES

lines = i_tl

EXCEPTIONS

not_found = 4.

Probably, no SAP long text maintained for this inputs provided to FM. But, if this is the case then how can we maintain SAP long text for these inputs ?

Useful answers will be appreciated.

Thanks in advance,

Akash

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 12:36 PM

    Akash,

    From which transaction you are trying to read the long text?

    Are you passing correct parameters?

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 12:46 PM

    Check if the text name has the zeroes appended to its value while passing the same to the FM

    Check if the text object is correct.

    Check if the text has been maintained in language 'R'.

    Hope it solves the issue.

    Lokesh

    Pls. reward if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 12:56 PM

    BELEG object is -- documents

    IDs have the following meanings

    0001 Correspondence

    0002 Note

    0003 Payment advice information

    0004 Remarks EBPP

    u will have to maintain in appropriate Tcodes

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 01:08 PM

    Hi Akash,

    Use FMs INIT_TEXT & SAVE_TEXT.

    Get Header details by passing the same parameters to INIT_TEXT as you passed in READ_TEXT.

    Pass header details & i_tl to SAVE_TEXT, data will get stored in respective place.

    <b>Reward Points for helpful answers</b>

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2007 at 07:17 AM

    Hi Satish,

    Have tried as per suggested by you i.e. first getting Header details by passing the same parameters to INIT_TEXT as i passed in READ_TEXT.

    But i_tl was received as empty in return, and then i tried to pass header details to SAVE_TEXT, but did not find any change.

    Please let me know, if i missed something.

    Thanks,

    Akash

    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.