‎2007 Apr 10 10:36 AM
Hi...
I need to retrieve the previous contents of several long texts, that is, the content of these texts before a modification has been done. Do you know the way to do this?
Thanks in advance,
Carlos
‎2007 Apr 10 11:59 AM
hi CARLOS
USE THE FOLLOWING FM
<b>GET_TEXT_AS_STREAM
call method textedit- >get_text_as_r3table
exporting
only_when_modified = only_when_modified
importing
table = table
is_modified = is_modified
exceptions
error_db = 1
error_cntl_call_method = 2
error_db_create =3
potential_data_loss = 4.</b>
Parameters
Description
Possible values
table
R/3 table
only_when_modified
Attribute when you get text
true
The text is only written to the R/3 table if the changed status IS:MODIFIED = TRUE. Otherwise, an empty table is passed.
false
The text is retrieved regardless of whether it has been changed (default value)
is_modified
Changed status of the text
true
Text changed
false
Text not changed
follow the link below if any problem in getting the solution
http://help.sap.com/saphelp_nw04/helpdata/en/71/525f88f6f011d2961c00a0c930660b/frameset.htm
regards
ravish
<b>plz reward points if helpful</b>
‎2007 Apr 10 11:03 AM
hi,
use fm read_text and analyse export parameter <b>header</b> (fields: TDLUSER, TDLDATE and TDLTIME )
A.
Message was edited by:
Andreas Mann
‎2007 Apr 10 11:20 AM
Thanks for your response, Andreas...
In these fields I can see who modified the text and when he did it. But what I need to know is the content of the text in itself before the modification. Any idea?
Regards
‎2007 Apr 10 11:59 AM
hi CARLOS
USE THE FOLLOWING FM
<b>GET_TEXT_AS_STREAM
call method textedit- >get_text_as_r3table
exporting
only_when_modified = only_when_modified
importing
table = table
is_modified = is_modified
exceptions
error_db = 1
error_cntl_call_method = 2
error_db_create =3
potential_data_loss = 4.</b>
Parameters
Description
Possible values
table
R/3 table
only_when_modified
Attribute when you get text
true
The text is only written to the R/3 table if the changed status IS:MODIFIED = TRUE. Otherwise, an empty table is passed.
false
The text is retrieved regardless of whether it has been changed (default value)
is_modified
Changed status of the text
true
Text changed
false
Text not changed
follow the link below if any problem in getting the solution
http://help.sap.com/saphelp_nw04/helpdata/en/71/525f88f6f011d2961c00a0c930660b/frameset.htm
regards
ravish
<b>plz reward points if helpful</b>
‎2007 Apr 10 12:53 PM
Thanks Ravish...
I don't understand exactly what the code you send is for, I think that it is related to a text editor implementation or something like that. The long texts that I am talking about are related to SAP standard objects. In this case I'm working with the texts related to a Contract (Trx ME33K --> Header --> Texts --> Text Overview). I need to retrieve all the versions of, for example, the header title.
Is your code valid for this case? If it is, could you explain me what I have to do to retrieve the versions of a text?
Thanks and regards