on 08-28-2007 5:48 AM
hi guru's.
i am working with purchase order smartform in ME22N or ME23N in header text ->shipping instruction is there .So i want to read the text and display it in a window
of smartform.
How can i proceed? please explain me
We use function module to read header text or item level text... try to create program lines and use FM READ_TEXT
Ex: (sample example)
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'Z006'
language = 'E'
name = w_textname
object = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
lines = i_tlines.
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF sy-subrc = 0.
READ TABLE i_tlines INDEX 1.
t_in-m1 = i_tlines-tdline.
ENDIF.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
for readiing the texts you have to use the fm
<b>read_text</b>
this will give the header texts and any texts related to that
table is <b>STXH</b> in which all texts wil be stored
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = depends on your requirements
language = 'EN'
name = depends on your requirements ( foreg purchase or der number
object = 'KNMT' (depends on your requirements )
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = IT_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
thanks & regards,
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.