‎2009 Jun 24 12:00 PM
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.
‎2009 Jun 24 12:39 PM
[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
‎2009 Jun 24 12:04 PM
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.
‎2009 Jun 24 12:32 PM
I have gone through this ans ensured everything is followed but still it isnt working.
‎2009 Jun 24 12:35 PM
hi
Try to this FM for commit( not sure just try it)
BAPI_TRANSACTION_COMMIT
Thanks
‎2009 Jun 24 12:39 PM
[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
‎2009 Jun 24 12:42 PM
make sure you have an X in "SAVEMODE_DIRECT" import patrameter of FM save text.
‎2009 Jun 24 12:48 PM
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.
‎2009 Jun 24 3:48 PM
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.