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

Problem with Read_Text

Former Member
0 Likes
1,435

Hi,

If Someone have come across such a problem please provide the Solution.

My problem is that when i reread the data for CO02 transaction with an order Number for BOM and Routing and then there is a Functionality for getting long text with Read_text which reads the text with ID as AVOT , as below This Long text is in CA03 transaction for the below object and ID.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'AVOT'

language = gv_langu

name = gs_tdname

object = 'AUFK'

IMPORTING

header = gs_header

TABLES

lines = it_lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

It does not bring data whereas if i individually send the fields in the READ_TEXT function module it fetches the Lines.

Why does it behave in such a way.

Thanks,

Richa

7 REPLIES 7
Read only

Former Member
0 Likes
1,141

try to create the sample test program with Read_text FM . as well double check whether the parameters you are passing are in caps.

Read only

Former Member
0 Likes
1,141

Hi ,

Its working correctly if i don't go to reread of transaction CO02 and fetch the Long text.There are actually two buttons in my transaction on for this reread and in the second operation the read_text is there.

Thanks,

Richa

Read only

0 Likes
1,141

Hi,

try giving the mandt parameter as sy-mandt , and id as 'VSAV' ...

also have a look at the FM ' I_SMPM_FILL_LONG_TEXT' ....

and can u pls explain what's reread of transaction CO02 and fetch the Long text

Hope this helps !!

Regards

Ravi Aswani

Read only

Former Member
0 Likes
1,141

Even I am facing the same problem. The read text is working fine in the application.

But If i go to the funcion module Read_text and give the entries

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'ST'

language = 'E'

name = tdname

object = 'TEXT'

TABLES

lines = lt_line.

.

as specified here, its not fetching anything.

The problem is that its working fine in the development and while in production its giving error that the

Text (GUID text) is the specified language E is not found.

Any idea about this?

Read only

Former Member
0 Likes
1,141

hI

REREAD

Read only

Former Member
0 Likes
1,141

Hi

REREAD actually reads the master data op PP in transaction CO02 for routing and Bill of material.

The read text is to get the text for operations saved in the transaction CA03.

Read only

Former Member
0 Likes
1,141

Hi,

The issue was solved...the transaction was not saved tats why it couldn't finf the texts with the ID.

Thanks.