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

Problem with Commit_text

Former Member
0 Likes
966

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...

4 REPLIES 4
Read only

Former Member
0 Likes
714

Hi Praveen,

Try by passing "SAVEMODE_DIRECT" parameter also in 'COMMIT_TEXT'.

Ashvender

Read only

0 Likes
714

Hi kumar,

I am passing the savemode_direct = 'X'. But still it is not committing.

is there any configuration part that is avoiding the saving of the text lines( Number of lines is it limited) .

in Va02 the code is working very fine . But in Va01 it is giving problem.

regards

pave....

Read only

0 Likes
714

praveen,

do one thing, create a FM(zfm) of type update funcation module, call save_text in the created FM(zfm).

call zfm in IN UPDATE TASK. It will work fine in both VA01 and VA02.

no need to call commit_text

regards,

shaik

Read only

0 Likes
714

Hi basha ,

I have created ZfM and called that FM with update task. But i am not getting the address in the text. Can u Please help me ...

CALL FUNCTION 'YDSD_SAVE_TEXT'

in update task

EXPORTING

  • client = sy-mandt

header = ithead( VBBP Z007)

  • insert = space

  • savemode_direct = lc_true

TABLES

lines = li_tline

EXCEPTIONS

id = 1

language = 2

name = 3

object = 4

OTHERS = 5.