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

Using 'SAVE_TEXT' to save comment for qualification

Former Member
0 Likes
775

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
735

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

6 REPLIES 6
Read only

Former Member
0 Likes
735

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

Read only

0 Likes
735

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.

Read only

0 Likes
735

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

Read only

0 Likes
735

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'.

Read only

Former Member
0 Likes
736

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

Read only

0 Likes
735

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.