‎2007 Feb 12 1:54 AM
Hi,Experts:
Who can tell me how to write long text for 'VX12N' by using fm 'SAVE_TEXT'
Thanks alot.
‎2007 Feb 12 2:06 AM
‎2007 Feb 12 2:06 AM
‎2007 Feb 12 2:23 AM
hi
check this sample code
REPORT ZTEXT .
tables : thead,
tline,
stxl.
data : begin of ithead occurs 0.
include structure thead.
data : end of ithead.
data : xteno like tline occurs 0 with header line.
data : f(1).
find tdname , tdobject, tdid from the tcode.
select GOTO from the menubar in your tcode VX12N and choose Header.
ithead-TDOBJECT = 'HR_TEMNOTE'.
ithead-TDNAME = '01Q 194700351001B032P 00058477'.
ithead-TDID = 'TEM1'.
ithead-TDSPRAS = 'E'.
ithead-MANDT = SY-MANDT.
ithead-TDFORM = 'HR_TEM_NOTE_DISP'.
ithead-tdstyle = 'HR_TEM1'.
append ithead.
XTENO-TDLINE = 'H2 Hai This is abab'.
APPEND XTENO.
XTENO-TDLINE = 'H2 Hai This is sap'.
APPEND XTENO.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = ithead
INSERT = ' '
SAVEMODE_DIRECT = 'X'
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION = f
TABLES
LINES = xteno
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2007 Feb 12 2:43 AM
check T-CODE: 'VX12N', it seems hard to get information to fill TABLE HEADER.