Skip to Content
0
Former Member
Jul 02, 2007 at 04:30 PM

Problem with Commit_text

166 Views

Hi,

i am using the following code to save the text into the object. in the importing parameter of save_text lv_fun i am getting value I (insert) But while committing is lv_count is 0( in the commit_text).

Commit_text is not working.Please can any one help me in getting the solution.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

CLIENT = SY-MANDT

header = ithead(VBBPZ007 vbeln- posnr)

INSERT = X

SAVEMODE_DIRECT = X

tables

lines = li_tline1( 11 lines )

importing

fucntion = lv_fun

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.

CALL FUNCTION 'COMMIT_TEXT'

EXPORTING

OBJECT = lc_tdobject

NAME = lw_ithead-tdname

ID = lc_tdid

LANGUAGE = sy-langu

SAVEMODE_DIRECT = lc_true.

importing

commit_count = lv_count.

Please help me it s urgent.

regarda

pave...