‎2005 Sep 02 12:24 PM
hi budys,
plz solve my issue and gain full points imm,we are working on an interface, where the Purchase order will send to other system as Sales order.every thing is fine.but the text(header and item) is not moving from PO to SO,i'm not able to look the text even in the sending system idoc.actually we are writng the text in text type which was created by my functional guy.thanks to all for spending ur time.plz help me out.
‎2005 Sep 02 12:30 PM
Dear danny,
Well you have to use the function module 'Read_text' to get the text in the Header and item of a particular PO. In this function module you have pass the PO number along with object type 'EKKO'.
Regards,
Vikas
‎2005 Sep 02 4:43 PM
EKKO is only for the header text--you will also need to call READ_TEXT for the item texts as well using object type EKPO and object id of the PO# concatenated with the item#.
Unfortunately, you also need to know the text id, or TDID for the text you want to read. You can get this by searching table TTXID using either EKKO or EKPO to match the text description and obtain it's relevant ID that way.
‎2005 Sep 02 5:14 PM
hi, Joel Falk is right.
You can call the function like this:
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'XXX'
LANGUAGE = SY-LANGU
NAME = FNAME
OBJECT = 'EKPO'
TABLES
LINES = IT_TLINE.
ID is the text id in TTXID, every ID associated with a TEXT.
OBJECT: if header, OBJECT is EKKO, NAME is PO number
if item, OBJECT is EKPO, NAME is PO concatenate Item number.
thanks a lot