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

get component in READ_TEXT function ...

Former Member
0 Likes
420

Hi gurus,

Pls tell me how to get ID,NAME,OBJECT in read_text function. When I trace I saw it = '0002' ... But how to get them by program ...

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
386

Hi,

This depend on which long text you are looking for.

These are values from STXH table.

Regards,

Atish

Read only

Former Member
0 Likes
386

I call function READ_TEXT. Ex:

CONCATENATE p_bukrs wa_print-belnr p_gjahr INTO name

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = '0002'

LANGUAGE = 'E'

NAME = name

OBJECT = 'BELEG'

TABLES

LINES = t_line.

When the document don't have data in field LTEXT, it error. How to check it.

I also check by:

SELECT SINGLE * FROM STXH WHERE TDNAME = name.

But this statement's wrong, why !?

Pls help me .......