‎2010 Aug 16 10:19 AM
Hi all,
I have a requirement to write an header text when a particular partner function is added.
I am using the FM SAVE_TEXT and passing all parameters properly the FM is giving me an sy-subrc zero.and i have also used commit_text after save_text.i am writing all this under an enhancement in me22. But the header text is not being written.plz help.
Thanks & Regards,
Anjana Rao
‎2010 Aug 16 10:29 AM
Hi Anjana,
Check the WIKI this should help you, follow the same process as in the WIKI.
[http://wiki.sdn.sap.com/wiki/display/Snippets/HowtosaveandretreiveTextobjects]
‎2010 Aug 16 10:29 AM
Hi Anjana,
Check the WIKI this should help you, follow the same process as in the WIKI.
[http://wiki.sdn.sap.com/wiki/display/Snippets/HowtosaveandretreiveTextobjects]
‎2010 Aug 16 10:36 AM
Hi Anju,
You can also try function module CREATE_TEXT. Alternatively you can search for another exit where you can write this code or any BADI.
At last you can use Business Object, a event will be triggered after saving the PO and then in that you can write your own coding to call a z function module & there you can use SAVE_TEXT, this is last option & surely it will work.
Regards,
Adarsh
‎2010 Aug 16 10:40 AM
Hi,
Please check with the way, it should be coded (Refer Raj's reply).
Suppose, if it is fine, then there may be a problem with the enhancement you have chosen. Could you please confirm the enhancement name?
Regards,
Selva K.
‎2010 Aug 16 10:54 AM
- Better use CREATE_TEXT (or add a call to INIT_TEXT before)
- The COMMIT_TEXT will execute a CALL FUNCTION ... IN UPDATE TASK, so nothing will be executed before the next COMMIT WORK, so you code must be before the save commit of ME22n, or after the standard commit and you must then execute a commit work yourself.
Regards,
Raymond