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

Probelem with SAVE_TEXT

Former Member
0 Likes
607

Hi all ,

My requirement is to copy the partner function address to the text tab in the VA01 transaction .I am using SAVE_TEXT and COMMIT_TEXT function modules.

I am getting the values in the STXH table But i am getting the text in the text tab.

I writing the text to Object VBBP id Z005 .

According to some threads i need to set the flag for the field LTXSP( Long text exist in the language)

Can u please help in in setting the flag for the long text for VA01 transaction.?

regards

pavee

3 REPLIES 3
Read only

Former Member
0 Likes
461

no need to set any flag, it will come automatically.

Regards

Prabhu

Read only

0 Likes
461

Hi,

this is my code. i am executing this code in the user exit USEREXIT_SAVE_DOCUMENT _PREPARE .

Pl solve the problem.advace thanks

li_ithead-tdobject = 'VBBP'.

li_ithead-tdid = 'Z005'.

li_ithead-tdspras = sy-langu.

CONCATENATE lw_adrc-name1 lw_adrc-street INTO li_tline-tdline SEPARATED BY space.

li_tline-tdformat = '*'.

APPEND li_tline .

CONCATENATE lw_adrc-str_supply1 lw_adrc-city1 INTO li_tline-tdline

SEPARATED BY space.

APPEND li_tline .

CONCATENATE lw_adrc-post_code1 lw_adrc-tel_number INTO li_tline-tdline

SEPARATED BY space.

APPEND li_tline .

describe table li_tline lines lv_lines.

li_ithead-tdtxtlines = lv_lines.

/* here i am geeting lv_lines =3.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

client = sy-mandt

header = li_ithead

insert = 'X'

savemode_direct = 'X'

TABLES

lines = li_tline

EXCEPTIONS

OTHERS = 1.

if sy-subrc ne 0.

exit. */ program is exiting here......

endif.

CALL FUNCTION 'COMMIT_TEXT'

EXPORTING

object = 'VBBP'

id = 'Z005'

language = sy-langu.

if sy-subrc ne 0.

exit.

endif.

Read only

Former Member
0 Likes
461

Hi praveen,

i think you should use USEREXIT_SAVE_DOCUMENT.

regards,

sap fan