12-20-2005 10:27 AM
hi
EKKO - Purchasing Document Header table.
But i want to Purchasing Header <b>Text</b> table.
while using the <b>me41</b> transaction, header text values are in structure <b>RM06E-ltex1, RM06E-ltex2</b>.
In which <b>data base table</b> maintain these values in R/3.
Regards,
sonali.v
12-20-2005 11:15 AM
Hi Sonali,
This statement gets the header text
import tline to rt_lines
from database stxl(tx)
client rt_client
id stxl_id
While, stxl_id is having:
TDOBJECT = EKKO
TDNAME = Document number
TDID = A01
TDSPRAS = Language Key
Regards,
Raj
12-20-2005 10:50 AM
u can get the header text using FM 'READ_TEXT'.
for the export parameters , in me41, place the cursor at header text, click long Text..u ll get sapscript editor...> goto>header... u ll get the import parameters for the FM.
Pl Acknowledge if it helps,
Bikash
12-20-2005 10:51 AM
Hi Sonali,
You can get the text using the Function Module READ_TEXT.
Pass the ID,LANGUAGE, NAME and OBJECT.
You will get the text in table LINES.
Hope it helps...
Lokesh
Pls. reward appropriate points
12-20-2005 11:15 AM
Hi Sonali,
This statement gets the header text
import tline to rt_lines
from database stxl(tx)
client rt_client
id stxl_id
While, stxl_id is having:
TDOBJECT = EKKO
TDNAME = Document number
TDID = A01
TDSPRAS = Language Key
Regards,
Raj
12-20-2005 11:34 AM
it can be found out as follows :
go to me41/42-> header ->then click on "LONG TEXT" on the application toolbar. you will be appeared with a new line editor. there goto->HEADER.
you will get a pop up.
here you have to notedown the below fields
1) text name : <doc number> (in our case)
2)Language : EN
3) text id : A01
4) text Object : EKKO
note down these fields & values.
in your program you can use either READ_TEXT & SAVE_TEXT for this purpose.
READ_TEXT : IF any header text available,it will be downloaded to your program in TDLINES. you have to pass above parameters for this func module.
save_Text : first you populate all values in LINES * fill all HEADER details with the above mentioned values & then call this Func module.
this will create header text
hope this gives you clear picture .
regards
srikanth
12-20-2005 11:36 AM
SAVE_TEXT
for this what data you have to process first store in LINES internal table.but remember this function module will overwrite existing text,if it exists.so first get the records by using READ_TEXT . append ur lines to that then finally call this FM.
SAVEMODE_DIRECT set this field to X ,sothat changes will reflect immediately.