this is code i am using the to save the address into the text id Z007.
it is working fine in Va02 but it is not working with VA01.
it is dispalying onlt last five lines of the table .( table has got 11 lines)
CALL FUNCTION 'SAVE_TEXT'
client = sy-mandt
header = l_ithead( i am passing object name and obj id and vbeln and posnr into tdname and language)
insert = space
savemode_direct = ' '
lines = li_tline1( internal table containing addresss)
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> lc_null.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
/ Use the FM COMMIT_TEXT to commit the details into the database /
CALL FUNCTION 'COMMIT_TEXT'
object = VBBP
id = Z007
language = sy-langu
name = lw_ithead-tdname(vbeln na dposnr)
savemode_direct = lc_true.
Please can any one help in getting the right code for SAVE_TEXT so that it should work for VA01.