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

Commit_text not working

Former Member
0 Likes
2,478

Hi,

I am using save_text to change the long text.

I am able to see in the debug mode that the save_text is working fine with the new text.

Then i called commit_text. In the "commit_count" i am getting zero and the text is not getting updated in the screen.

Please advice

Regards,

Zubair.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,601

[COMMIT_TEXT|http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db93d494511d182b70000e829fbfe/frameset.htm] only submit in update task the update of text on object for which you defined 'storage in update task. It must be followed by a [COMMIT WORK|http://help.sap.com/abapdocu/en/ABAPCOMMIT.htm] or [BAPI_TRANSACTION_COMMIT|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_transaction_commit&cat=sdn_all]

So :

- if you didnt define 'storage in update task' don't use this FM

- always use COMMIY WORK if not in a transaction that will do it

Look at [SAVE_TEXT|http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/frameset.htm] SAVEMODE_DIRECT parameter

- if set to 'X', then no COMMIT_TEXT is requested

- if set to space, then COMMIT_TEXt is requested if so specified in object dfeinition (look at [TTXOB: Definition of the Text Objects|http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db827494511d182b70000e829fbfe/frameset.htm] or via SE75)

Regards

7 REPLIES 7
Read only

Former Member
0 Likes
1,601

Hi,

check this.

Link:[https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=commit+text&adv=false&sortby=cm_rnd_rankvalue]

hope u'll get some idea.

Regards,

Sneha.

Read only

0 Likes
1,601

I have gone through this ans ensured everything is followed but still it isnt working.

Read only

Former Member
0 Likes
1,601

hi

Try to this FM for commit( not sure just try it)

BAPI_TRANSACTION_COMMIT

Thanks

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,602

[COMMIT_TEXT|http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db93d494511d182b70000e829fbfe/frameset.htm] only submit in update task the update of text on object for which you defined 'storage in update task. It must be followed by a [COMMIT WORK|http://help.sap.com/abapdocu/en/ABAPCOMMIT.htm] or [BAPI_TRANSACTION_COMMIT|https://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_transaction_commit&cat=sdn_all]

So :

- if you didnt define 'storage in update task' don't use this FM

- always use COMMIY WORK if not in a transaction that will do it

Look at [SAVE_TEXT|http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/frameset.htm] SAVEMODE_DIRECT parameter

- if set to 'X', then no COMMIT_TEXT is requested

- if set to space, then COMMIT_TEXt is requested if so specified in object dfeinition (look at [TTXOB: Definition of the Text Objects|http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db827494511d182b70000e829fbfe/frameset.htm] or via SE75)

Regards

Read only

Former Member
0 Likes
1,601

make sure you have an X in "SAVEMODE_DIRECT" import patrameter of FM save text.

Read only

Former Member
0 Likes
1,601

Hi,

Please check if you have used the 'SAVE_TEXT' Fm as below:



CALL FUNCTION 'SAVE_TEXT'
       EXPORTING
            header          = lv_header <--- header which you get from 'READ_TEXT'
            savemode_direct = 'X'
       TABLES
            lines           = lt_txt_hst <---- from 'READ_TEXT'
       EXCEPTIONS
            id              = 1
            language        = 2
            name            = 3
            object          = 4
            OTHERS          = 5.

Read only

Former Member
0 Likes
1,601

I need to update the long text for project,WBS,network, material etc.

I have removed the commit_text as i am using the savemode_direct in save_text.

Its working for material but not for project,WBS and network.

Regards,

Zubair.