‎2006 Nov 21 3:21 AM
I face a problem when I use function module 'SAVE_TEXT' to save comment for qualification for employees (IT 24).
The scenario is like this:
The employee has 2 same qualifications for 2 period, one from 01.01.2006 - 31.05.2006 and one 01.06.2006 - 31.12.9999.
I need to save the comment only for period 01.06.2006. When I use FM 'SAVE_TEXT', the comment is saved for both period.
How can I solve this problem? Is there any other FM I can use for saving comment?
Hope someone can help me. Thanks.
‎2006 Nov 21 4:26 AM
So according to what I understood do one thing.
For this both periods of dates set a flag.
Say for example flag is v_flag.
if v_flag = 'X'.
'SAVE_TEXT'
endif.
I think I am clear,let me know if I am wrong.
Regards
‎2006 Nov 21 3:23 AM
Hi,
You need to see what is the key based on which the text is being stored. What is the data that is being passed to TDNAME in the SAVE_TEXT function?
If SAP uses date also to be a part of the TDNAME then you can have text specific for time period, other wise, it might be difficult.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Nov 21 3:40 AM
This is what I pass to TDNAME: '01Q 204001491001B032P 04900343'
There include plan version, object type, relationship.
I try to pass in date, but it does not work.
Any idea? Or has any other FM can use to save text?
Appreciate your help. Thanks.
‎2006 Nov 21 3:45 AM
Hi,
As I said, the problem is not with the function, but the with key that SAP uses to identify the text. Looks like Date is not a part of the key for this text.
So, given that I don't think you can date dependent texts.
However, you can probably store it separately with some other key including the data, however that will not be displayed as a part of the standard transaction.
Regards,
Ravi
‎2006 Nov 21 4:17 AM
Can you explain more? I'm not quite understand what you mean by 'store it separately with some other key including the data, however that will not be displayed as a part of the standard transaction'.
‎2006 Nov 21 4:26 AM
So according to what I understood do one thing.
For this both periods of dates set a flag.
Say for example flag is v_flag.
if v_flag = 'X'.
'SAVE_TEXT'
endif.
I think I am clear,let me know if I am wrong.
Regards
‎2006 Nov 21 9:48 AM
Hi Rav,
Do you have example code? Or can you write longer about the coding you given above?
Why we need to set flag? Once I execute the FM 'SAVE_TEXT', both periods of qualification will update with same comment.