Skip to Content
0
Former Member
Jul 02, 2007 at 10:33 AM

Probelm with SAVE_TEXT

50 Views

Hi,

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'

EXPORTING

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 = ' '

TABLES

lines = li_tline1( internal table containing addresss)

EXCEPTIONS

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.

ELSE.

  • / Use the FM COMMIT_TEXT to commit the details into the database /

CALL FUNCTION 'COMMIT_TEXT'

EXPORTING

object = VBBP

id = Z007

language = sy-langu

name = lw_ithead-tdname(vbeln na dposnr)

savemode_direct = lc_true.

ENDIF.

Please can any one help in getting the right code for SAVE_TEXT so that it should work for VA01.

regards

paveee...