06-27-2008 1:10 PM
Hi,
i have a long text to be added to a transaction. I'm using the FM 'SAVE_TEXT' to save the long text. But whenever i'm adding new text, its overwriting the existing one.
if i add any new text, it should add to the existing one and not overwrite that. how to do that.
points assured..
Thanks
Shekhar
06-27-2008 1:12 PM
READ TEXT first and CONCATENATE text retreived and new text you want to add...Then use SAVE_TEXT
06-27-2008 1:17 PM
Hi Shekhar,
Try using the option 'U' in the parameter Funtion of SAVE_TEXT Function module.
FUNCTION - The parameter returns the processing status of the text module for the current call.
' ' No action
'I' Text module was inserted
'U' Text module was updated
'D' Text module was deleted
Reward if found useful,
Regards,
Swapna.
06-27-2008 1:17 PM
hi,
While using SAVE_TEXT please check the INSERT option functionality. If that is on then text will inserted from the front. If that is Off then use the method mentioned by person above.
Hope that helps.
Reward If Helpful
Regards
Sumit Agarwal
06-27-2008 1:47 PM
Hi,
The FM is returning the function 'U' only.. But its not appending the text. Its just overwriting the existing one
even then that function parameter is an export parameter, we can't change it.. right?
Thanks
Shekhar
06-27-2008 2:07 PM
When calling the FM SAVE_TEXT pl. pass SAVEMODE_DIRECT = 'X'
otherwise it will not save the text.
Regards,
Joy.