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

Retrieve long text modifications

Former Member
0 Likes
690

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

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>

4 REPLIES 4
Read only

andreas_mann3
Active Contributor
0 Likes
638

hi,

use fm read_text and analyse export parameter <b>header</b> (fields: TDLUSER, TDLDATE and TDLTIME )

A.

Message was edited by:

Andreas Mann

Read only

0 Likes
638

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

Read only

Former Member
0 Likes
639

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>

Read only

0 Likes
638

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