05-02-2006 12:47 PM
Hi All,
Can you tell me the transaction/table for finding text id associated with header & item text of purchase order.
Thanks in advance
Gaurav
05-02-2006 12:49 PM
05-02-2006 12:52 PM
check this link :
here is the way how to findout the OBJECT details :
1. READ_TEXT
for this you have to pass the below fields to the fm
ID
LANGUAGE
NAME
OBJECT
and you will get already stored text for this ID into the LINES internal table.
the above values for ID,NAME,OBJECT etc. you can find in the transaction.
for example: for po, header->goto texts -> select ur text (for ex.TERMS OF PAYMENTS ) here it will have several dropdown items like "continuous text,line editor,script editor".
here select SAP SCRIPT editor.
you will see a new script line editor.here .there in the menu GOTO -> header .
here you can find all the required fields to pass to the function module.
Message was edited by: Srikanth Kidambi
05-02-2006 1:27 PM
Hello Gaurav,
The best option to find out text id in purchase order is to go to Purchase order display screen. Say Me23-> enter the po and go the next screen. Then if u want to check for header then go to header text. Select the text for which u are looking for id and press long text button. Then GOTO->HEADER and it will show u the text id. same for item level.
05-02-2006 1:36 PM
Hi,
The tables related are STXH (Header), STXL(Item).
for PO texts...
for header texts..
TDOBJECT EKKO
TDNAME PO number(with padded zeroes)
TDID F18(it depends on configuration)
TDSPRAS EN
for item texts..
TDOBJECT EKPO
TDNAME PO number+Item(Po and item with padded zeroes)
TDID F03(it depends on configuration)
TDSPRAS EN
pass the above parameters you can read the long text stored in PO to the FM <b>READ_TEXT</b>.
Regards
vijay