‎2007 May 09 7:02 AM
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
‎2007 May 09 7:16 AM
no need to set any flag, it will come automatically.
Regards
Prabhu
‎2007 May 09 7:38 AM
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.
‎2007 May 09 10:46 AM
Hi praveen,
i think you should use USEREXIT_SAVE_DOCUMENT.
regards,
sap fan