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

Long Text

Former Member
0 Likes
521

Hi,Experts:

Who can tell me how to write long text for 'VX12N' by using fm 'SAVE_TEXT'

Thanks alot.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
480

Hi,

check this example:

http://www.howforge.com/abap-4-example-code-save-text

regards,

keerthi

3 REPLIES 3
Read only

Former Member
0 Likes
481

Hi,

check this example:

http://www.howforge.com/abap-4-example-code-save-text

regards,

keerthi

Read only

Former Member
0 Likes
480

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.

Read only

Former Member
0 Likes
480

check T-CODE: 'VX12N', it seems hard to get information to fill TABLE HEADER.