‎2006 Oct 02 3:12 PM
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?!!!!
‎2006 Oct 02 4:58 PM
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
‎2006 Oct 02 3:21 PM
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.
‎2006 Oct 02 3:53 PM
In that window, press the "technical information" icon (fourth from the left).
Rob
‎2006 Oct 02 4:58 PM
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
‎2006 Oct 02 5:48 PM
Hi Nick,
This should be the name of the field in header text, TTXIT-TDTEXT.
Regards,
Srinivas.