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

field ?!!!!

Former Member
0 Likes
578

hi,

i am creat purchast order

i standard me51n i need name of field in header text.

F1 does not have mach!!!

it is big window in heder....

i nead name of field?!!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
547

Hi,

follow below link

go to me51n->text tab-double click on window->

goto->header

header details are stored in table stxh,stxl.

also use FM <b>read_text</b> as follows

XTHEAD-TDID = 'INTV'.

XTHEAD-TDNAME = EQUI-EQUNR.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = XTHEAD-TDID

LANGUAGE = SY-LANGU

NAME = XTHEAD-TDNAME

OBJECT = 'EQUI' "Object

IMPORTING

HEADER = THEAD

TABLES

LINES = TLINETAB

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5.

IF SY-SUBRC EQ 0.

READ TABLE TLINETAB INDEX 1.

IF SY-SUBRC EQ 0.

IF TLINETAB-TDLINE NE SPACE.

ITAB-EQUI_COMMENTS = TLINETAB-TDLINE.

ENDIF.

ENDIF.

ENDIF.

regards

amole

4 REPLIES 4
Read only

Former Member
0 Likes
547

Easy -;)

Choose "SAPScript Editor" --> GoTo --> Header.

You should see a window with the following:

Text Name

Language

Text ID

Object ID

Use either READ_TEXT or SAVE_TEXT...Depending on what you have to do...and you're done -;)

Greetings,

Blag.

Read only

Former Member
0 Likes
547

In that window, press the "technical information" icon (fourth from the left).

Rob

Read only

Former Member
0 Likes
548

Hi,

follow below link

go to me51n->text tab-double click on window->

goto->header

header details are stored in table stxh,stxl.

also use FM <b>read_text</b> as follows

XTHEAD-TDID = 'INTV'.

XTHEAD-TDNAME = EQUI-EQUNR.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID = XTHEAD-TDID

LANGUAGE = SY-LANGU

NAME = XTHEAD-TDNAME

OBJECT = 'EQUI' "Object

IMPORTING

HEADER = THEAD

TABLES

LINES = TLINETAB

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5.

IF SY-SUBRC EQ 0.

READ TABLE TLINETAB INDEX 1.

IF SY-SUBRC EQ 0.

IF TLINETAB-TDLINE NE SPACE.

ITAB-EQUI_COMMENTS = TLINETAB-TDLINE.

ENDIF.

ENDIF.

ENDIF.

regards

amole

Read only

Former Member
0 Likes
547

Hi Nick,

This should be the name of the field in header text, TTXIT-TDTEXT.

Regards,

Srinivas.