‎2008 Apr 04 12:59 PM
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
‎2008 Apr 04 1:38 PM
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
‎2008 Apr 04 1:02 PM
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
‎2008 Apr 04 1:38 PM
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
‎2008 Apr 04 1:44 PM
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.
‎2008 Apr 04 1:46 PM
the name has be of type THEAD-TDNAME.
thats all wizardry about it
‎2008 Apr 04 1:49 PM
Hi,
look into STXH, here you find the parameters for READ_TEXT.
Regards, Dieter
‎2008 Apr 05 8:29 AM
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
‎2008 Apr 05 8:49 AM
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