Application Development and Automation 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: 
Read only

Regarding header text

Former Member
0 Likes
1,145

hi all,

If we go to any transaction like va01 or me21n here we will find header text and item text when we enter this text and after saving in which field and table this text (header text and item text) will be stored.

Because i want to retrieve that text.

Regards

Reddy

1 ACCEPTED SOLUTION
Read only

KalC
Active Participant
0 Likes
1,087

Hi,

Open any document (va02 or Me22n) in change mode and go to your required text. Double click on that text, then you will redirected to another screen. In that text editor select GOTO>HEADER. Then you will get a pop up, there you will find text name , language, object....etc details. In your program pass these details to READ_TEXT function module. You will get corresponding text in LINES tables parameter.

Hope it clarifies.

Regards,

Kalyan.

8 REPLIES 8
Read only

Former Member
0 Likes
1,087

Hi,

You should use FM READ_TEXT try to go through the documentation of this FM you will understand the usage of this FM.

Thanks

Sudharshan

Read only

Former Member
0 Likes
1,087

for header use this stxh STXL

Read only

Former Member
0 Likes
1,087

Check tables STXH/STXL but u cannot read them as they are stored in RAW format. Use FM read_text to read the long texts.

Regards,

Joy.

Read only

Former Member
0 Likes
1,087

ALL of them will be stored in STXL table but non readable format.

you can read them using READ_TEXT function module

for this you have pass textname, textid, textobject, language.

example: sales header

TDNAME = salesorderno "10 digits

TDID = 0001

TDOBJECT = VBBK

LAnguage = sy-langu

sales item

TDNAME = salesorderno + item number "10 digits + 6 digits

TDID = 0002

TDOBJECT = VBBP

LAnguage = sy-langu

Read only

Former Member
0 Likes
1,087

Hi Reddy,

Go to that transaction go to that header text press f1.

Regards,

Naveen.

Read only

KalC
Active Participant
0 Likes
1,088

Hi,

Open any document (va02 or Me22n) in change mode and go to your required text. Double click on that text, then you will redirected to another screen. In that text editor select GOTO>HEADER. Then you will get a pop up, there you will find text name , language, object....etc details. In your program pass these details to READ_TEXT function module. You will get corresponding text in LINES tables parameter.

Hope it clarifies.

Regards,

Kalyan.

Read only

Former Member
0 Likes
1,087

Hi,

Check out the standard program for the transaction VA01.

Before saving the transaction changes go to debugger mode (/H) and check out which tables are getting updated.

Read only

vamshi_mohan
Participant
0 Likes
1,087

Hi,

You can get the field and table names from the technical settings of the field.

But usually such texts are stored in a compressed text format which cannot be read using 'write' statements. Use INCLUDE TEXT to retrieve data as you do in SCRIPTS using INCLUDE TEXT <TEXT NAME> <TEXT ID> <TEXT OBJECT NAME>.

Regards.

Vamshi