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

SAVE_TEXT

Former Member
0 Likes
849

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
767

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]

4 REPLIES 4
Read only

Former Member
0 Likes
768

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]

Read only

Former Member
0 Likes
767

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

Read only

Former Member
0 Likes
767

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
767

- 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