cancel
Showing results for 
Search instead for 
Did you mean: 

scripts

Former Member
0 Kudos

hi,

what is the main purpose of read_text.

give me with an example.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

READ_TEXT is a function module which is used to retrieve the long texts.

go through with the below link.

http://www.sap-basis-abap.com/sapac002.htm

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

eg.

data : ss_matnr type matnr.

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = wa_mara-matnr

importing

output = ss_matnr.

s_id = 'GRUN'.

s_lang = 'EN'.

s_nm = ss_matnr.

s_obj = 'MATERIAL'.

call function 'READ_TEXT'

exporting

  • CLIENT = SY-MANDT

id = s_id

language = s_lang

name = s_nm

object = s_obj

  • 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

reward if helpful