Application Development and Automation 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: 
Read only

regarding FUNCTION 'READ_TEXT'

Former Member
0 Likes
724

Hi experts:

There are several necessary parameter for function

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

id = v_id

language = v_spras

name = v_name

OBJECT = C_KNVV

TABLES

lines = i_read_text

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

as I debug it , v_id = z114 .how can I get parameter v_id , ? does it change along with conditions ?

thank a lot !!!

v_id

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
680

Hi ,

For every text you have one ID .

v_id would be a variable field which contains the value of ID.

These are the main fields in this Function module

READ_TEXT.

id 
language 
name 
OBJECT

If you check table STXH --->SAPscript text file header you can find these fields.

TDOBJECT	Texts: Application Object
TDNAME		Name
TDID		Text ID
TDSPRAS		Language Key

Best regards,

raam

5 REPLIES 5
Read only

Former Member
0 Likes
680

Hi,

you can little bit clear, Where you are debugging this one. I mean what is the T.Code for which you were debugging.

Regards,

Ramana

Read only

Former Member
0 Likes
680

goto this table TTXID enter your text object u will get the textid for that object.

reward if helpful

Read only

0 Likes
680

yes, you are correct. one thing still I don't quite understand , you know I want to achieve customer email address maintained via VD02 using function READ_TEXT. there are many records for object KNVV, How to identify which is for customer email address ?

Read only

Former Member
0 Likes
681

Hi ,

For every text you have one ID .

v_id would be a variable field which contains the value of ID.

These are the main fields in this Function module

READ_TEXT.

id 
language 
name 
OBJECT

If you check table STXH --->SAPscript text file header you can find these fields.

TDOBJECT	Texts: Application Object
TDNAME		Name
TDID		Text ID
TDSPRAS		Language Key

Best regards,

raam

Read only

Former Member
0 Likes
680

Hi,

It will retrive the id i.e. v_id from the function module .

and it will be same for one object...

But if you call the function module in loop then each time the v_id will be different..

Best regards,

Brijesh