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

read text

NAeda
Contributor
0 Likes
1,455

Hello ,

i want to fetch the text for object EKPO and id is F06, here my Query is how to pass the name to that function module Read_Text...?

how to know the tables like ttxid or stxh

please help me out regarding this !

Regards

Narsim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,325

Hi,

What is your requirement I did't get. write clearly. Anyway

Read_text Function Module is use to get the long text to this function module you have to pass ID, Name, Object are mandatory parameters. in tables you have to pass a internal table to get the text. For Eg: FB03 is Display Document

if you want to get a long text to this document see the following code.

1. Goto FB03 give Document Number, Company Code, Fiscal Year and Press Enter

if you don't know click on document list push button it will gives a list

2. It will gives a list of items you double click any item it will gives a another window here you can find out long text push button and click on. And it will give another popup window here you can find out a editor push button click on that it will displays a long text window.

3. In this window Click on Goto menu option find Header option it will gives a popup window here you can find out Text Id, Text Name, Text object and Language

these details pass to the Function Module it will give the long text into the table.

Thanks

Ganesh

7 REPLIES 7
Read only

b_deterd2
Active Contributor
0 Likes
1,325

concatenate po_no po_item into tdname.

call function ‘READ_TEXT’

exporting

id = ‘F06′

language = sy-langu

object = ‘EKPO’

name = tdname

importing

header = thead

tables

lines = tlinetab

exceptions

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8.

hope it helps,

Bert

Read only

Former Member
0 Likes
1,326

Hi,

What is your requirement I did't get. write clearly. Anyway

Read_text Function Module is use to get the long text to this function module you have to pass ID, Name, Object are mandatory parameters. in tables you have to pass a internal table to get the text. For Eg: FB03 is Display Document

if you want to get a long text to this document see the following code.

1. Goto FB03 give Document Number, Company Code, Fiscal Year and Press Enter

if you don't know click on document list push button it will gives a list

2. It will gives a list of items you double click any item it will gives a another window here you can find out long text push button and click on. And it will give another popup window here you can find out a editor push button click on that it will displays a long text window.

3. In this window Click on Goto menu option find Header option it will gives a popup window here you can find out Text Id, Text Name, Text object and Language

these details pass to the Function Module it will give the long text into the table.

Thanks

Ganesh

Read only

Former Member
0 Likes
1,325

hi,

try this

tables:ekko.

parameters:ebeln like ekko-ebeln.

DATA : name TYPE thead-tdname,

g_tline TYPE TABLE OF tline WITH HEADER LINE,

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'F05'

language = sy-langu

name = 'name'

object = 'EKKO'

TABLES

lines = g_tline

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

IF sy-subrc eq 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

loop at g_tline.

write: / g_tline.

endloop.

Read only

Former Member
0 Likes
1,325

the name has be of type THEAD-TDNAME.

thats all wizardry about it

Read only

Former Member
0 Likes
1,325

Hi,

look into STXH, here you find the parameters for READ_TEXT.

Regards, Dieter

Read only

0 Likes
1,325

Hello all,

I got the answer for how to fetch the text for po-item no,

here i am passing the variable to READ_TEXT for name by using

concatenating po_no po_item into name.

then how can i get the text at header level..,

for that what are the fields i need to pass to name

here now my requirement is to fetch the text at header level for billing document no..? not at the item level

but i need header level.

this is for item text..?

LOOP AT ITAB_VBRP.

CONCATENATE ITAB_VBRP-VGBEL ITAB_VBRP-POSNR INTO SIMPLE .

SELECT SINGLE TDOBJECT INTO TEST FROM STXH WHERE TDNAME EQ SIMPLE.

IF SY-SUBRC = 0.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = '0001' " changed by 0001 to 0002

LANGUAGE = sy-langu

NAME = SIMPLE

OBJECT = 'VBBP'

TABLES

LINES = ITLINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

ENDIF.

LOOP AT ITLINE.

IF SY-TABIX = 1.

ITAB_VBRP-CASE = ITLINE-TDLINE.

MODIFY ITAB_VBRP.

  • CLEAR ITAB_VBRP.

ENDIF.

ENDLOOP.

CLEAR SIMPLE.

ENDLOOP.

but i need header level.

waiting for the replyl.,

thanks

Regards

Narsimhulu

Read only

Former Member
0 Likes
1,325

Hi Plz find below your solution.

Data : VAL_ID LIKE THEAD-TDID,

VAL_NAME LIKE THEAD-TDNAME,

VAL_OBJECT LIKE THEAD-TDOBJECT.

Data :it_tline likes TLINE occurs 0 with header line.

VAL_ID = 'F06'.

VAL_NAME = '4500021545' . "Your purchase order no

VAL_OBJECT = 'EKPO'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id = VAL_ID

language = sy-langu

name = VAL_NAME

object = VAL_OBJECT

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = it_tline .

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Loop at it_tline .

write 😕 it_tline-TDLINE.

endloop.

You dont need to know about table ttxid or stxh. to know Long Text information just to transaction like me23n. enter PO No

Select TEXT Tab->Header Text->_Select Any Text->Click on left side box->go to menu->Header.

This path will give you all text information

\[removed by moderator\]

Regards

Rajesh

Edited by: Jan Stallkamp on Jul 21, 2008 2:35 PM