Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

to find text?

Former Member
0 Kudos

helo ABAPers,

1.Can you tell me and function module to read text of any field?

like i have my material number, but to give its text I have to refer MAKT table for text of material, can i find this using any function module?

2.Whats the use of read_text funstion mouldule? how to find what values have to be written in the exporting parameters in it?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

U can read the material description using this FM:

<b>'LEINT_MAKT_SINGLE_READ'</b>

Ex:

CALL FUNCTION <b>'LEINT_MAKT_SINGLE_READ'</b>

EXPORTING

IV_MATNR = <i><b><Material Number></b></i>

IV_SPRAS = SY-LANGU

IMPORTING

ES_MAKT = I_LEINT_MAKT

EXCEPTIONS

WRONG_CALL = 1

NOT_FOUND = 2

OTHERS = 3.

READ_TEXT is used for text which is stored in SAPScript editor i.e Dcoumentation.

- Selvapandian Arunachalam

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use Fm READ_TEXT.

go thru the documentation

FU READ_TEXT

____________________________________________________

Text

SAPscript: Read text

In order to process text modules in application programs, all

information about a text module must be transferred to internal work

areas.

A text is read from the text file or text memory with this function

module. It must be described fully by specifying OBJECT, NAME, ID, and

LANGUAGE. Generic entries in these parameters are not valid.

When header information and text lines have been read successfully, they

are transferred to the work areas HEADER and LINES.

Parameters

CLIENT

ID

LANGUAGE

NAME

OBJECT

ARCHIVE_HANDLE

LOCAL_CAT

HEADER

LINES

Exceptions

ID

LANGUAGE

Regards,

Shashank

dani_mn
Active Contributor
0 Kudos

READ_TEXT is use to read text in text areas given in some screens.

you have to give text id. to read text.

Others are 'EDIT_TEXT', 'SAVE_TEXT'.

For the text of a document you have to refer to text table.

Regards,

Wasim Ahmed

Former Member
0 Kudos

Hi,

U can read the material description using this FM:

<b>'LEINT_MAKT_SINGLE_READ'</b>

Ex:

CALL FUNCTION <b>'LEINT_MAKT_SINGLE_READ'</b>

EXPORTING

IV_MATNR = <i><b><Material Number></b></i>

IV_SPRAS = SY-LANGU

IMPORTING

ES_MAKT = I_LEINT_MAKT

EXCEPTIONS

WRONG_CALL = 1

NOT_FOUND = 2

OTHERS = 3.

READ_TEXT is used for text which is stored in SAPScript editor i.e Dcoumentation.

- Selvapandian Arunachalam

Former Member
0 Kudos

1. There is no generic function module to read the text of any field. You will have to handle it yourself.

2. READ_TEXT is a function to read long texts that are stored as a part of the master data or the documents like PO.

Regards,

Ravi

Note : Please mark the helpful answers

0 Kudos

Hi,

You cannot use READ_TEXT Fm to read all the texts. But there are some specific long texts using the FM we can get .

But for material Text you can use MAKT table,


SELECT MAKTX FROM MAKT INTO V_MAKTX WHERE MATNR = P_MATNR
         AND SPRAS = 'EN'.

REGARDS

VIJAY