Application Development 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: 

Purchasing Document Header Text Table

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.